Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile responsiveness!!! #233

Merged
merged 2 commits into from
Dec 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/containers/Landing/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ const SponsorsContainer = styled.div`
text-align: center;
justify-content: center;
align-items: center;
${p => p.theme.mediaQueries.tabletLarge} {
margin-top: 80%;
}
${p => p.theme.mediaQueries.tablet} {
margin-top: 88%;
}
${p => p.theme.mediaQueries.xs} {
margin-top: 145%;
}
`

const LogoContainer = styled.div`
Expand All @@ -41,7 +50,6 @@ const SponsorLogo = styled.img`
`

const StyledFooterContainer = styled.div`
position: absolute;
${CenterHorizontally}
z-index: 100;
top: 55em;
Expand All @@ -58,11 +66,10 @@ const BoundingBox = styled.img`

const CopyrightBlurb = styled(P)`
&& {
position: absolute;
display: block;
width: 100%;
text-align: center;
top: 61em;
margin-top: 3em;
padding-bottom: 2.5em;
}
`
Expand Down
34 changes: 33 additions & 1 deletion src/containers/Landing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ const HoloBackground = styled.img`
top: 18em;
${CenterHorizontally}
z-index: -1;
${p => p.theme.mediaQueries.tabletLarge} {
width: 200%;
top: 40%;
}
${p => p.theme.mediaQueries.tablet} {
width: 200%;
top: 40%;
}
${p => p.theme.mediaQueries.xs} {
width: 300%;
top: 50%;
}
`

const StyledLogoLockup = styled.img`
Expand All @@ -41,8 +53,17 @@ const StyledLogoLockup = styled.img`
`
top: 14em;
`}
${p => p.theme.mediaQueries.tabletLarge} {
top: 18%;
width: 80%;
}
${p => p.theme.mediaQueries.tablet} {
top: 15%;
width: 82%;
}
${p => p.theme.mediaQueries.xs} {
width: 90%;
top: 19%;
}
`

Expand All @@ -53,8 +74,19 @@ const StyledBanner = styled(Banner)`
padding: 56px 24px 24px;
text-align: center;
z-index: 0;
${p => p.theme.mediaQueries.tabletLarge} {
top: 37%;
width: 45%;
}
${p => p.theme.mediaQueries.tablet} {
padding: 15% 3% 5%;
top: 30%;
width: 45%;
}
${p => p.theme.mediaQueries.xs} {
padding: 30px 10px 10px;
padding: 12% 3% 5%;
width: 85%;
top: 31%;
}
}
`
Expand Down
3 changes: 3 additions & 0 deletions src/theme/ThemeProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const SCREEN_BREAKPOINTS = {
xs: 576,
mobile: 768,
tablet: 992,
tabletLarge: 1024,
desktop: 1200,
}

Expand Down Expand Up @@ -67,6 +68,7 @@ const nwTheme = {
xs: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.xs}px)`,
mobile: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.mobile}px)`,
tablet: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.tablet}px)`,
tabletLarge: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.tabletLarge}px)`,
desktop: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.desktop}px)`,
},
}
Expand Down Expand Up @@ -128,6 +130,7 @@ const hackcampTheme = {
xs: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.xs}px)`,
mobile: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.mobile}px)`,
tablet: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.tablet}px)`,
tabletLarge: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.tabletLarge}px)`,
desktop: `@media only screen and (max-width: ${SCREEN_BREAKPOINTS.desktop}px)`,
},
}
Expand Down