|
1 | | -import "./globals.css"; |
2 | | -import type { Metadata } from "next"; |
3 | | -import { Montserrat } from "next/font/google"; |
4 | | -import Navbar from "./components/navbar/Navbar"; |
5 | | -import { initializeApp } from "firebase/app"; |
6 | | -import { getAnalytics } from "firebase/analytics"; |
| 1 | +import Image from "next/image"; |
| 2 | +import Button from "./components/button/Button"; |
7 | 3 |
|
8 | | -const montserrat = Montserrat({ subsets: ["latin"] }); |
9 | | - |
10 | | -export const metadata: Metadata = { |
11 | | - title: "PeerPrep | Streamlining Technical Interview Preparation", |
12 | | - description: "Practise!", |
13 | | -}; |
14 | | - |
15 | | -const firebaseConfig = { |
16 | | - apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY, |
17 | | - authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN, |
18 | | - projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID, |
19 | | - storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET, |
20 | | - messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID, |
21 | | - appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID, |
22 | | - measurementId: process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID, |
23 | | -}; |
24 | | - |
25 | | -export default function RootLayout({ |
26 | | - children, |
27 | | -}: { |
28 | | - children: React.ReactNode; |
29 | | -}) { |
30 | | - const app = initializeApp(firebaseConfig); |
31 | | - if (typeof window !== "undefined") { |
32 | | - const analytics = getAnalytics(app); |
33 | | - } |
| 4 | +export default function Home() { |
34 | 5 | return ( |
35 | | - <html lang="en" data-theme="myTheme"> |
36 | | - <body className={montserrat.className}> |
37 | | - <Navbar /> |
38 | | - {children} |
39 | | - </body> |
40 | | - </html> |
| 6 | + <main> |
| 7 | + <Image |
| 8 | + src="/backdrop.jpg" |
| 9 | + alt="backdrop" |
| 10 | + className="-z-10 opacity-50" |
| 11 | + layout="fill" |
| 12 | + /> |
| 13 | + <section className="flex flex-col items-center py-24 lg:py-36 px-24 gap-4 z-20"> |
| 14 | + <h1 className="text-5xl text-white font-bold text-center m-5 lg:text-7xl"> |
| 15 | + Streamlining Technical Interview Preparation. |
| 16 | + </h1> |
| 17 | + <h2 className="text-xl text-center text-white font-medium"> |
| 18 | + Collaborative mock interviews to boost your confidence and nail your |
| 19 | + dream job interviews. |
| 20 | + </h2> |
| 21 | + <Button |
| 22 | + className="btn-accent w-36 m-2" |
| 23 | + children={<span>Get Started!</span>} |
| 24 | + /> |
| 25 | + </section> |
| 26 | + </main> |
41 | 27 | ); |
42 | 28 | } |
0 commit comments