Skip to content

Commit 9abfc44

Browse files
author
Felipe Torres
committed
initial
1 parent efae1cb commit 9abfc44

18 files changed

+2582
-9
lines changed

.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/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.tsx`. The page auto-updates as you edit the file.
16+
17+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
18+
19+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20+
21+
## Learn More
22+
23+
To learn more about Next.js, take a look at the following resources:
24+
25+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27+
28+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29+
30+
## Deploy on Vercel
31+
32+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33+
34+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

archetypes/default.md

-6
This file was deleted.

config.toml

-3
This file was deleted.

next-env.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/** @type {import('next').NextConfig} */
2+
3+
const nextConfig = {
4+
reactStrictMode: true,
5+
experimental: {
6+
emotion: true,
7+
},
8+
}
9+
10+
module.exports = nextConfig

package.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "jsconf_cl",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"@emotion/css": "^11.9.0",
13+
"@emotion/react": "^11.9.0",
14+
"@emotion/server": "^11.4.0",
15+
"@emotion/styled": "^11.8.1",
16+
"next": "12.1.5",
17+
"react": "18.0.0",
18+
"react-dom": "18.0.0"
19+
},
20+
"devDependencies": {
21+
"@types/node": "17.0.25",
22+
"@types/react": "18.0.6",
23+
"@types/react-dom": "18.0.2",
24+
"eslint": "8.14.0",
25+
"eslint-config-next": "12.1.5",
26+
"typescript": "4.6.3"
27+
}
28+
}

pages/_app.tsx

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import "../styles/globals.css";
2+
import { globalStyles } from "../shared/theme";
3+
import type { AppProps } from "next/app";
4+
5+
function MyApp({ Component, pageProps }: AppProps) {
6+
return (
7+
<>
8+
{globalStyles}
9+
<Component {...pageProps} />
10+
</>
11+
);
12+
}
13+
14+
export default MyApp;

pages/api/hello.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2+
import type { NextApiRequest, NextApiResponse } from 'next'
3+
4+
type Data = {
5+
name: string
6+
}
7+
8+
export default function handler(
9+
req: NextApiRequest,
10+
res: NextApiResponse<Data>
11+
) {
12+
res.status(200).json({ name: 'John Doe' })
13+
}

pages/index.tsx

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import type { NextPage } from "next";
2+
import Head from "next/head";
3+
import styles from "../styles/Home.module.css";
4+
5+
const Home: NextPage = () => {
6+
return (
7+
<div className={styles.container}>
8+
<Head>
9+
<title>Create Next App</title>
10+
<meta name="description" content="Generated by create next app" />
11+
<link rel="icon" href="/favicon.ico" />
12+
</Head>
13+
14+
<main className={styles.main}>
15+
<h1 className={styles.title}>
16+
Welcome to <a href="https://nextjs.org">Next.js!</a>
17+
</h1>
18+
19+
<p className={styles.description}>
20+
Get started by editing{" "}
21+
<code className={styles.code}>pages/index.tsx</code>
22+
</p>
23+
24+
<div className={styles.grid}>
25+
<a href="https://nextjs.org/docs" className={styles.card}>
26+
<h2>Documentation &rarr;</h2>
27+
<p>Find in-depth information about Next.js features and API.</p>
28+
</a>
29+
30+
<a href="https://nextjs.org/learn" className={styles.card}>
31+
<h2>Learn &rarr;</h2>
32+
<p>Learn about Next.js in an interactive course with quizzes!</p>
33+
</a>
34+
35+
<a
36+
href="https://github.com/vercel/next.js/tree/canary/examples"
37+
className={styles.card}
38+
>
39+
<h2>Examples &rarr;</h2>
40+
<p>Discover and deploy boilerplate example Next.js projects.</p>
41+
</a>
42+
43+
<a
44+
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
45+
className={styles.card}
46+
>
47+
<h2>Deploy &rarr;</h2>
48+
<p>
49+
Instantly deploy your Next.js site to a public URL with Vercel.
50+
</p>
51+
</a>
52+
</div>
53+
</main>
54+
55+
<footer className={styles.footer}>
56+
<a
57+
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
58+
target="_blank"
59+
rel="noopener noreferrer"
60+
>
61+
Powered by NextJS
62+
</a>
63+
</footer>
64+
</div>
65+
);
66+
};
67+
68+
export default Home;

public/favicon.ico

25.3 KB
Binary file not shown.

public/vercel.svg

+4
Loading

shared/theme/index.tsx

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
import { css, Global } from "@emotion/react";
2+
3+
export const globalStyles = (
4+
<Global
5+
styles={css`
6+
/***
7+
The new CSS reset - version 1.5.1 (last updated 1.3.2022)
8+
GitHub page: https://github.com/elad2412/the-new-css-reset
9+
***/
10+
11+
/*
12+
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
13+
- The "symbol *" part is to solve Firefox SVG sprite bug
14+
*/
15+
*:where(:not(iframe, canvas, img, svg, video):not(svg *, symbol *)) {
16+
all: unset;
17+
display: revert;
18+
}
19+
20+
/* Preferred box-sizing value */
21+
*,
22+
*::before,
23+
*::after {
24+
box-sizing: border-box;
25+
}
26+
27+
/* Reapply the pointer cursor for anchor tags */
28+
a,
29+
button {
30+
cursor: revert;
31+
}
32+
33+
/* Remove list styles (bullets/numbers) */
34+
ol,
35+
ul,
36+
menu {
37+
list-style: none;
38+
}
39+
40+
/* For images to not be able to exceed their container */
41+
img {
42+
max-width: 100%;
43+
}
44+
45+
/* removes spacing between cells in tables */
46+
table {
47+
border-collapse: collapse;
48+
}
49+
50+
/* revert the 'white-space' property for textarea elements on Safari */
51+
textarea {
52+
white-space: revert;
53+
}
54+
55+
/* minimum style to allow to style meter element */
56+
meter {
57+
-webkit-appearance: revert;
58+
appearance: revert;
59+
}
60+
61+
/* reset default text opacity of input placeholder */
62+
::placeholder {
63+
color: unset;
64+
}
65+
66+
/* fix the feature of 'hidden' attribute.
67+
display:revert; revert to element instead of attribute */
68+
:where([hidden]) {
69+
display: none;
70+
}
71+
72+
/* revert for bug in Chromium browsers
73+
- fix for the content editable attribute will work properly. */
74+
:where([contenteditable]) {
75+
-moz-user-modify: read-write;
76+
-webkit-user-modify: read-write;
77+
overflow-wrap: break-word;
78+
-webkit-line-break: after-white-space;
79+
}
80+
81+
/* apply back the draggable feature - exist only in Chromium and Safari */
82+
:where([draggable="true"]) {
83+
-webkit-user-drag: element;
84+
}
85+
`}
86+
/>
87+
);

0 commit comments

Comments
 (0)