/**
 * title: "带操作区卡片"
 * description: "包含内容、操作区域、底部操作按钮"
 */
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 }} free>
      <div style={{padding:'16px' }}>
        <div style={{ height: '160px' }}>
          <CardContent />
        </div>
        <div style={{ marginTop: '16px' }}>
          <Button size="medium">基础按钮</Button>
        </div>
      </div>
    </Card>
  );
};
