Skip to content

Commit 295e22f

Browse files
Merge pull request #15 from Eric-Zhang-Developer/landing-page-update
Update landing page to have more design elements
2 parents 7da1d29 + 4324b25 commit 295e22f

File tree

4 files changed

+49
-18
lines changed

4 files changed

+49
-18
lines changed

public/codequestAllDark.png

111 KB
Loading

public/codequestTransparent.png

133 KB
Loading

public/gemininight3.png

1.23 MB
Loading

src/app/page.tsx

Lines changed: 49 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,63 @@
1+
"use client";
2+
13
import Link from "next/link";
24
import Image from "next/image";
35
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+
});
413

514
export default function LandingPage() {
615
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+
/>
1848
</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">
2449

50+
{/* start button*/}
51+
<div className="mt-2 flex items-center justify-center gap-3">
2552
<Link
2653
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)]`}
2859
>
29-
Go to dashboard
60+
Start Your Journey
3061
</Link>
3162
</div>
3263
</div>

0 commit comments

Comments
 (0)