Skip to content

chore: updated stats for smaller screens #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: HB4Test
Choose a base branch
from
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ next-env.d.ts

# misc
.vscode

# pnpm
pnpm-lock.yaml

.yarn/*
!.yarn/patches
51 changes: 48 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,54 @@ export default function Home() {
<HB4Form />
</div>
</div>
<div className="sm:hidden w-screen mt-28">
<Image src={bottomstats} alt="bottomstats" className="w-screen" />
<Image src={topstats} alt="topstats" className="w-screen" />
<div className="sm:hidden w-screen mt-28 flex flex-col gap-52 mb-14">
<div className="relative">
<Image
src={stats}
alt="bottomstats"
className="w-screen scale-[2.6] xs:scale-[1.8]"
/>
<div className="w-full flex justify-evenly absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 rotate-6 ">
<div className="w-[40%] text-center flex flex-col items-center mb-4 scale-150">
<CountAnimation targetValue={5154} />
<div className="font-bold text-sm text-white">Registrations</div>
<div className="font-bold text-xs text-[#FFC1C7] max-w-[70%]">
5100+ registrations from across the country.
</div>
</div>
<div className="w-[40%] text-center flex flex-col items-center mb-4 scale-150">
<CountAnimation targetValue={425} />
<div className="font-bold text-sm text-white">Participants</div>
<div className="font-bold text-xs text-[#FFC1C7] max-w-[70%]">
400+ participants joined the offline hackathon!
</div>
</div>
</div>
</div>

<div className="relative">
<Image
src={stats}
alt="bottomstats"
className="w-screen scale-[2.6] xs:scale-[1.8] -rotate-12"
/>
<div className="w-full flex flex-wrap justify-evenly absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 -rotate-6">
<div className="w-[40%] text-center flex flex-col items-center mb-4 scale-150">
<CountAnimation targetValue={100} />
<div className="font-bold text-sm text-white">Volunteers</div>
<div className="font-bold text-xs text-[#FFC1C7] max-w-[70%]">
To help you, get the best out of HackByte.
</div>
</div>
<div className="w-[40%] text-center flex flex-col items-center mb-4 scale-150">
<CountAnimation targetValue={105} />
<div className="font-bold text-sm text-white">Projects</div>
<div className="font-bold text-xs text-[#FFC1C7] max-w-[70%]">
Innovative submissions from various domains.
</div>
</div>
</div>
</div>
</div>
<div className="relative sm:mt-0 mt-28 sm:block hidden">
<Image
Expand Down