-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added breakpoints * mobile text sizes * example on homepage * random styling as an example * cursor pointer, alt text, unique key * large desktops max-width
- Loading branch information
1 parent
80d191c
commit 8e403d5
Showing
11 changed files
with
197 additions
and
61 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,10 @@ | ||
import { createGlobalStyle } from 'styled-components'; | ||
import { BLACK, CREAM } from '../../styles/styles'; | ||
|
||
export const GlobalStyle = createGlobalStyle` | ||
body { | ||
color: ${CREAM}; | ||
background-color: ${BLACK}; | ||
margin: 0; | ||
} | ||
`; |
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,15 +1,32 @@ | ||
import styled from 'styled-components'; | ||
import { min } from '../../styles/breakpoints'; | ||
import { MarginContainer, CREAM } from '../../styles/styles'; | ||
|
||
export const Container = styled.div` | ||
border-top: 0.5px solid ${CREAM}; | ||
border-bottom: 0.5px solid ${CREAM}; | ||
`; | ||
|
||
export const FlexContainer = styled(MarginContainer)` | ||
display: flex; | ||
flex-direction: column; | ||
${min.desktop} { | ||
flex-direction: row; | ||
} | ||
`; | ||
|
||
export const Overview = styled.div` | ||
flex: 50%; | ||
${min.desktop} { | ||
border-right: 0.5px solid ${CREAM}; | ||
} | ||
`; | ||
|
||
export const Content = styled.div` | ||
flex: 50%; | ||
display: flex; | ||
overflow-x: scroll; | ||
${min.desktop} { | ||
border-left: 0.5px solid ${CREAM}; | ||
} | ||
`; |
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,18 @@ | ||
const breakpoints = [ | ||
['tablet', 768], | ||
['desktop', 1280], | ||
['desktopLg', 1440], | ||
]; | ||
|
||
/** | ||
* min-width queries for every breakpoint. | ||
* | ||
* e.g. mobile: '(min-width: 320px)' | ||
*/ | ||
export const min = breakpoints.reduce( | ||
(acc, [name, size]) => ({ | ||
...acc, | ||
[name]: `@media (min-width: ${size}px)`, | ||
}), | ||
{} | ||
); |
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,12 @@ | ||
import styled from 'styled-components'; | ||
import { P } from './styles'; | ||
import { min } from './breakpoints'; | ||
|
||
export const SingleWorksDescription = styled(P)` | ||
${min.tablet} { | ||
width: 87.5%; | ||
} | ||
${min.desktop} { | ||
width: 33.33%; | ||
} | ||
`; |
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