Skip to content

Commit 32319ca

Browse files
committed
Added comments to hero section
1 parent fe03688 commit 32319ca

File tree

4 files changed

+42
-45
lines changed

4 files changed

+42
-45
lines changed

src/app/globals.css

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Michroma&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
1+
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Michroma&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");
22
@tailwind base;
33
@tailwind components;
44
@tailwind utilities;
@@ -20,52 +20,35 @@ body {
2020
overflow-x: hidden;
2121
}
2222

23-
24-
.hero {
25-
background-image: url('/landing/bg.svg');
23+
#hero {
24+
background-image: url("/landing/bg.svg");
2625
background-size: cover;
2726
background-position: center;
2827
background-repeat: no-repeat;
2928
}
3029

31-
32-
33-
3430
.noise-bg {
3531
position: fixed;
3632
inset: 0;
3733
z-index: 1;
3834
pointer-events: none;
3935
opacity: 0.02;
40-
background:
41-
repeating-radial-gradient(#fff 0 0.0001%, #000 0 0.0002%) 50% 0/2500px 2500px,
42-
repeating-conic-gradient(#fff 0 0.0001%, #000 0 0.0002%) 50% 50%/2500px 2500px;
36+
background:
37+
repeating-radial-gradient(#fff 0 0.0001%, #000 0 0.0002%) 50% 0/2500px
38+
2500px,
39+
repeating-conic-gradient(#fff 0 0.0001%, #000 0 0.0002%) 50% 50%/2500px
40+
2500px;
4341
background-blend-mode: difference;
4442
}
4543

46-
@media (max-width: 768px) {
47-
.noise-bg {
48-
background:
49-
repeating-radial-gradient(#fff 0 1%, #000 0 0.02%) 50% 0/500px 500px,
50-
repeating-conic-gradient(#fff 0 1%, #000 0 0.02%) 50% 50%/500px 500px;
51-
}
52-
}
53-
54-
5544
.monthly-event {
5645
background: radial-gradient(
5746
138.71% 110.11% at 93.15% -36.58%,
5847
#4255f922 25%,
59-
#0F1319 100%
60-
),
61-
radial-gradient(
62-
61.66% 37.6% at 6.63% 95.08%,
63-
#4255f922 25%,
64-
#0F1319 100%
48+
#0f1319 100%
6549
),
50+
radial-gradient(61.66% 37.6% at 6.63% 95.08%, #4255f922 25%, #0f1319 100%),
6651
rgba(26, 26, 26, 0.43);
6752
box-shadow: 0px 0.5px 16px 0px rgba(200, 200, 255, 0.1);
6853
border: 1px solid #4255f911;
69-
70-
7154
}

src/app/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import LandingAbout from "@/components/landing/LandingAbout";
55
const Website = () => {
66
return (
77
<div className="min-h-screen w-full bg-[#050a10]">
8+
{/* Applied a noise bg to the page for added depth */}
89
<div className="noise-bg" />
910
<Hero />
1011
<LandingAbout />
11-
12-
{/* About Section */}
1312
</div>
1413
);
1514
};

src/components/Navbar/PublicNavbar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { FaBars } from "react-icons/fa";
44
import { FaXmark } from "react-icons/fa6";
55
import { AnimatePresence, motion } from "framer-motion";
66

7+
8+
// TODO: Fix the navbar apperance when viewing admin dashboard
9+
710
export default function Nav() {
811
const [showMobileNav, setShowMobileNav] = useState<boolean>(false);
912
return (
@@ -40,6 +43,7 @@ export default function Nav() {
4043
</div>
4144
</div>
4245

46+
{/* Animate the mobile nav-links downward when clicked */}
4347
<AnimatePresence>
4448
{showMobileNav && (
4549
<motion.div

src/components/landing/Hero.tsx

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,39 @@
11
import React from "react";
22
import LogoCarousel from "./LogoCarousel";
33
import Image from "next/image";
4-
import {motion} from "framer-motion"
4+
import { motion } from "framer-motion";
55

66
export default function Hero() {
77
return (
8-
<div className="hero relative pb-12 lg:pt-24 pt-24 text-[#eaeaea] lg:h-[max(100svh,840px)]">
8+
<div className="relative pb-12 pt-24 text-[#eaeaea] lg:h-[max(100svh,840px)] lg:pt-24" id="hero">
9+
{/* Flex-row on desktop devices but flex-col-reverse for devices lg and smaller */}
910
<div className="mx-auto flex h-full max-w-7xl flex-col-reverse items-center px-6 pb-6 sm:px-10 lg:mt-0 lg:flex-row">
1011
<div className="flex w-full flex-col items-center text-center lg:w-3/4 lg:items-start lg:text-left">
12+
{/* Hidden on mobile */}
1113
<span className="hidden rounded-full border border-[#B0B8FF] border-opacity-40 bg-black bg-opacity-50 px-4 py-1.5 text-xs lg:inline">
1214
1000+ Active Members!
1315
</span>
14-
<h1 className="font-Michroma leading-normal lg:leading-normal pt-4 text-[26px] font-semibold sm:text-4xl lg:text-[44px]">
15-
The Society <br className="inline sm:hidden"/>of PC Building
16+
<h1 className="pt-4 font-Michroma text-[26px] font-semibold leading-normal sm:text-4xl lg:text-[44px] lg:leading-normal">
17+
The Society <br className="inline sm:hidden" />
18+
of PC Building
1619
</h1>
17-
<p className="max-w-[620px] pt-4 sm:pt-3 font-medium leading-relaxed text-[17px] sm:text-lg">
20+
21+
{/* On mobile devices shorten the description to limit text-length */}
22+
<p className="max-w-[620px] pt-4 text-[17px] font-medium leading-relaxed sm:pt-3 sm:text-lg">
1823
<span className="hidden sm:inline">
1924
Join the Society of PC Building at UF—where
2025
</span>
2126
<span className="sm:hidden">Where</span> students passionate about
2227
hardware and tech connect, innovate, and build custom PCs together.
2328
</p>
24-
<button className="mt-6 rounded-md border border-[#B0B8FF] border-opacity-40 bg-black bg-opacity-80 py-2 px-8 font-medium text-white sm:text-base">
29+
30+
31+
<button className="mt-6 rounded-md border border-[#B0B8FF] border-opacity-40 bg-black bg-opacity-80 px-8 py-2 font-medium text-white sm:text-base">
2532
Join the Club!
2633
</button>
2734

35+
36+
{/* On mobile devices show the infinite carousel but on desktop static list */}
2837
<div className="mt-20 lg:mt-32">
2938
<p className="text-sm opacity-80">
3039
Led by a team of officers with experience at:
@@ -41,27 +50,29 @@ export default function Hero() {
4150
<LogoCarousel />
4251
</div>
4352
</div>
44-
{/* <div className="hidden max-h-[220px] cursor-grab items-center sm:flex lg:w-1/4">
45-
<Scene />
46-
</div> */}
47-
<motion.div className="relative h-[240px] w-[240px] md:h-[300px] md:w-[300px] lg:h-[460px] lg:w-[460px] -mr-6 lg:-mr-12" initial={{ opacity: 0, y: 60 }}
48-
whileInView={{ opacity: 1, y: 0 }}
49-
transition={{ duration: 0.4, ease: "easeOut" }}
50-
viewport={{ once: true, amount: 0.3 }}>
53+
54+
{/* Animate SPCB logo upwards. Applied negative margin to center logo better */}
55+
<motion.div
56+
className="relative -mr-6 h-[240px] w-[240px] md:h-[300px] md:w-[300px] lg:-mr-12 lg:h-[460px] lg:w-[460px]"
57+
initial={{ opacity: 0, y: 60 }}
58+
whileInView={{ opacity: 1, y: 0 }}
59+
transition={{ duration: 0.4, ease: "easeOut" }}
60+
viewport={{ once: true, amount: 0.3 }}
61+
>
5162
<Image
5263
src="/landing/logo.png"
5364
alt="SPCB Logo"
54-
width={460}
55-
height={460}
65+
width={460}
66+
height={460}
5667
className="object-contain"
5768
style={{
5869
filter: "drop-shadow(0 0 10px rgba(255,255,255,1))",
5970
}}
6071
priority
6172
/>
6273
</motion.div>
63-
</div>
6474

75+
</div>
6576
</div>
6677
);
6778
}

0 commit comments

Comments
 (0)