import React from 'react';
import { Card, Button } from '@alicloud/console-components';

const cardContent: React.CSSProperties = {
  background: '#f6f6f6',
  width: '100%',
  height: '100%',
  borderRadius: '4px',
  textAlign: 'center',
  lineHeight: '100%',
  color: '#aaaaaa',
  position: 'relative',
};

const contentext: React.CSSProperties = {
  lineHeight: '20px',
  position: 'absolute',
  top: '50%',
  width: '100%',
  marginTop: '-10px',
};

const CardContent = () => (
  <div style={cardContent}>
    <div style={contentext}>Card Content</div>
  </div>
);

export default () => {
  return (
    <Card style={{ width: 500,padding:'16px' }} free>
      <div style={{ height: '100px' }}>
        <CardContent />
      </div>
      <div style={{ marginTop: '16px' }}>
        <Button size="medium">基础按钮</Button>
      </div>
    </Card>
  );
};
