|
| 1 | +"use client"; |
| 2 | + |
1 | 3 | import Link from "next/link"; |
2 | 4 | import Image from "next/image"; |
3 | 5 | import "./globals.css"; |
| 6 | +import { Cinzel } from "next/font/google"; |
| 7 | + |
| 8 | +//font for words |
| 9 | +const cinzel = Cinzel({ |
| 10 | + subsets: ["latin"], |
| 11 | + weight: ["400", "700"], |
| 12 | +}); |
4 | 13 |
|
5 | 14 | export default function LandingPage() { |
6 | 15 | return ( |
7 | | - <main className="min-h-dvh bg-white flex flex-col items-center justify-center pt-2 pb-8 px-8"> |
8 | | - <div className="max-w-xl text-center"> |
9 | | - <div className="mb-8 flex justify-center"> |
10 | | - <div className="relative w-[500px] h-[100px] overflow-hidden rounded-lg"> |
11 | | - <Image |
12 | | - src="/Cq_logo.png" |
13 | | - alt="CodeQuest Logo" |
14 | | - fill |
15 | | - className="object-cover object-center" |
16 | | - /> |
17 | | - </div> |
| 16 | + //setting background to desired image |
| 17 | + <main |
| 18 | + className="relative min-h-dvh flex flex-col items-center justify-center px-8 |
| 19 | + bg-[url('/gemininight3.png')] bg-cover bg-center bg-no-repeat text-white overflow-hidden |
| 20 | + " |
| 21 | + > |
| 22 | + |
| 23 | + {/*welcome text*/} |
| 24 | + <div className="relative z-10 max-w-xl text-center"> |
| 25 | + <h1 |
| 26 | + className={`${cinzel.className} text-5xl md:text-6xl font-bold text-indigo-200 drop-shadow-[0_0_10px_rgba(99,102,241,0.6)] mb-4`} |
| 27 | + > |
| 28 | + Welcome to |
| 29 | + </h1> |
| 30 | + |
| 31 | + {/*all dark grey logo*/} |
| 32 | + <div className="relative w-[auto] h-[auto]"> |
| 33 | + <Image |
| 34 | + src="/codequestAllDark.png" |
| 35 | + alt="CodeQuest Logo" |
| 36 | + width={400} |
| 37 | + height={120} |
| 38 | + className="object-center scale-125" |
| 39 | + //add in shadow for it to pop on dark background |
| 40 | + style={{ |
| 41 | + filter: ` |
| 42 | + drop-shadow(0 0 10px #a5f3fc) |
| 43 | + drop-shadow(0 0 20px #93c5fd) |
| 44 | + drop-shadow(0 0 30px #60a5fa) |
| 45 | + ` |
| 46 | + }} |
| 47 | + /> |
18 | 48 | </div> |
19 | | - <h1 className="text-4xl md:text-5xl font-bold text-neutral-600">Welcome to CodeQuest</h1> |
20 | | - <p className="mt-3 text-neutral-600"> |
21 | | - Simple flow: Landing → Login/Signup → Dashboard |
22 | | - </p> |
23 | | - <div className="mt-6 flex items-center justify-center gap-3"> |
24 | 49 |
|
| 50 | + {/* start button*/} |
| 51 | + <div className="mt-2 flex items-center justify-center gap-3"> |
25 | 52 | <Link |
26 | 53 | href="/dashboard" |
27 | | - className="btn btn-sof" |
| 54 | + //make it glow pulsing to show that it is clickable to new users |
| 55 | + //also becomes bigger and more vibrant when the mouse hovers over |
| 56 | + className={`${cinzel.className} text-lg px-8 py-3 rounded-full shadow-lg transition-transform duration-500 hover:scale-105 |
| 57 | + bg-indigo-500 hover:bg-indigo-600 font-semibold text-white |
| 58 | + animate-pulse hover:shadow-[0_0_20px_rgba(99,102,241,0.8)]`} |
28 | 59 | > |
29 | | - Go to dashboard |
| 60 | + Start Your Journey |
30 | 61 | </Link> |
31 | 62 | </div> |
32 | 63 | </div> |
|
0 commit comments