Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions app/(pages)/(index-page)/_components/HeartButton/heartButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
'use client';

import Link from 'next/link';
import Image from 'next/image';

export default function HeartButton({
text,
href,
}: {
text: string;
href: string;
}) {
return (
<Link
href={href}
className="
group relative flex items-center overflow-hidden
w-full h-full rounded-full
text-[var(--text-light)] no-underline
transition-[background,flex-direction] duration-300
hover:flex-row-reverse
border-2 border-[#bfcacd]
bg-white
"
>
{/* static placeholder (hidden but preserves layout) */}
<div className="relative aspect-square h-full rounded-full border-2 border-[#005271] invisible" />

{/* animated heart coin */}
<div
className="
absolute left-0 top-0 z-10
aspect-square h-full rounded-full
shadow-[0px_9px_75px_rgba(0,0,0,0.75)]
group-hover:animate-slide-right
"
>
<Image
src="/Images/Create/HeartButton.svg"
alt="heart"
fill
className="object-contain"
priority
/>
{/* <Image
src="/Images/reghero/ButtonHeart.svg"
alt="heart"
fill
/>
<Image
src="/Images/reghero/heart.svg"
alt="Heart icon"
width={24}
height={24}
className="h-[15px] w-[17px] object-contain break-625:h-[24px] break-625:w-[24px]"
/> */}
</div>

<p className="w-full text-center font-bold transition-all">{text}</p>

{/* overlay */}
<span
className="
pointer-events-none absolute inset-0
bg-[var(--background-light)] opacity-15
"
/>
</Link>
);
}
72 changes: 72 additions & 0 deletions app/(pages)/about-us/_components/AllAbout/AllAbout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import Image from 'next/image';

export default function AllAbout() {
return (
<div className="flex flex-col gap-6 md:pb-40">
<div className="flex ml-[13%] text-left">
<h1 className="text-3xl md:text-5xl font-bold leading-none">
What we're all about
</h1>
</div>

<div className="flex flex-col gap-8 md:flex-row md:justify-between px-[15%]">
<div className="relative flex flex-col w-60 h-48 md:w-96 md:h-60 border-2 border-shadow rounded-xl shadow-card p-5 md:p-8 bg-secondary gap-3 group">
<h2 className="relative text-lg md:text-2xl text-left md:text-left font-bold z-10">
Hands-on Learning
</h2>

<p className="relative flex text-sm md:text-lg md:text-left z-10">
No matter which prompt you choose, each project provides hands-on
experience and an opportunity to explore a new discipline.
</p>

<Image
src="/Images/frog.svg"
alt="Frog mascot"
width={110}
height={144}
className="absolute top-0 right-14 md:transition-all duration-1000 ease-out group-hover:scale-125 group-hover:translate-y-48 -z-10"
/>
</div>

<div className="relative flex flex-col w-60 h-48 md:w-96 md:h-60 border-2 border-shadow rounded-xl shadow-card p-5 ml-[20%] md:ml-0 md:p-8 bg-secondary gap-3 group">
<h2 className="relative text-lg md:text-2xl text-left md:text-left font-bold z-10">
Inclusivity
</h2>

<p className="relative flex text-sm md:text-lg md:text-left z-10">
We invite individuals of all backgrounds to learn new skills and
grow in an inclusive environment.
</p>

<Image
src="/Images/chicken.svg"
alt="Frog mascot"
width={110}
height={144}
className="absolute top-2 right-14 md:transition-all duration-1000 ease-out group-hover:scale-125 group-hover:translate-y-48 -z-10"
/>
</div>

<div className="relative flex flex-col w-60 h-48 md:w-96 md:h-60 border-2 border-shadow rounded-xl shadow-card p-5 md:p-8 bg-secondary gap-3 group">
<h2 className="relative text-lg md:text-2xl text-left md:text-left font-bold z-10">
Impactful projects
</h2>

<p className="relative flex text-sm md:text-lg md:text-left z-10">
Create meaningful, impactful, and innovative solutions that benefit
local and global communities.
</p>

<Image
src="/Images/rabbit.svg"
alt="Frog mascot"
width={110}
height={144}
className="absolute top-4 right-14 md:transition-all duration-100 ease-out group-hover:scale-125 group-hover:translate-y-48 -z-10"
/>
</div>
</div>
</div>
);
}
3 changes: 3 additions & 0 deletions app/(pages)/about-us/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import AllAbout from './_components/AllAbout/AllAbout';

export default function AboutUs() {
return (
<div>
<p>About Us</p>
<AllAbout />
</div>
);
}
166 changes: 166 additions & 0 deletions app/(pages)/registration/_components/Create/create.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
import Image from 'next/image';
import HeartButton from '@app/(pages)/(index-page)/_components/HeartButton/heartButton';

export default function create() {
return (
<div className="relative flex flex-col gap-5 w-full md md:w-auto md:mb-32">
{/* Background decorative images - hidden on mobile */}
<Image
src="/Images/Create/glue.svg"
alt="Glue Bottle"
width={280}
height={450}
className="hidden xl:block absolute top-0 right-0 mt-auto w-auto h-[450px]"
/>

<Image
src="/Images/Create/wave3.svg"
alt="Wave Background"
width={280}
height={450}
className="hidden xl:block absolute top-0 right-0 mt-[250px] w-auto h-[1142px]"
/>

{/* First Section - Create for Social Good */}
<div className="relative flex flex-col items-center md:items-start md:flex-row mt-8 md:mt-[215px] gap-4 md:gap-8 w-full md:w-[100%] md:mr-auto md:min-w-0 ">
<Image
src="/Images/Create/bigyellowstar.svg"
alt="Big Yellow Star"
width={111}
height={111}
className="hidden md:block absolute w-auto h-[130px] ml-[20%] -mt-[8%] transition-transform duration-300 hover:animate-spin-10"
/>

{/* Frog + Yellow bar wrapper - side by side on mobile */}
<div className="flex border-red justify-between flex-row-reverse w-full gap-7 md:contents">
<Image
src="/Images/Create/yellow.svg"
alt="Yellow Background"
width={125}
height={525}
className="hidden md:hidden w-auto h-[322px]"
/>

<Image
src="/Images/Create/sm-yellow.svg"
alt="Yellow Background"
width={125}
height={525}
className="md:hidden w-auto h-[322px]"
/>

<Image
src="/Images/Create/frog-background.svg"
alt="Frog Background"
width={420}
height={130}
className=" hidden sm:block sm:max-h-[348px] w-full sm:-mb-[15px] md:mb-0 md:mt-auto sm:min-w-[100px] md:max-w-[420px] md:flex-shrink"
/>

<Image
src="/Images/Create/sm-frog-background.svg"
alt="Frog Background"
width={280}
height={296}
className="flex-shrink-0 sm:hidden w-[315px] h-[348px] mt-auto -mb-[15px] md:hidden"
/>
</div>

<div className="flex flex-col flex-shrink-0 gap-4 md:gap-6 w-[360px] px-8 py-12 md:px-12 rounded-[40px] bg-gradient-to-t from-[#9EE7E5] to-[#D5F6E9]">
<h2 className="flex flex-shrink text-4xl min-w-0 max-w-[80%] font-bold text-[#005271] tracking-[0.771px]">
create for social good
</h2>

<p className="text-base leading-[1.25] tracking-[0.335px]">
HackDavis challenges its participants to utilize tech for{' '}
<span className="font-bold text-[#005271]">social good</span>,
generating an opportunity for us to explore the{' '}
<span className="font-bold text-[#005271]">
intersection between technology and society.
</span>
</p>
<p className="text-base">
Creators from all backgrounds are welcome at HackDavis —{' '}
<span className="font-bold text-[#005271]">
no coding or previous experience required.
</span>
</p>
</div>

<Image
src="/Images/Create/greenflower.svg"
alt="Green Flower"
width={131}
height={131}
className="hidden xl:block ml-[2%] mt-auto mb-[4%] h-[131px] transition-transform duration-300 hover:animate-spin-10"
/>
</div>

{/* Second Section - Support Us & Rabbit */}
<div className="flex flex-col items-center md:items-stretch md:flex-row gap-5 md:gap-8 w-full md:w-[100%] md:mr-auto mb-8 md:mb-[50px]">
{/* Yellow background - desktop only */}
<Image
src="/Images/Create/yellow.svg"
alt="Yellow Background"
width={125}
height={525}
className="hidden md:block w-auto h-[100px]flex-shrink"
/>

<Image
src="/Images/Create/sm-rabbit-background.svg"
alt="Small Surprised Bunny"
width={500}
height={288}
className="pl-4 h-[288px] ml-auto md:hidden"
/>

{/* Support Us card */}
<div className="flex flex-shrink w-[360px] h-[360px] md:min-w-[300px] md:max-w-[400px] aspect-[1/1]">
<div className="flex flex-col items-center gap-4 md:gap-6 w-full md:max-w-[460px] md:h-[400px] px-16 py-9 md:py-14 md:px-12 rounded-[40px] bg-gradient-to-t from-[#4BD8EA] to-[#9EE7E5]">
<h2 className="text-2xl md:text-4xl text-center font-bold text-[#005271]">
support us!
</h2>

<Image
src="/Images/Create/support.svg"
alt="Gold Transparency 2024 Candid"
width={500}
height={288}
className="mb-auto w-[170px] md:w-[136px] h-auto md:h-[136px] object-contain"
/>

<HeartButton text="Donate" href="#" />
</div>

<Image
src="/Images/Create/pinkflower.svg"
alt="Pink Flower"
width={111}
height={111}
className="hidden md:block absolute w-auto h-[78px] -bottom-[5%] ml-[10%] transition-transform duration-300 hover:animate-spin-10"
/>
</div>

{/* Rabbit section - desktop only */}
<div className="hidden md:flex flex-shrink relative">
<Image
src="/Images/Create/rabbit-background.svg"
alt="Surprised Bunny"
width={500}
height={288}
className="mb-auto w-full max-h-[288px] h-auto origin-bottom-right"
/>

<Image
src="/Images/Create/bluedonut.svg"
alt="Blue Flower"
width={111}
height={111}
className="absolute w-auto h-[200px] bottom-0 mb-[2%] transition-transform duration-300 hover:animate-spin-10"
/>
</div>
</div>
</div>
);
}
9 changes: 9 additions & 0 deletions app/(pages)/registration/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Create from './_components/Create/create';

export default function Registration() {
return (
<div className="relative">
<Create />
</div>
);
}
Loading