-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: default page styling + error page refactor (#61)
* style: 💅 dark background with crosses pattern on default page * style: 💅 added heading to default page * refactor: 🔍 small tweaks to default page * refactor: 🔍 optimized code structure and added home button to error page * refactor(requested-changes): 🔍 implemented requested changes Co-authored-by: Doeke Leeuwis <[email protected]> Co-authored-by: Mitchel van Bever <[email protected]> Co-authored-by: Mitchel van Bever <[email protected]> Co-authored-by: MitchelvanBever <[email protected]>
- Loading branch information
1 parent
71dbb29
commit 74e911f
Showing
7 changed files
with
102 additions
and
55 deletions.
There are no files selected for viewing
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,17 @@ | ||
export const CrossPattern = () => ( | ||
<svg width="100%" height="100%"> | ||
<pattern | ||
id="cross-pattern" | ||
width="32" | ||
height="32" | ||
patternUnits="userSpaceOnUse" | ||
> | ||
<path | ||
d="M4.00667 0L9.99334 5.99333L15.9933 0L20 3.99333L14 10L20 15.9933L15.9933 20L9.99334 13.9933L4.00667 20L0 15.9933L6 10L0 3.99333L4.00667 0Z" | ||
fill="#343434" | ||
/> | ||
</pattern> | ||
|
||
<rect fill="url(#cross-pattern)" height="100%" width="100%" y="0" x="0" /> | ||
</svg> | ||
); |
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,33 @@ | ||
import { Flex } from 'rebass/styled-components'; | ||
|
||
import { CrossPattern } from './CrossPattern'; | ||
|
||
export const Background = () => ( | ||
<Flex | ||
bg="black" | ||
flexWrap="wrap" | ||
alignContent="start" | ||
justifyContent="space-evenly" | ||
flex={1} | ||
overflow="hidden" | ||
sx={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
bottom: 0, | ||
right: 0, | ||
'&:after': { | ||
content: "''", | ||
position: 'fixed', | ||
top: 0, | ||
left: 0, | ||
bottom: 0, | ||
right: 0, | ||
background: | ||
'radial-gradient(circle, rgba(0,0,0,0.75) 0%, rgba(0,0,0,75) 80%);', | ||
}, | ||
}} | ||
> | ||
<CrossPattern /> | ||
</Flex> | ||
); |
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 @@ | ||
export * from './background'; |
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 |
---|---|---|
@@ -1,26 +1,22 @@ | ||
import { NextSeo } from 'next-seo'; | ||
import { Flex, Heading, Text } from 'rebass/styled-components'; | ||
import { Heading, Box } from 'rebass/styled-components'; | ||
import { Background } from '~components/home'; | ||
|
||
const Home = () => ( | ||
<div> | ||
<NextSeo title="Home" description="This is a Home page" /> | ||
<Flex bg="grey100" p={2} width="100%" height="100vh" variant="center"> | ||
<Flex | ||
bg="grey800" | ||
minHeight="50vh" | ||
minWidth="50%" | ||
variant="center" | ||
sx={{ borderRadius: 'lg', boxShadow: 'sm' }} | ||
<> | ||
<NextSeo title="Home" description="What will your Story be?" /> | ||
<Background /> | ||
<Box pt="50vh" sx={{ position: 'relative' }}> | ||
<Heading | ||
fontSize={[6, 9]} | ||
color="white" | ||
textAlign="center" | ||
sx={{ transform: 'translateY(-50%)' }} | ||
> | ||
<Heading textAlign="center" px={3} py={4} variant="h2" color="white"> | ||
What will your Story be | ||
<Text display="inline-block" color="primary500"> | ||
? | ||
</Text> | ||
</Heading> | ||
</Flex> | ||
</Flex> | ||
</div> | ||
What will your Story be? | ||
</Heading> | ||
</Box> | ||
</> | ||
); | ||
|
||
export default Home; |
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
74e911f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: