-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: better background effect in lore page and other improvements (#29
) * style: better lore cone background * style: remove opacity on arrows * fix: ball position on mobile * style: title position on landing page * fix: the navbar link doesn't get colored * fix: landings title position
- Loading branch information
Showing
10 changed files
with
152 additions
and
108 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
import styled from "styled-components"; | ||
|
||
import { PageContent } from "~/components/app"; | ||
import { ApproachSection } from "./ApproachSection"; | ||
import { | ||
Ball, | ||
MOBILE_MAX_WIDTH, | ||
SPACING_192, | ||
SPACING_512, | ||
SPACING_700, | ||
LiquidDistortion, | ||
} from "~/components/common"; | ||
import { useWindowDimensions } from "~/hooks/windowDimensions"; | ||
import TextSection from "./TextSection"; | ||
import Cone from "~/assets/cone.png"; | ||
import HoopTop from "~/assets/hoop-top.png"; | ||
import HoopBottom from "~/assets/hoop-bottom.png"; | ||
|
||
const StyledApproachSection = styled(ApproachSection)` | ||
padding: "3rem 0"; | ||
`; | ||
|
||
const HeroDivider = styled.div` | ||
position: absolute; | ||
width: 100%; | ||
bottom: 0; | ||
z-index: 100; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
top: ${SPACING_192}; | ||
@media screen and (max-width: ${MOBILE_MAX_WIDTH}) { | ||
top: 22rem; | ||
} | ||
`; | ||
|
||
const SBall = styled(Ball)` | ||
top: 21rem; | ||
@media screen and (max-width: ${MOBILE_MAX_WIDTH}) { | ||
top: 14rem; | ||
width: 6rem; | ||
} | ||
`; | ||
|
||
const MobileTitleContainer = styled.div` | ||
transform: rotate(3deg); | ||
`; | ||
|
||
const BackgroundContainer = styled.div` | ||
position: relative; | ||
width: ${SPACING_512}; | ||
height: ${SPACING_700}; | ||
right: 12rem; | ||
top: 20rem; | ||
@media screen and (max-width: ${MOBILE_MAX_WIDTH}) { | ||
width: 25.6rem; | ||
height: 35rem; | ||
right: 11rem; | ||
top: 12rem; | ||
} | ||
`; | ||
|
||
const SCone = styled.img` | ||
position: absolute; | ||
@media screen and (max-width: ${MOBILE_MAX_WIDTH}) { | ||
width: 30rem; | ||
} | ||
`; | ||
|
||
const SHoop = styled(SCone)` | ||
z-index: 10; | ||
`; | ||
|
||
export function Lore() { | ||
const { isMobile, isTablet } = useWindowDimensions(); | ||
|
||
return ( | ||
<PageContent> | ||
<HeroDivider> | ||
{!isMobile && ( | ||
<> | ||
<LiquidDistortion | ||
text="WOND3RLAND IS NOT A PLACE," | ||
fontSize={isTablet ? 90 : undefined} | ||
/> | ||
<LiquidDistortion | ||
text="IT'S A FEELING WITHIN, A PROCESS." | ||
fontSize={isTablet ? 90 : undefined} | ||
/> | ||
</> | ||
)} | ||
|
||
{isMobile && ( | ||
<MobileTitleContainer> | ||
<LiquidDistortion text="WOND3RLAND" fontSize={65} /> | ||
<LiquidDistortion text="IS NOT A PLACE," fontSize={65} /> | ||
<LiquidDistortion text="IT'S A FEELING WITHIN," fontSize={65} /> | ||
<LiquidDistortion text="A PROCESS." fontSize={65} /> | ||
</MobileTitleContainer> | ||
)} | ||
</HeroDivider> | ||
<BackgroundContainer> | ||
<SCone src={HoopTop} alt="starts background" /> | ||
<SCone src={Cone} alt="starts background" /> | ||
<SBall /> | ||
<SHoop src={HoopBottom} alt="starts background" /> | ||
</BackgroundContainer> | ||
|
||
<TextSection /> | ||
|
||
<StyledApproachSection /> | ||
</PageContent> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1 @@ | ||
import styled from "styled-components"; | ||
|
||
import { PageContent } from "~/components/app"; | ||
import { ApproachSection } from "./ApproachSection"; | ||
import { | ||
Ball, | ||
MOBILE_MAX_WIDTH, | ||
SPACING_128, | ||
SPACING_192, | ||
SPACING_512, | ||
SPACING_700, | ||
LiquidDistortion, | ||
} from "~/components/common"; | ||
import { useWindowDimensions } from "~/hooks/windowDimensions"; | ||
import CONE from "~/assets/Cono_bola.png"; | ||
import TextSection from "./TextSection"; | ||
|
||
const StyledApproachSection = styled(ApproachSection)` | ||
padding: "3rem 0"; | ||
`; | ||
|
||
const SCone = styled.img` | ||
width: ${SPACING_512}; | ||
height: ${SPACING_700}; | ||
margin-right: 15%; | ||
margin-top: ${SPACING_128}; | ||
@media screen and (max-width: ${MOBILE_MAX_WIDTH}) { | ||
width: 25.6rem; | ||
height: 35rem; | ||
margin-left: -25%; | ||
margin-top: 8rem; | ||
} | ||
`; | ||
|
||
const HeroDivider = styled.div` | ||
position: absolute; | ||
width: 100%; | ||
bottom: 0; | ||
z-index: 10; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
top: ${SPACING_192}; | ||
@media screen and (max-width: ${MOBILE_MAX_WIDTH}) { | ||
top: -12rem; | ||
} | ||
`; | ||
|
||
const SBall = styled(Ball)` | ||
margin-top: -7rem; | ||
@media screen and (max-width: ${MOBILE_MAX_WIDTH}) { | ||
width: 6rem; | ||
margin-top: -14rem; | ||
} | ||
`; | ||
|
||
const MobileTitleContainer = styled.div` | ||
transform: rotate(3deg); | ||
`; | ||
|
||
export function Lore() { | ||
const { isMobile } = useWindowDimensions(); | ||
|
||
return ( | ||
<PageContent> | ||
<SBall /> | ||
|
||
<HeroDivider> | ||
{!isMobile && ( | ||
<> | ||
<LiquidDistortion text="WOND3RLAND IS NOT A PLACE," /> | ||
<LiquidDistortion text="IT'S A FEELING WITHIN, A PROCESS." /> | ||
</> | ||
)} | ||
|
||
{isMobile && ( | ||
<MobileTitleContainer> | ||
<LiquidDistortion text="WOND3RLAND" fontSize={65} /> | ||
<LiquidDistortion text="IS NOT A PLACE," fontSize={65} /> | ||
<LiquidDistortion text="IT'S A FEELING WITHIN," fontSize={65} /> | ||
<LiquidDistortion text="A PROCESS." fontSize={65} /> | ||
</MobileTitleContainer> | ||
)} | ||
</HeroDivider> | ||
<SCone src={CONE} alt="starts background" /> | ||
|
||
<TextSection /> | ||
|
||
<StyledApproachSection /> | ||
</PageContent> | ||
); | ||
} | ||
export * from "./Lore"; |