forked from armujahid/hnreact
-
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.
- Loading branch information
1 parent
c76d93b
commit 2bec44e
Showing
14 changed files
with
2,034 additions
and
93 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,5 +1,7 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
.next | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import Link from 'next/link' | ||
|
||
const NotFound = () => { | ||
return ( | ||
<> | ||
<div>404 Not Found</div> | ||
<Link href="/"> | ||
<a>Click here</a> | ||
</Link>{' '} | ||
to go back to home page | ||
</> | ||
); | ||
} | ||
|
||
export default NotFound |
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,21 @@ | ||
import '../styles/index.css' | ||
import 'bootstrap/dist/css/bootstrap.min.css'; | ||
import Head from 'next/head' | ||
import NavBar from '../components/NavBar' | ||
|
||
function MyApp({ Component, pageProps }) { | ||
return ( | ||
<div className="main-container"> | ||
<Head> | ||
<title>HN React</title> | ||
<meta name="viewport" content="initial-scale=1.0, width=device-width" /> | ||
</Head> | ||
<NavBar /> | ||
<div className="container"> | ||
<Component {...pageProps} /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default MyApp |
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,8 @@ | ||
import React from 'react' | ||
import Stories from '../components/Stories' | ||
|
||
|
||
const Index = () => <Stories storytype="askstories" key="4" /> | ||
|
||
|
||
export default Index |
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,8 @@ | ||
import React from 'react' | ||
import Stories from '../components/Stories' | ||
|
||
|
||
const Index = () => <Stories storytype="beststories" key="3" /> | ||
|
||
|
||
export default Index |
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,8 @@ | ||
import React from 'react' | ||
import Stories from '../components/Stories' | ||
|
||
|
||
const Index = () => <Stories storytype="topstories" key="1" /> | ||
|
||
|
||
export default Index |
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,8 @@ | ||
import React from 'react' | ||
import Stories from '../components/Stories' | ||
|
||
|
||
const Index = () => <Stories storytype="jobstories" key="6" /> | ||
|
||
|
||
export default Index |
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,8 @@ | ||
import React from 'react' | ||
import Stories from '../components/Stories' | ||
|
||
|
||
const Index = () => <Stories storytype="newstories" key="2" /> | ||
|
||
|
||
export default Index |
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,8 @@ | ||
import React from 'react' | ||
import Stories from '../components/Stories' | ||
|
||
|
||
const Index = () => <Stories storytype="showstories" key="5" /> | ||
|
||
|
||
export default Index |
File renamed without changes.
Oops, something went wrong.