Commit 5f2072f4 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

fix: makes sure padding-bottom isn't overriden in Landing (#5603)

parent 4e144c7f
...@@ -9,8 +9,7 @@ import styled from 'styled-components/macro' ...@@ -9,8 +9,7 @@ import styled from 'styled-components/macro'
import { BREAKPOINTS } from 'theme' import { BREAKPOINTS } from 'theme'
import { Z_INDEX } from 'theme/zIndex' import { Z_INDEX } from 'theme/zIndex'
const MOBILE_BREAKPOINT = BREAKPOINTS.sm const PADDING_BOTTOM = 64
const DESKTOP_BREAKPOINT = BREAKPOINTS.md
const PageWrapper = styled.div<{ isDarkMode: boolean }>` const PageWrapper = styled.div<{ isDarkMode: boolean }>`
width: 100%; width: 100%;
...@@ -24,16 +23,16 @@ const PageWrapper = styled.div<{ isDarkMode: boolean }>` ...@@ -24,16 +23,16 @@ const PageWrapper = styled.div<{ isDarkMode: boolean }>`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: end; justify-content: end;
padding: 24px 24px 64px 24px; padding-bottom: 24px 24px ${PADDING_BOTTOM}px;
align-items: center; align-items: center;
transition: 250ms ease opacity; transition: 250ms ease opacity;
@media screen and (min-width: ${MOBILE_BREAKPOINT}px) { @media screen and (min-width: ${BREAKPOINTS.sm}px) {
padding: 4rem; padding: 64px 64px ${PADDING_BOTTOM}px;
} }
@media screen and (min-width: ${DESKTOP_BREAKPOINT}px) { @media screen and (min-width: ${BREAKPOINTS.md}px) {
padding: 2rem; padding: 32px 32px ${PADDING_BOTTOM}px;
} }
` `
...@@ -51,11 +50,11 @@ const TitleText = styled.h1<{ isDarkMode: boolean }>` ...@@ -51,11 +50,11 @@ const TitleText = styled.h1<{ isDarkMode: boolean }>`
background-clip: text; background-clip: text;
-webkit-background-clip: text; -webkit-background-clip: text;
@media screen and (min-width: ${MOBILE_BREAKPOINT}px) { @media screen and (min-width: ${BREAKPOINTS.sm}px) {
font-size: 48px; font-size: 48px;
} }
@media screen and (min-width: ${DESKTOP_BREAKPOINT}px) { @media screen and (min-width: ${BREAKPOINTS.md}px) {
font-size: 72px; font-size: 72px;
} }
` `
...@@ -68,7 +67,7 @@ const SubText = styled.h3` ...@@ -68,7 +67,7 @@ const SubText = styled.h3`
text-align: center; text-align: center;
max-width: 600px; max-width: 600px;
@media screen and (min-width: ${DESKTOP_BREAKPOINT}px) { @media screen and (min-width: ${BREAKPOINTS.md}px) {
font-size: 28px; font-size: 28px;
line-height: 36px; line-height: 36px;
} }
...@@ -100,11 +99,11 @@ const ButtonCTAText = styled.p` ...@@ -100,11 +99,11 @@ const ButtonCTAText = styled.p`
font-size: 16px; font-size: 16px;
white-space: nowrap; white-space: nowrap;
@media screen and (min-width: ${MOBILE_BREAKPOINT}px) { @media screen and (min-width: ${BREAKPOINTS.sm}px) {
font-size: 20px; font-size: 20px;
} }
@media screen and (min-width: ${DESKTOP_BREAKPOINT}px) { @media screen and (min-width: ${BREAKPOINTS.md}px) {
font-size: 24px; font-size: 24px;
} }
` `
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment