Skip to content

Commit

Permalink
Initial starter code
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwcomeau committed May 10, 2023
0 parents commit 005e97f
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
.vscode
16 changes: 16 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Josh's Course Materials License

Version 1, November 2020
Copyright (c) Josh Comeau, 2020-present

The files in this repository are meant to be used as part of a paid course, and are not intended for public distribution. They're open-source because it's the simplest form of distribution, and provides the best experience for students enrolled in the course.

All are welcome to create personal copies of this repository, and modify its contents for educational use. Please experiment with the code, and see what you can build!

It is forbidden to use these contents in any sort of commercial endeavour, including but not limited to:

• Reselling its contents as part of a different course
• Incorporating the code into a pre-existing business or project
• Selling your solution to students enrolled in the course

Exemptions can be made, on a case-by-case basis. Contact Josh Comeau ([email protected]) for more information.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Next 13 template

This is a _super minimal_ starter for Next 13's App Router.

Not intended for use in production. Purely used for educational reasons.
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "hello-next",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "13.4.0",
"react": "18.2.0",
"react-dom": "18.2.0"
}
}
13 changes: 13 additions & 0 deletions src/app/layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';

import './styles.css';

function RootLayout({ children }) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}

export default RootLayout;
7 changes: 7 additions & 0 deletions src/app/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

function Home() {
return <p>Hello world!</p>;
}

export default Home;
47 changes: 47 additions & 0 deletions src/app/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html,
body {
height: 100%;
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
#root,
#__next {
isolation: isolate;
}

0 comments on commit 005e97f

Please sign in to comment.