-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hayk
committed
Jan 22, 2023
1 parent
2cce38e
commit 3a6ed0a
Showing
8 changed files
with
79 additions
and
156 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 |
---|---|---|
@@ -1,24 +1,30 @@ | ||
import React from 'react' | ||
import styled, { createGlobalStyle, injectGlobal } from 'styled-components' | ||
import { colors, textSizesStyles } from '../styles/variables' | ||
import { createGlobalStyle } from 'styled-components' | ||
|
||
import AtlasGrotesk400Woff from '../assets/fonts/AtlasGrotesk-400.woff' | ||
import AtlasGrotesk400Woff2 from '../assets/fonts/AtlasGrotesk-400.woff2' | ||
import AtlasGrotesk700Woff from '../assets/fonts/AtlasGrotesk-700.woff' | ||
import AtlasGrotesk700Woff2 from '../assets/fonts/AtlasGrotesk-700.woff2' | ||
const spaces = [1, 2, 3, 4, 5] | ||
|
||
const GlobalStyles = createGlobalStyle` | ||
` | ||
const sides = { | ||
top: 't', | ||
right: 'r', | ||
bottom: 'b', | ||
left: 'l', | ||
}; | ||
|
||
const Root = styled.div` | ||
` | ||
const GlobalStyles = createGlobalStyle` | ||
${spaces.map(space => { | ||
return Object.entries(sides).map(([side, shorthand]) => ` | ||
.m${shorthand}-${space} { | ||
margin-${side}: var(--space${space}); | ||
} | ||
`).join(''); | ||
}).join('')} | ||
`; | ||
|
||
const BaseStyles = ({children}) => ( | ||
<Root> | ||
<> | ||
<GlobalStyles /> | ||
{children} | ||
</Root> | ||
</> | ||
) | ||
|
||
export default BaseStyles |
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 was deleted.
Oops, something went wrong.
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
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
3a6ed0a
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:
portfolio – ./
hayk.design
portfolio-git-master-hihayk.vercel.app
portfolio-psi-red.vercel.app
portfolio-hihayk.vercel.app