reafactor: converted the entire thing into a nextjs app

This commit is contained in:
2026-01-13 18:59:25 +00:00
parent 562e1a7d0d
commit 91fc911523
236 changed files with 12171 additions and 1443 deletions

View 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
View 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
View 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
View 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
View File

@@ -0,0 +1,11 @@
"use client";
import PrivacyPolicy from '@/components/PrivacyPolicy';
export default function Privacy() {
return (
<main>
<PrivacyPolicy />
</main>
);
}