Skip to content

Commit edd4145

Browse files
Ashish KumarAshish Kumar
authored andcommitted
chore: added preview image and fixed lint
1 parent f4edf94 commit edd4145

File tree

5 files changed

+2861
-43
lines changed

5 files changed

+2861
-43
lines changed

.eslintrc.json

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

app/layout.tsx

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import type React from "react"
2-
import "@/app/globals.css"
3-
import { Inter } from "next/font/google"
4-
import { ThemeProvider } from "@/components/theme-provider"
5-
import { Toaster } from "@/components/ui/toaster"
6-
import { Suspense } from "react"
7-
import GoogleAnalytics from "@/components/google-analytics"
1+
import { Inter } from "next/font/google";
2+
import type React from "react";
3+
import { Suspense } from "react";
84

9-
const inter = Inter({ subsets: ["latin"] })
5+
import { ThemeProvider } from "@/components/theme-provider";
6+
import { Toaster } from "@/components/ui/toaster";
7+
import GoogleAnalytics from "@/components/google-analytics";
8+
9+
import "@/app/globals.css";
10+
11+
const inter = Inter({ subsets: ["latin"] });
1012

1113
export const metadata = {
1214
title: "GitHub Profile README Builder",
@@ -33,26 +35,37 @@ export const metadata = {
3335
card: "summary_large_image",
3436
title: "GitHub Profile README Builder",
3537
description: "Create beautiful GitHub profile READMEs with ease",
36-
images: ["https://github-profile-builder-dev-ashishk.vercel.app/og-image.png"],
38+
images: [
39+
"https://github-profile-builder-dev-ashishk.vercel.app/og-image.png",
40+
],
3741
},
38-
generator: 'v0.dev'
39-
}
42+
};
4043

4144
export default function RootLayout({
4245
children,
4346
}: {
44-
children: React.ReactNode
47+
children: React.ReactNode;
4548
}) {
4649
return (
4750
<html lang="en" suppressHydrationWarning>
4851
<body className={inter.className}>
49-
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
52+
<ThemeProvider
53+
attribute="class"
54+
defaultTheme="system"
55+
enableSystem
56+
disableTransitionOnChange
57+
>
5058
<Suspense>{children}</Suspense>
5159
<Toaster />
52-
{/* Add Google Analytics */}
53-
<GoogleAnalytics GA_MEASUREMENT_ID={process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID || ""} />
60+
<Suspense>
61+
<GoogleAnalytics
62+
GA_MEASUREMENT_ID={
63+
process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID || ""
64+
}
65+
/>
66+
</Suspense>
5467
</ThemeProvider>
5568
</body>
5669
</html>
57-
)
70+
);
5871
}

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
2-
"name": "my-v0-project",
2+
"name": "github-profile-buidler",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"deploy": "next build && gh-pages -d out"
1011
},
1112
"dependencies": {
13+
"@emotion/is-prop-valid": "latest",
1214
"@hookform/resolvers": "^3.9.1",
1315
"@radix-ui/react-accordion": "1.2.2",
1416
"@radix-ui/react-alert-dialog": "1.1.4",
@@ -38,11 +40,13 @@
3840
"@radix-ui/react-toggle-group": "1.1.1",
3941
"@radix-ui/react-tooltip": "1.1.6",
4042
"autoprefixer": "^10.4.20",
43+
"canvas-confetti": "latest",
4144
"class-variance-authority": "^0.7.1",
4245
"clsx": "^2.1.1",
4346
"cmdk": "1.0.4",
4447
"date-fns": "4.1.0",
4548
"embla-carousel-react": "8.5.1",
49+
"framer-motion": "latest",
4650
"input-otp": "1.4.1",
4751
"lucide-react": "^0.454.0",
4852
"next": "15.2.4",
@@ -51,27 +55,26 @@
5155
"react-day-picker": "8.10.1",
5256
"react-dom": "^19",
5357
"react-hook-form": "^7.54.1",
58+
"react-markdown": "latest",
5459
"react-resizable-panels": "^2.1.7",
60+
"react-syntax-highlighter": "latest",
5561
"recharts": "2.15.0",
62+
"remark-gfm": "latest",
5663
"sonner": "^1.7.1",
5764
"tailwind-merge": "^2.5.5",
5865
"tailwindcss-animate": "^1.0.7",
5966
"vaul": "^0.9.6",
60-
"zod": "^3.24.1",
61-
"@emotion/is-prop-valid": "latest",
62-
"react-markdown": "latest",
63-
"remark-gfm": "latest",
64-
"react-syntax-highlighter": "latest",
65-
"framer-motion": "latest",
66-
"canvas-confetti": "latest"
67+
"zod": "^3.24.1"
6768
},
6869
"devDependencies": {
6970
"@types/node": "^22",
7071
"@types/react": "^19",
7172
"@types/react-dom": "^19",
73+
"eslint": "^9",
74+
"eslint-config-next": "15.3.1",
75+
"gh-pages": "^6.3.0",
7276
"postcss": "^8",
7377
"tailwindcss": "^3.4.17",
74-
"typescript": "^5",
75-
"gh-pages": "^6.3.0"
78+
"typescript": "^5"
7679
}
7780
}

0 commit comments

Comments
 (0)