Skip to content

Commit 0f965c9

Browse files
committed
feat: added frontend
1 parent c6e3330 commit 0f965c9

14 files changed

+2925
-409
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public-hoist-pattern[]=*@nextui-org/*

app/globals.css

Lines changed: 16 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,24 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4-
5-
@layer base {
6-
:root {
7-
--background: 0 0% 100%;
8-
--foreground: 222.2 84% 4.9%;
94

10-
--card: 0 0% 100%;
11-
--card-foreground: 222.2 84% 4.9%;
12-
13-
--popover: 0 0% 100%;
14-
--popover-foreground: 222.2 84% 4.9%;
15-
16-
--primary: 222.2 47.4% 11.2%;
17-
--primary-foreground: 210 40% 98%;
18-
19-
--secondary: 210 40% 96.1%;
20-
--secondary-foreground: 222.2 47.4% 11.2%;
21-
22-
--muted: 210 40% 96.1%;
23-
--muted-foreground: 215.4 16.3% 46.9%;
24-
25-
--accent: 210 40% 96.1%;
26-
--accent-foreground: 222.2 47.4% 11.2%;
27-
28-
--destructive: 0 84.2% 60.2%;
29-
--destructive-foreground: 210 40% 98%;
5+
:root {
6+
--foreground-rgb: 0, 0, 0;
7+
--background-start-rgb: 214, 219, 220;
8+
--background-end-rgb: 255, 255, 255;
9+
}
3010

31-
--border: 214.3 31.8% 91.4%;
32-
--input: 214.3 31.8% 91.4%;
33-
--ring: 222.2 84% 4.9%;
34-
35-
--radius: 0.5rem;
36-
}
37-
38-
.dark {
39-
--background: 222.2 84% 4.9%;
40-
--foreground: 210 40% 98%;
41-
42-
--card: 222.2 84% 4.9%;
43-
--card-foreground: 210 40% 98%;
44-
45-
--popover: 222.2 84% 4.9%;
46-
--popover-foreground: 210 40% 98%;
47-
48-
--primary: 210 40% 98%;
49-
--primary-foreground: 222.2 47.4% 11.2%;
50-
51-
--secondary: 217.2 32.6% 17.5%;
52-
--secondary-foreground: 210 40% 98%;
53-
54-
--muted: 217.2 32.6% 17.5%;
55-
--muted-foreground: 215 20.2% 65.1%;
56-
57-
--accent: 217.2 32.6% 17.5%;
58-
--accent-foreground: 210 40% 98%;
59-
60-
--destructive: 0 62.8% 30.6%;
61-
--destructive-foreground: 210 40% 98%;
62-
63-
--border: 217.2 32.6% 17.5%;
64-
--input: 217.2 32.6% 17.5%;
65-
--ring: 212.7 26.8% 83.9%;
11+
@media (prefers-color-scheme: dark) {
12+
:root {
13+
--foreground-rgb: 255, 255, 255;
14+
--background-start-rgb: 0, 0, 0;
15+
--background-end-rgb: 0, 0, 0;
6616
}
6717
}
68-
69-
@layer base {
70-
* {
71-
@apply border-border;
72-
}
73-
body {
74-
@apply bg-background text-foreground;
75-
}
18+
19+
body {
20+
color: rgb(var(--foreground-rgb));
21+
background: linear-gradient(to bottom,
22+
transparent,
23+
rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
7624
}

app/layout.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
import type { Metadata } from 'next'
2-
import { Inter } from 'next/font/google'
3-
import './globals.css'
1+
import type { Metadata } from "next";
2+
import { Inter } from "next/font/google";
3+
import "./globals.css";
4+
import { Providers } from "./providers";
45

5-
const inter = Inter({ subsets: ['latin'] })
6+
const inter = Inter({ subsets: ["latin"] });
67

78
export const metadata: Metadata = {
8-
title: 'Create Next App',
9-
description: 'Generated by create next app',
10-
}
9+
title: "Create Next App",
10+
description: "Generated by create next app",
11+
};
1112

1213
export default function RootLayout({
1314
children,
1415
}: {
15-
children: React.ReactNode
16+
children: React.ReactNode;
1617
}) {
1718
return (
1819
<html lang="en">
19-
<body className={inter.className}>{children}</body>
20+
<body className={inter.className}>
21+
<Providers>{children}</Providers>
22+
</body>
2023
</html>
21-
)
24+
);
2225
}

0 commit comments

Comments
 (0)