reafactor: converted the entire thing into a nextjs app
This commit is contained in:
21
app/api/delete-account/route.ts
Normal file
21
app/api/delete-account/route.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
|
||||
export async function POST(request: Request) {
|
||||
try {
|
||||
// valid JSON body check (optional, but good for parsing)
|
||||
const body = await request.json();
|
||||
|
||||
// Log the request for now - placeholder for actual logic
|
||||
console.log('Delete account request received:', body);
|
||||
|
||||
return NextResponse.json(
|
||||
{ message: 'Request received. Account deletion processed.' },
|
||||
{ status: 200 }
|
||||
);
|
||||
} catch (error) {
|
||||
return NextResponse.json(
|
||||
{ error: 'Invalid request body' },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
}
|
||||
21
app/globals.css
Normal file
21
app/globals.css
Normal file
@@ -0,0 +1,21 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
:root {
|
||||
--background: #ffffff;
|
||||
--foreground: #171717;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: #0a0a0a;
|
||||
--foreground: #ededed;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
color: var(--foreground);
|
||||
background: var(--background);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
35
app/layout.tsx
Normal file
35
app/layout.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Inter, Poppins } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import Navbar from "@/components/Navbar";
|
||||
import Footer from "@/components/Footer";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
|
||||
const poppins = Poppins({
|
||||
weight: ["500", "600", "700"],
|
||||
subsets: ["latin"],
|
||||
variable: "--font-poppins",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Nemia - Master Anything with Focus",
|
||||
description: "Nemia helps you focus and learn faster.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" className="dark scroll-smooth">
|
||||
<body
|
||||
className={`${inter.variable} ${poppins.variable} bg-background-dark text-text-light font-sans min-h-screen selection:bg-primary selection:text-background-dark`}
|
||||
>
|
||||
<Navbar />
|
||||
{children}
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
17
app/page.tsx
Normal file
17
app/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
|
||||
import Hero from '@/components/Hero';
|
||||
import Features from '@/components/Features';
|
||||
import HowItWorks from '@/components/HowItWorks';
|
||||
import CallToAction from '@/components/CallToAction';
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<main>
|
||||
<Hero />
|
||||
<Features />
|
||||
<HowItWorks />
|
||||
<CallToAction />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
11
app/privacy/page.tsx
Normal file
11
app/privacy/page.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import PrivacyPolicy from '@/components/PrivacyPolicy';
|
||||
|
||||
export default function Privacy() {
|
||||
return (
|
||||
<main>
|
||||
<PrivacyPolicy />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user