From 1e5bc143be07c94d311313d11c830f4db6ff97bb Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Tue, 11 Dec 2018 15:51:26 +0100 Subject: Add slider mockup --- .../website/ts/@next/components/slider/slider.tsx | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 packages/website/ts/@next/components/slider/slider.tsx (limited to 'packages/website/ts/@next/components') diff --git a/packages/website/ts/@next/components/slider/slider.tsx b/packages/website/ts/@next/components/slider/slider.tsx new file mode 100644 index 000000000..6292a8c9e --- /dev/null +++ b/packages/website/ts/@next/components/slider/slider.tsx @@ -0,0 +1,78 @@ +import * as React from 'react'; +import styled from 'styled-components'; + +import { colors } from 'ts/style/colors'; + +import { Icon } from 'ts/@next/components/icon'; +import { Paragraph, Heading } from 'ts/@next/components/text'; + +interface SliderProps { +} + +interface SlideProps { + icon: string; + heading: string; + text: string; + href?: string; +} + +export const Slide: React.StatelessComponent = (props: SlideProps) => { + const { heading, text, href, icon } = props; + + return ( + + + + + + {heading} + {text} + + + ); +}; + +export const Slider: React.StatelessComponent = props => { + return ( + + + {props.children} + + + ); +}; + +const StyledSlider = styled.div` + overflow: hidden; + width: 100%; + height: 520px; +`; + +const SliderInner = styled.div` + position: absolute; + display: flex; + width: 100%; +`; + +const StyledSlide = styled.div` + background-color: ${colors.backgroundDark}; + width: 560px; + height: 520px; + flex: 0 0 auto; + + & + & { + margin-left: 30px; + } +`; + +const SlideHead = styled.div` + background-color: ${colors.brandDark}; + height: 300px; + display: flex; + justify-content: center; + align-items: center; +`; + +const SlideContent = styled.div` + padding: 30px; +`; -- cgit v1.2.3