import * as React from 'react';
import styled from 'styled-components';
import {
Avatar,
Button,
ButtonGroup,
Card,
Icon,
Modal,
} from '@vital-ui/react';
import CardCommon from './CardCommon';
const SectionWrapper = styled.div`
padding-top: 20px;
padding-bottom: 30px;
`;
const SectionTitle = styled.div`
font-size: 32px;
padding-bottom: 10px;
`;
const Wrapper = styled.div`
margin-right: 5px;
display: inline-block;
`;
const Vertical = styled.div`
margin-bottom: 10px;
`;
interface ISection {
title: string,
children: React.ReactNode,
}
const Section = ({ title, children }: ISection) => (
{title}
{children}
);
// interface State {
// showModal: boolean,
// }
class Overview extends React.PureComponent {
public state = {
showModal: false
};
public render() {
return (
{AVATAR.map((avatar, i) => (
))}
{BUTTON_STYLE.map((button, i) => (
{NATRUE.map((nature, index) => (
))}
))}
{SIZE.map((size, i) => (
))}
{SIZE.reverse().map((size, i) => (
))}
Congrats
Let’s Get Started
Confirm
{this.setState({showModal: false})}} />
);
}
}
export default Overview;
const AVATAR = [
{ size: 'xsmall', round: true, outline: true },
{ gender: 'male', size: 'small', round: true, outline: true },
{ gender: 'female', size: 'medium', round: true, badge: 10 },
{ gender: 'male', size: 'large', round: true },
{ gender: 'female', size: 'xlarge', round: true, badge: 100 }
];
const BUTTON_STYLE = ['default', 'flat', 'subtle', 'light'];
const NATRUE = ['default', 'primary', 'success', 'info', 'alarm', 'warning'];
const SIZE = ['xlarge', 'large', 'medium', 'small', 'xsmall'];