-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaked ESLint + Prettier configs; Fleshed out some Router logic
- Loading branch information
Showing
12 changed files
with
84 additions
and
23 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
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 @@ | ||
{ | ||
"arrowParens": "always", | ||
"jsxSingleQuote": true, | ||
"semi": false, | ||
"singleQuote": true, | ||
"jsxBracketSameLine": true, | ||
"bracketSpacing": false, | ||
"tabWidth": 3, | ||
"printWidth": 120 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import React, {useState, useContext, useEffect, useCallback, useMemo} from 'react' | ||
import {Link} from 'react-router-dom' | ||
import '../styles/header.css' | ||
|
||
export default function Header() { | ||
return ( | ||
<header> | ||
<h1>Slide News</h1> | ||
<h1> | ||
<Link to='/'>Slide News</Link> | ||
</h1> | ||
</header> | ||
) | ||
} |
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,6 +1,11 @@ | ||
import React, {useState, useContext, useEffect, useCallback, useMemo} from 'react' | ||
import {Link} from 'react-router-dom' | ||
import '../styles/intro.css' | ||
|
||
export default function Intro() { | ||
return <div>Customize your news...</div> | ||
return ( | ||
<div> | ||
<Link to='/customize'>Customize your news...</Link> | ||
</div> | ||
) | ||
} |
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,3 +1,3 @@ | ||
footer { | ||
border: 1px solid red | ||
} | ||
border: 1px solid red; | ||
} |
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,6 +1,11 @@ | ||
header { | ||
h1 { | ||
border: 1px solid green; | ||
font-size: 100px; | ||
h1 { | ||
border: 1px solid green; | ||
font-size: 100px; | ||
a, | ||
a:visited { | ||
color: black; | ||
text-decoration: none; | ||
} | ||
} | ||
} | ||
} |
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,4 +1,3 @@ | ||
div { | ||
border: 1px solid orange; | ||
|
||
} | ||
border: 1px solid purple; | ||
} |
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,3 +1,7 @@ | ||
header h1 { | ||
border: 1px solid green; | ||
font-size: 100px; } | ||
header h1 a, | ||
header h1 a:visited { | ||
color: black; | ||
text-decoration: none; } |
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,2 +1,2 @@ | ||
div { | ||
border: 1px solid orange; } | ||
border: 1px solid purple; } |