Skip to content

Commit 29b4eb0

Browse files
committed
Initial commit from Create Next App
0 parents  commit 29b4eb0

File tree

7 files changed

+5792
-0
lines changed

7 files changed

+5792
-0
lines changed

Diff for: .gitignore

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
21+
# debug
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
26+
# local env files
27+
.env.local
28+
.env.development.local
29+
.env.test.local
30+
.env.production.local

Diff for: README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
```
12+
13+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14+
15+
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
16+
17+
## Learn More
18+
19+
To learn more about Next.js, take a look at the following resources:
20+
21+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
22+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
23+
24+
You can check out [the Next.js GitHub repository](https://github.com/zeit/next.js/) - your feedback and contributions are welcome!
25+
26+
## Deploy on ZEIT Now
27+
28+
The easiest way to deploy your Next.js app is to use the [ZEIT Now Platform](https://zeit.co/import?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
29+
30+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

Diff for: package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "next-blog-starter",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start"
9+
},
10+
"dependencies": {
11+
"next": "9.3.5",
12+
"react": "16.13.1",
13+
"react-dom": "16.13.1"
14+
}
15+
}

Diff for: pages/index.js

+204
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
import Head from 'next/head'
2+
3+
export default function Home() {
4+
return (
5+
<div className="container">
6+
<Head>
7+
<title>Create Next App</title>
8+
<link rel="icon" href="/favicon.ico" />
9+
</Head>
10+
11+
<main>
12+
<h1 className="title">
13+
Welcome to <a href="https://nextjs.org">Next.js!</a>
14+
</h1>
15+
16+
<p className="description">
17+
Get started by editing <code>pages/index.js</code>
18+
</p>
19+
20+
<div className="grid">
21+
<a href="https://nextjs.org/docs" className="card">
22+
<h3>Documentation &rarr;</h3>
23+
<p>Find in-depth information about Next.js features and API.</p>
24+
</a>
25+
26+
<a href="https://nextjs.org/learn" className="card">
27+
<h3>Learn &rarr;</h3>
28+
<p>Learn about Next.js in an interactive course with quizzes!</p>
29+
</a>
30+
31+
<a
32+
href="https://github.com/zeit/next.js/tree/master/examples"
33+
className="card"
34+
>
35+
<h3>Examples &rarr;</h3>
36+
<p>Discover and deploy boilerplate example Next.js projects.</p>
37+
</a>
38+
39+
<a
40+
href="https://zeit.co/import?filter=next.js&utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
41+
className="card"
42+
>
43+
<h3>Deploy &rarr;</h3>
44+
<p>
45+
Instantly deploy your Next.js site to a public URL with ZEIT Now.
46+
</p>
47+
</a>
48+
</div>
49+
</main>
50+
51+
<footer>
52+
<a
53+
href="https://zeit.co?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
54+
target="_blank"
55+
rel="noopener noreferrer"
56+
>
57+
Powered by <img src="/zeit.svg" alt="ZEIT Logo" />
58+
</a>
59+
</footer>
60+
61+
<style jsx>{`
62+
.container {
63+
min-height: 100vh;
64+
padding: 0 0.5rem;
65+
display: flex;
66+
flex-direction: column;
67+
justify-content: center;
68+
align-items: center;
69+
}
70+
71+
main {
72+
padding: 5rem 0;
73+
flex: 1;
74+
display: flex;
75+
flex-direction: column;
76+
justify-content: center;
77+
align-items: center;
78+
}
79+
80+
footer {
81+
width: 100%;
82+
height: 100px;
83+
border-top: 1px solid #eaeaea;
84+
display: flex;
85+
justify-content: center;
86+
align-items: center;
87+
}
88+
89+
footer img {
90+
margin-left: 0.5rem;
91+
}
92+
93+
footer a {
94+
display: flex;
95+
justify-content: center;
96+
align-items: center;
97+
}
98+
99+
a {
100+
color: inherit;
101+
text-decoration: none;
102+
}
103+
104+
.title a {
105+
color: #0070f3;
106+
text-decoration: none;
107+
}
108+
109+
.title a:hover,
110+
.title a:focus,
111+
.title a:active {
112+
text-decoration: underline;
113+
}
114+
115+
.title {
116+
margin: 0;
117+
line-height: 1.15;
118+
font-size: 4rem;
119+
}
120+
121+
.title,
122+
.description {
123+
text-align: center;
124+
}
125+
126+
.description {
127+
line-height: 1.5;
128+
font-size: 1.5rem;
129+
}
130+
131+
code {
132+
background: #fafafa;
133+
border-radius: 5px;
134+
padding: 0.75rem;
135+
font-size: 1.1rem;
136+
font-family: Menlo, Monaco, Lucida Console, Liberation Mono,
137+
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
138+
}
139+
140+
.grid {
141+
display: flex;
142+
align-items: center;
143+
justify-content: center;
144+
flex-wrap: wrap;
145+
146+
max-width: 800px;
147+
margin-top: 3rem;
148+
}
149+
150+
.card {
151+
margin: 1rem;
152+
flex-basis: 45%;
153+
padding: 1.5rem;
154+
text-align: left;
155+
color: inherit;
156+
text-decoration: none;
157+
border: 1px solid #eaeaea;
158+
border-radius: 10px;
159+
transition: color 0.15s ease, border-color 0.15s ease;
160+
}
161+
162+
.card:hover,
163+
.card:focus,
164+
.card:active {
165+
color: #0070f3;
166+
border-color: #0070f3;
167+
}
168+
169+
.card h3 {
170+
margin: 0 0 1rem 0;
171+
font-size: 1.5rem;
172+
}
173+
174+
.card p {
175+
margin: 0;
176+
font-size: 1.25rem;
177+
line-height: 1.5;
178+
}
179+
180+
@media (max-width: 600px) {
181+
.grid {
182+
width: 100%;
183+
flex-direction: column;
184+
}
185+
}
186+
`}</style>
187+
188+
<style jsx global>{`
189+
html,
190+
body {
191+
padding: 0;
192+
margin: 0;
193+
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
194+
Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
195+
sans-serif;
196+
}
197+
198+
* {
199+
box-sizing: border-box;
200+
}
201+
`}</style>
202+
</div>
203+
)
204+
}

Diff for: public/favicon.ico

14.7 KB
Binary file not shown.

Diff for: public/zeit.svg

+10
Loading

0 commit comments

Comments
 (0)