From 727ced0684244342f616455bb33ea5df5c061aa2 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 10 Dec 2018 14:48:57 +0100 Subject: Tweak banner --- packages/website/ts/@next/components/banner.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'packages/website/ts') 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