Upload Next.js project
This commit is contained in:
+51
-28
@@ -1,33 +1,56 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
};
|
||||
import "bootstrap/dist/css/bootstrap.min.css"
|
||||
import "swiper/css"
|
||||
import "aos/dist/aos.css"
|
||||
|
||||
import Header from "@/component/header"
|
||||
import Footer from "@/component/Footer"
|
||||
import Script from "next/script"
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">{children}</body>
|
||||
<html lang="en">
|
||||
|
||||
{/* ✅ YAHAN */}
|
||||
<head>
|
||||
<link rel="stylesheet" href="/assets/css/style.css" />
|
||||
<link rel="stylesheet" href="/assets/css/responsive.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<Header />
|
||||
|
||||
{children}
|
||||
|
||||
|
||||
<Footer />
|
||||
{/* ✅ 1. Bootstrap */}
|
||||
<Script
|
||||
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
|
||||
{/* ✅ 2. Swiper JS (MISSING THA) */}
|
||||
<Script
|
||||
src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
|
||||
{/* ✅ 3. AOS JS */}
|
||||
<Script
|
||||
src="https://unpkg.com/aos@2.3.4/dist/aos.js"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
|
||||
{/* ✅ 4. TERA main.js (LAST) */}
|
||||
<Script
|
||||
src="/assets/js/main.js"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user