diff options
| author | August Skare <post@augustskare.no> | 2018-10-18 19:58:07 +0800 | 
|---|---|---|
| committer | August Skare <post@augustskare.no> | 2018-10-18 19:58:07 +0800 | 
| commit | c57c9752a248a2abb3a73e474ee63b1039f9a9c7 (patch) | |
| tree | 21e22bba618e2f877891182cfc5670906cb8426e /packages/dev-tools-pages/ts/components | |
| parent | b158a6d7226fb50ecedcc07da8ef30e5e5690e46 (diff) | |
| download | dexon-sol-tools-c57c9752a248a2abb3a73e474ee63b1039f9a9c7.tar.gz dexon-sol-tools-c57c9752a248a2abb3a73e474ee63b1039f9a9c7.tar.zst dexon-sol-tools-c57c9752a248a2abb3a73e474ee63b1039f9a9c7.zip | |
intro component in profiler view
Diffstat (limited to 'packages/dev-tools-pages/ts/components')
| -rw-r--r-- | packages/dev-tools-pages/ts/components/Intro.tsx | 47 | 
1 files changed, 47 insertions, 0 deletions
| diff --git a/packages/dev-tools-pages/ts/components/Intro.tsx b/packages/dev-tools-pages/ts/components/Intro.tsx new file mode 100644 index 000000000..c16c888b7 --- /dev/null +++ b/packages/dev-tools-pages/ts/components/Intro.tsx @@ -0,0 +1,47 @@ +import * as React from 'react'; +import styled from 'styled-components'; + +import { Alpha, Beta } from './Typography'; + +const Main = styled.div` +    background-color: #f1f4f5; +    padding: 6.25rem; +    display: flex; +    justify-content: space-between; +`; + +const Title = styled(Alpha)` +    margin-bottom: 2.5rem; +`; + +const Content = styled.div` +    max-width: 25.9375rem; + +    display: flex; +    flex-direction: column; +`; + +const Code = styled.div` +    background-color: #e9eced; +    width: 520px; +    height: 350px; +`; + +interface IntroProps { +    title: string; +    children: React.ReactNode; +} + +function Intro(props: IntroProps) { +    return ( +        <Main> +            <Content> +                <Title>{props.title}</Title> +                <Beta as="div">{props.children}</Beta> +            </Content> +            <Code /> +        </Main> +    ); +} + +export default Intro; | 
