diff --git a/src/components/HeaderBarebone/index.tsx b/src/components/HeaderBarebone/index.tsx index f30d69ce..6ac5423e 100644 --- a/src/components/HeaderBarebone/index.tsx +++ b/src/components/HeaderBarebone/index.tsx @@ -14,28 +14,25 @@ interface IHeaderBareboneProps { export const HeaderBarebone: React.FC = (props) => { return ( + + {props.above} + + + {props.title} + + + {props.content} + - - - - {props.above} - - - {props.title} - - - {props.content} - - ) } diff --git a/src/components/HeaderBarebone/styles.tsx b/src/components/HeaderBarebone/styles.tsx index 64fca174..eb776122 100644 --- a/src/components/HeaderBarebone/styles.tsx +++ b/src/components/HeaderBarebone/styles.tsx @@ -4,35 +4,26 @@ import { fontFamily } from "../../design/typography" import { WavesTop, WavesBottom } from "../Waves" import Circles from "../../images/circles" -const height = 250 - export const HeaderWrapper = styled.div` width: 100%; - height: ${height}px; - padding-top: 67px; position: relative; - - &.shifted { - width: calc(100% - 305px); - padding-right: 305px; - } + display: flex; + justify-content: center; + padding: 0 32px; @media screen and (max-width: 1200px) { width: 100% !important; - padding-right: 0 !important; } @media screen and (max-width: 767px) { display: flex; align-items: flex-end; height: auto; - min-height: ${height}px; + padding-top: 67px; } ` export const BackgroundWrapper = styled.div` - height: ${height}px; - padding-top: 67px; overflow: hidden; position: absolute; top: 0; @@ -41,7 +32,6 @@ export const BackgroundWrapper = styled.div` bottom: 0; @media screen and (max-width: 767px) { - height: calc(100% - 67px); background: ${(props) => darken(0.2, props.theme.main.background)}; } ` @@ -81,28 +71,19 @@ export const StyledWavesBottom = styled(WavesBottom)` export const Box = styled.div` display: inline-flex; flex-direction: column; - position: absolute; - bottom: 40px; - margin-left: -16px; + position: relative; background: ${(props) => transparentize(0.3, props.theme.main.background)}; padding: 16px; + margin: 16px; backdrop-filter: blur(14px); + width: 100%; max-width: 650px; - - @media screen and (max-width: 1200px) { - max-width: 100%; - left: 32px; - right: 32px; - margin-left: 0; - } + z-index: 1; @media screen and (max-width: 767px) { position: static; bottom: auto; top: auto; - margin: 32px 0; - left: 0px; - right: 0px; @-moz-document url-prefix() { & { diff --git a/src/layouts/ColumnLayout/styles.tsx b/src/layouts/ColumnLayout/styles.tsx index a28c4ad2..d98d23f0 100644 --- a/src/layouts/ColumnLayout/styles.tsx +++ b/src/layouts/ColumnLayout/styles.tsx @@ -42,10 +42,6 @@ export const MainContent = styled.main` width: 100%; } - & > :first-child { - margin-top: 0; - } - & > :last-child { margin-bottom: 0; }