diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e1037e9 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +DATABASE_URL="mysql://username:password@host:port/database" +NEXTAUTH_SECRET="your-secret-key" diff --git a/.gitignore b/.gitignore index d32cc78..14e8ef7 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ yarn-debug.log* yarn-error.log* # env files (can opt-in for committing if needed) -.env* +.env # vercel .vercel diff --git a/app/(user)/layout.tsx b/app/(user)/layout.tsx new file mode 100644 index 0000000..89fbfa5 --- /dev/null +++ b/app/(user)/layout.tsx @@ -0,0 +1,12 @@ +import Navbar from "@/components/Navbar"; +import Footer from "@/components/Footer"; + +export default function Layout({ children }: { children: React.ReactNode }) { + return ( +
+ +
{children}
+
+ ); +} \ No newline at end of file diff --git a/app/_app.tsx b/app/_app.tsx deleted file mode 100644 index a8be272..0000000 --- a/app/_app.tsx +++ /dev/null @@ -1,53 +0,0 @@ -// pages/_app.tsx -import "@/styles/globals.css"; -import Navbar from "@/components/Navbar"; -import Footer from "@/components/Footer"; -import { AppProps } from "next/app"; -import localFont from "next/font/local"; - -const googlesans = localFont({ - src: [ - { - path: "../assets/Fonts/GoogleSans-Regular-v1.27.ttf", - weight: "400", - style: "normal", - }, - { - path: "../assets/Fonts/GoogleSans-Italic-v1.27.ttf", - weight: "400", - style: "italic", - }, - { - path: "../assets/Fonts/GoogleSans-Medium-v1.27.ttf", - weight: "500", - style: "normal", - }, - { - path: "../assets/Fonts/GoogleSans-MediumItalic-v1.27.ttf", - weight: "500", - style: "italic", - }, - { - path: "../assets/Fonts/GoogleSans-Bold-v1.27.ttf", - weight: "700", - style: "normal", - }, - { - path: "../assets/Fonts/GoogleSans-BoldItalic-v1.27.ttf", - weight: "700", - style: "italic", - }, - ], -}); - -export default function App({ Component, pageProps }: AppProps) { - return ( -
- -
- -
-
- ); -} diff --git a/app/_document.tsx b/app/_document.tsx deleted file mode 100644 index 1f2a00d..0000000 --- a/app/_document.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import Footer from "@/components/Footer"; -import Navbar from "@/components/Navbar"; -import { Head, Html, Main, NextScript } from "next/document"; - -export default function Document() { - return ( - - - - - - -
- -