From 727ced0684244342f616455bb33ea5df5c061aa2 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 10 Dec 2018 14:48:57 +0100 Subject: Tweak banner --- .../website/public/images/@next/banner/bottomofcta.png | Bin 0 -> 15803 bytes .../website/public/images/@next/banner/topofcta.png | Bin 0 -> 13342 bytes packages/website/ts/@next/components/banner.tsx | 15 +++++++++++---- 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 packages/website/public/images/@next/banner/bottomofcta.png create mode 100644 packages/website/public/images/@next/banner/topofcta.png (limited to 'packages/website') diff --git a/packages/website/public/images/@next/banner/bottomofcta.png b/packages/website/public/images/@next/banner/bottomofcta.png new file mode 100644 index 000000000..910022a28 Binary files /dev/null and b/packages/website/public/images/@next/banner/bottomofcta.png differ diff --git a/packages/website/public/images/@next/banner/topofcta.png b/packages/website/public/images/@next/banner/topofcta.png new file mode 100644 index 000000000..710c390ab Binary files /dev/null and b/packages/website/public/images/@next/banner/topofcta.png differ diff --git a/packages/website/ts/@next/components/banner.tsx b/packages/website/ts/@next/components/banner.tsx index 59fbf7fdc..848bba1c4 100644 --- a/packages/website/ts/@next/components/banner.tsx +++ b/packages/website/ts/@next/components/banner.tsx @@ -38,8 +38,8 @@ export const Banner: React.StatelessComponent = (props: Props) => { - {heading} - {subline && {subline}} + {heading} + {subline && {subline}} @@ -60,16 +60,23 @@ const CustomColumn = styled(Column)` padding: 95px 30px; `; +const CustomHeading = styled(Heading)` + --defaultHeading: 1.888888889rem; + font-weight: 400; + margin-bottom: 10px; +`; + // Note let's refactor this // is it absolutely necessary to have a stateless component // to pass props down into the styled icon? const Border = styled.div` position: absolute; - background-image: url("data:image/svg+xml;utf8,"); + background-image: ${props => props.isBottom ? 'url(/images/@next/banner/bottomofcta.png);': 'url(/images/@next/banner/topofcta.png);' }; + background-position: ${props => props.isBottom ? 'left top' : 'left bottom' }; left: 0; width: calc(100% + 214px); height: 40px; top: ${props => !props.isBottom && 0 }; bottom: ${props => props.isBottom && 0 }; - transform: ${props => props.isBottom ? 'rotate(180deg) translate(112px)' : 'translate(-112px)' }; + transform: translate(-112px); `; -- cgit v1.2.3