-
Notifications
You must be signed in to change notification settings - Fork 392
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
1 parent
5c79cf7
commit 8edce4b
Showing
9 changed files
with
128 additions
and
0 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,16 @@ | ||
import styled from 'styled-components/macro'; | ||
|
||
const A = styled.a` | ||
color: ${p => p.theme.primary}; | ||
text-decoration: none; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
&:active { | ||
opacity: 0.4; | ||
} | ||
`; | ||
|
||
export default A; |
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,9 @@ | ||
import styled from 'styled-components/macro'; | ||
|
||
const Lead = styled.div` | ||
font-size: 1.5rem; | ||
font-weight: 300; | ||
line-height: 1.5; | ||
`; | ||
|
||
export default Lead; |
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,31 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components/macro'; | ||
import { ReactComponent as CRALogo } from './cra-logo.svg'; | ||
import { ReactComponent as RPLogo } from './rp-logo.svg'; | ||
import { ReactComponent as PlusSign } from './plus-sign.svg'; | ||
|
||
export default function Logos() { | ||
return ( | ||
<Wrapper> | ||
<CRALogo className="logo" /> | ||
<PlusSign className="sign" /> | ||
<RPLogo className="logo" /> | ||
</Wrapper> | ||
); | ||
} | ||
|
||
const Wrapper = styled.div` | ||
display: flex; | ||
align-items: center; | ||
.logo { | ||
width: 4.5rem; | ||
height: 4.5rem; | ||
} | ||
.sign { | ||
width: 2rem; | ||
height: 2rem; | ||
margin: 0 2rem; | ||
} | ||
`; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components/macro'; | ||
import Container from 'components/Container'; | ||
import Logos from './Logos'; | ||
import Title from 'components/Title'; | ||
import Lead from 'components/Lead'; | ||
import A from 'components/A'; | ||
|
||
export default function Masthead() { | ||
return ( | ||
<Wrapper> | ||
<Container> | ||
<Logos /> | ||
<Title>React Boilerplate meets CRA</Title> | ||
<Lead> | ||
Now you can use the{' '} | ||
<A | ||
href="https://www.reactboilerplate.com/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
React Boilerplate | ||
</A>{' '} | ||
as{' '} | ||
<A | ||
href="https://create-react-app.dev/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Create React App | ||
</A>{' '} | ||
template. | ||
</Lead> | ||
</Container> | ||
</Wrapper> | ||
); | ||
} | ||
|
||
const Wrapper = styled.main` | ||
height: 75vh; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
min-height: 320px; | ||
${Container} { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
`; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import styled from 'styled-components/macro'; | ||
|
||
const Title = styled.h1` | ||
font-size: 32px; | ||
font-weight: bold; | ||
color: ${p => p.theme.text}; | ||
margin: 1rem 0; | ||
`; | ||
|
||
export default Title; |
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