Skip to content

Commit 387dfff

Browse files
committed
new start
1 parent 7c698c1 commit 387dfff

38 files changed

+2538
-4709
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
.yarn/install-state.gz
78

89
# testing
910
/coverage

.vscode/settings.json

-3
This file was deleted.

LICENSE

-21
This file was deleted.

README.md

+23-27
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
1-
# Next.js & NextUI Template
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

3-
This is a template for creating applications using Next.js 13 (app directory) and NextUI (v2).
3+
## Getting Started
44

5-
## Technologies Used
5+
First, run the development server:
66

7-
- [Next.js 13](https://nextjs.org/docs/getting-started)
8-
- [NextUI v2](https://nextui.org/)
9-
- [Tailwind CSS](https://tailwindcss.com/)
10-
- [Tailwind Variants](https://tailwind-variants.org)
11-
- [TypeScript](https://www.typescriptlang.org/)
12-
- [Framer Motion](https://www.framer.com/motion/)
13-
- [next-themes](https://github.com/pacocoursey/next-themes)
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
1416

15-
## How to Use
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1618

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

18-
### Use the template with create-next-app
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
1922

20-
To create a new project based on this template using `create-next-app`, run the following command:
23+
## Learn More
2124

22-
```bash
23-
npx create-next-app -e https://github.com/nextui-org/next-app-template
24-
```
25+
To learn more about Next.js, take a look at the following resources:
2526

26-
### Install dependencies
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
2729

28-
```bash
29-
npm install
30-
```
31-
32-
### Run the development server
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
3331

34-
```bash
35-
npm run dev
36-
```
32+
## Deploy on Vercel
3733

38-
## License
34+
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.
3935

40-
Licensed under the [MIT license](https://github.com/nextui-org/next-app-template/blob/main/LICENSE).
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

app/about/layout.tsx

-13
This file was deleted.

app/about/page.tsx

-9
This file was deleted.

app/blog/layout.tsx

-13
This file was deleted.

app/blog/page.tsx

-9
This file was deleted.

app/docs/layout.tsx

-13
This file was deleted.

app/docs/page.tsx

-9
This file was deleted.

app/error.tsx

-30
This file was deleted.

public/favicon.ico app/favicon.ico

File renamed without changes.

app/globals.css

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
@layer base {
6+
:root {
7+
--background: 0 0% 100%;
8+
--foreground: 224 71.4% 4.1%;
9+
--card: 0 0% 100%;
10+
--card-foreground: 224 71.4% 4.1%;
11+
--popover: 0 0% 100%;
12+
--popover-foreground: 224 71.4% 4.1%;
13+
--primary: 220.9 39.3% 11%;
14+
--primary-foreground: 210 20% 98%;
15+
--secondary: 220 14.3% 95.9%;
16+
--secondary-foreground: 220.9 39.3% 11%;
17+
--muted: 220 14.3% 95.9%;
18+
--muted-foreground: 220 8.9% 46.1%;
19+
--accent: 220 14.3% 95.9%;
20+
--accent-foreground: 220.9 39.3% 11%;
21+
--destructive: 0 84.2% 60.2%;
22+
--destructive-foreground: 210 20% 98%;
23+
--border: 220 13% 91%;
24+
--input: 220 13% 91%;
25+
--ring: 224 71.4% 4.1%;
26+
--radius: 0.5rem;
27+
--chart-1: 12 76% 61%;
28+
--chart-2: 173 58% 39%;
29+
--chart-3: 197 37% 24%;
30+
--chart-4: 43 74% 66%;
31+
--chart-5: 27 87% 67%;
32+
}
33+
34+
.dark {
35+
--background: 224 71.4% 4.1%;
36+
--foreground: 210 20% 98%;
37+
--card: 224 71.4% 4.1%;
38+
--card-foreground: 210 20% 98%;
39+
--popover: 224 71.4% 4.1%;
40+
--popover-foreground: 210 20% 98%;
41+
--primary: 210 20% 98%;
42+
--primary-foreground: 220.9 39.3% 11%;
43+
--secondary: 215 27.9% 16.9%;
44+
--secondary-foreground: 210 20% 98%;
45+
--muted: 215 27.9% 16.9%;
46+
--muted-foreground: 217.9 10.6% 64.9%;
47+
--accent: 215 27.9% 16.9%;
48+
--accent-foreground: 210 20% 98%;
49+
--destructive: 0 62.8% 30.6%;
50+
--destructive-foreground: 210 20% 98%;
51+
--border: 215 27.9% 16.9%;
52+
--input: 215 27.9% 16.9%;
53+
--ring: 216 12.2% 83.9%;
54+
--chart-1: 220 70% 50%;
55+
--chart-2: 160 60% 45%;
56+
--chart-3: 30 80% 55%;
57+
--chart-4: 280 65% 60%;
58+
--chart-5: 340 75% 55%;
59+
}
60+
}
61+
62+
@layer base {
63+
* {
64+
@apply border-border;
65+
}
66+
body {
67+
@apply bg-background text-foreground;
68+
}
69+
}

app/layout.tsx

+23-61
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,29 @@
1-
import "@/styles/globals.css";
2-
import { Metadata } from "next";
3-
import { siteConfig } from "@/config/site";
4-
import { fontSans } from "@/config/fonts";
5-
import { Providers } from "./providers";
6-
import { Navbar } from "@/components/navbar";
7-
import { Link } from "@nextui-org/link";
8-
import { Analytics } from "@vercel/analytics/react"
9-
import { SpeedInsights } from "@vercel/speed-insights/next"
10-
import clsx from "clsx";
1+
import type { Metadata } from "next";
2+
import "./globals.css";
3+
import { Inter as FontSans } from "next/font/google"
4+
import { cn } from "@/lib/utils"
5+
const fontSans = FontSans({
6+
subsets: ["latin"],
7+
variable: "--font-sans",
8+
})
119

1210
export const metadata: Metadata = {
13-
title: {
14-
default: siteConfig.name,
15-
template: `%s - ${siteConfig.name}`,
16-
},
17-
description: siteConfig.description,
18-
themeColor: [
19-
{ media: "(prefers-color-scheme: light)", color: "white" },
20-
{ media: "(prefers-color-scheme: dark)", color: "black" },
21-
],
22-
icons: {
23-
icon: "/favicon.ico",
24-
shortcut: "/favicon-16x16.png",
25-
apple: "/apple-touch-icon.png",
26-
},
11+
title: "Santiago Lara",
12+
description: "Desarrollador Independiente",
2713
};
2814

2915
export default function RootLayout({
30-
children,
31-
}: {
32-
children: React.ReactNode;
33-
}) {
34-
return (
35-
<html lang="en" suppressHydrationWarning>
36-
<head />
37-
<body
38-
className={clsx(
39-
"min-h-screen bg-background font-sans antialiased",
40-
fontSans.variable
41-
)}
42-
>
43-
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
44-
<div className="relative flex flex-col h-screen">
45-
{/* <Navbar /> */}
46-
<main className="container mx-auto max-w-7xl pt-16 px-6 flex-grow">
47-
{children}
48-
<Analytics />
49-
<SpeedInsights />
50-
</main>
51-
{/* <footer className="w-full flex items-center justify-center py-3">
52-
<Link
53-
isExternal
54-
className="flex items-center gap-1 text-current"
55-
href="https://nextui-docs-v2.vercel.app?utm_source=next-app-template"
56-
title="nextui.org homepage"
57-
>
58-
<span className="text-default-600">Powered by</span>
59-
<p className="text-primary">NextUI</p>
60-
</Link>
61-
</footer> */}
62-
</div>
63-
</Providers>
64-
</body>
65-
</html>
66-
);
16+
children,
17+
}: Readonly<{
18+
children: React.ReactNode;
19+
}>) {
20+
return (
21+
<html lang="en">
22+
<body className={cn(
23+
"min-h-screen bg-background font-sans antialiased",
24+
fontSans.variable
25+
)}
26+
> {children}</body>
27+
</html >
28+
);
6729
}

0 commit comments

Comments
 (0)