Skip to content

Commit 06e3492

Browse files
committed
chore: Init
0 parents  commit 06e3492

19 files changed

+2824
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# vercel
34+
.vercel

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v12.13.0

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
tabWidth: 2,
3+
singleQuote: true,
4+
trailingComma: 'all',
5+
};

README.md

Lines changed: 34 additions & 0 deletions
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.js`. 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.js`.
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.

components/cards/CardFlatted.jsx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import Image from 'next/image';
2+
3+
function CardFlatted({ props }) {
4+
return (
5+
<div className="card-grid">
6+
{props &&
7+
props.length &&
8+
props.map((prop, i) => {
9+
return (
10+
<a href={prop.url} className="card-flatted" key={i}>
11+
<div className="lg:flex sm:block">
12+
<div className="lg:w-1/12 w-100 contents">
13+
<Image
14+
src={prop.imageUrl}
15+
alt={prop.title}
16+
width="640"
17+
height="640"
18+
layout="intrinsic"
19+
/>
20+
</div>
21+
<div className="lg:w-11/12 w-100 p-3">
22+
<h5
23+
className="text-2xl"
24+
dangerouslySetInnerHTML={{ __html: prop.title }}
25+
></h5>
26+
<p
27+
className="py-3"
28+
dangerouslySetInnerHTML={{ __html: prop.description }}
29+
></p>
30+
<span className="block text-right text-gray-400 text-sm pt-3">
31+
{prop.published}
32+
</span>
33+
</div>
34+
</div>
35+
</a>
36+
);
37+
})}
38+
</div>
39+
);
40+
}
41+
42+
export default CardFlatted;

components/cards/CardRounded.jsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
function CardRounded({ props }) {
2+
return (
3+
<div className="card-grid">
4+
{props &&
5+
props.length &&
6+
props.map((prop, i) => {
7+
return (
8+
<a href={prop.url} className="card-rounded" key={i}>
9+
<h3
10+
className="text-4xl"
11+
dangerouslySetInnerHTML={{ __html: prop.title }}
12+
></h3>
13+
<p dangerouslySetInnerHTML={{ __html: prop.description }}></p>
14+
</a>
15+
);
16+
})}
17+
</div>
18+
);
19+
}
20+
21+
export default CardRounded;

jsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"~*": ["./*"],
6+
"@*": ["./*"],
7+
"~/*": ["./*"],
8+
"@/*": ["./*"],
9+
"~~/*": ["./*"],
10+
"@@/*": ["./*"],
11+
}
12+
},
13+
"exclude": ["node_modules", ".next", ".vercel", ".vscode", "dist"]
14+
}

next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
images: {
3+
domains: ['picsum.photos'], // (https://picsum.photos/300/300)
4+
},
5+
};

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "nextjs-tailwindcss-website",
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": "10.1.3",
12+
"react": "17.0.2",
13+
"react-dom": "17.0.2"
14+
},
15+
"devDependencies": {
16+
"@tailwindcss/jit": "^0.1.18",
17+
"autoprefixer": "^10.2.5",
18+
"postcss": "^8.2.9",
19+
"tailwindcss": "^2.1.1"
20+
}
21+
}

0 commit comments

Comments
 (0)