Skip to content

Commit bd226dc

Browse files
committed
add nextjs with tailwind
default nextjs
1 parent 8b5a983 commit bd226dc

36 files changed

+83
-710
lines changed

apps/docs/.eslintrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/docs/.eslintrc.json

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

apps/docs/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ npm-debug.log*
2525
yarn-debug.log*
2626
yarn-error.log*
2727

28-
# env files (can opt-in for commiting if needed)
29-
.env*
28+
# local env files
29+
.env*.local
3030

3131
# vercel
3232
.vercel

apps/docs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/create-next-app).
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).
22

33
## Getting Started
44

@@ -18,7 +18,7 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
1818

1919
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
2020

21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load Inter, a custom Google Font.
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
2222

2323
## Learn More
2424

@@ -27,10 +27,10 @@ To learn more about Next.js, take a look at the following resources:
2727
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
2828
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
2929

30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
3131

3232
## Deploy on Vercel
3333

3434
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.
3535

36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

apps/docs/app/fonts/GeistMonoVF.woff

-66.3 KB
Binary file not shown.

apps/docs/app/fonts/GeistVF.woff

-64.7 KB
Binary file not shown.

apps/docs/app/globals.css

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,3 @@
1-
:root {
2-
--background: #ffffff;
3-
--foreground: #171717;
4-
}
5-
6-
@media (prefers-color-scheme: dark) {
7-
:root {
8-
--background: #0a0a0a;
9-
--foreground: #ededed;
10-
}
11-
}
12-
13-
html,
14-
body {
15-
max-width: 100vw;
16-
overflow-x: hidden;
17-
}
18-
19-
body {
20-
color: var(--foreground);
21-
background: var(--background);
22-
}
23-
24-
* {
25-
box-sizing: border-box;
26-
padding: 0;
27-
margin: 0;
28-
}
29-
30-
a {
31-
color: inherit;
32-
text-decoration: none;
33-
}
34-
35-
@media (prefers-color-scheme: dark) {
36-
html {
37-
color-scheme: dark;
38-
}
39-
}
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

apps/docs/app/layout.tsx

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
11
import type { Metadata } from "next";
2-
import localFont from "next/font/local";
2+
import { Inter } from "next/font/google";
33
import "./globals.css";
44

5-
const geistSans = localFont({
6-
src: "./fonts/GeistVF.woff",
7-
variable: "--font-geist-sans",
8-
});
9-
const geistMono = localFont({
10-
src: "./fonts/GeistMonoVF.woff",
11-
variable: "--font-geist-mono",
12-
});
5+
const inter = Inter({ subsets: ["latin"] });
136

147
export const metadata: Metadata = {
15-
title: "Create Next App",
16-
description: "Generated by create next app",
8+
title: "Create Next App",
9+
description: "Generated by create next app",
1710
};
1811

1912
export default function RootLayout({
20-
children,
13+
children,
2114
}: Readonly<{
22-
children: React.ReactNode;
15+
children: React.ReactNode;
2316
}>) {
24-
return (
25-
<html lang="en">
26-
<body className={`${geistSans.variable} ${geistMono.variable}`}>
27-
{children}
28-
</body>
29-
</html>
30-
);
17+
return (
18+
<html lang="en">
19+
<body className={`bg-black text-white font-mono container`}>
20+
{children}
21+
</body>
22+
</html>
23+
);
3124
}

apps/docs/app/page.module.css

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)