Skip to content

Commit ee5071a

Browse files
committed
modify logitech tracks
1 parent 3f6da3c commit ee5071a

File tree

15 files changed

+112
-162
lines changed

15 files changed

+112
-162
lines changed

app/prizes/page.jsx

Lines changed: 44 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Navbar from "@/components/Navbar";
2+
import { Button } from "@/components/ui/button";
3+
import { ArrowTopRightIcon } from "@radix-ui/react-icons";
24
import PrizeCard from "@/components/PrizeCard";
35
import TSPrizeCard from "@/components/TSPrizeCard";
46
import LogitechTrackCard from "@/components/LogitechTrackCard";
@@ -9,17 +11,14 @@ import bestGirls from "@/public/prizesPage/best_girls.png";
911

1012
import leftLeaf from "@/public/schedulePage/leftLeaf.svg";
1113
import rightLeaf from "@/public/schedulePage/rightLeaf.svg";
12-
import mxKeyboard from "@/public/prizesPage/mxKeyboard.jpg";
13-
import mxMouse1 from "@/public/prizesPage/mxMouse1.png";
14-
import mxMouse2 from "@/public/prizesPage/mxMouse2.png";
1514

1615
import img1 from "@/public/prizesPage/img1.svg";
1716
import img2 from "@/public/prizesPage/img2.svg";
1817
import img3 from "@/public/prizesPage/img3.svg";
1918
import img4 from "@/public/prizesPage/img4.svg";
20-
import prizeImg1 from "@/public/prizesPage/K950.png";
21-
import prizeImg3 from "@/public/prizesPage/prizeImg3.png";
22-
import pop from "@/public/prizesPage/pop.webp";
19+
import prizeImg1 from "@/public/prizesPage/prizeImg1.webp";
20+
import prizeImg2 from "@/public/prizesPage/prizeImg2.webp";
21+
import prizeImg3 from "@/public/prizesPage/prizeImg3.webp";
2322

2423
// Sponsor Logos
2524
import mongodbLogo from "@/public/prizesPage/mongodbLogo.svg";
@@ -61,7 +60,7 @@ const sponsorData = [
6160
supportText: "Postman Swag Kit",
6261
description:
6362
"Every day millions of developers do amazing things with APIs, together. The Postman platform includes a comprehensive set of tools that help accelerate the API lifecycle-from design, testing, documentation, and mocking to the sharing and discoverability of your APIs.",
64-
docLink:
63+
docLink:
6564
"https://docs.google.com/document/d/1TXbfdm_3N70MC3S43Yuhl_p2LDFoXMuO5ha8WfAETpc/edit?usp=sharing",
6665
},
6766
{
@@ -130,8 +129,7 @@ const logitechTracksData = [
130129
{
131130
imgSrc: img1,
132131
title: "Blind Type",
133-
description: "How synchronized is your team ? Get to know here!",
134-
modalDescription:
132+
description:
135133
"Played in team of two, one person is blindfolded and the other one has to speak out the text and the blindfolded one types it. The team with most WordsPerMinute wins.",
136134
prize: "K950 Wireless Keyboard",
137135
prizeImg: prizeImg1,
@@ -142,21 +140,19 @@ const logitechTracksData = [
142140
{
143141
imgSrc: img2,
144142
title: "Trending Tweet",
145-
description: "Share your best moments at HackByte with the world!",
146-
modalDescription:
147-
"Tweet about the most fun and intersting moments during HackByte, tag HackByte and Logitech. The one with the maximum engagement gets Logitech vouchers.",
143+
description:
144+
"Tweet about the most fun and interesting moments during HackByte, tag HackByte and Logitech. The one with the maximum engagement gets the amazing POP Mouse.",
148145
prize: "Logitech POP Mouse",
149-
prizeImg: pop,
146+
prizeImg: prizeImg2,
150147
borderColor: "#E5F1FF",
151148
bgColor:
152149
"radial-gradient(355.69% 132.99% at 0% 6.53%, rgba(128, 188, 255, 0.10) 0%, rgba(109, 160, 217, 0.02) 100%)",
153150
},
154151
{
155152
imgSrc: img3,
156153
title: "Stress Buster",
157-
description: "Take a break from bug fixing and relax with us for a while!",
158-
modalDescription:
159-
"Tensed about finding that bug in your code? Join us for the fun game and get charged up!! The game would be recorded ans a reel would be made from the bes moments during the game.",
154+
description:
155+
"Feeling tense about finding that bug in your code? Join us for a fun game to recharge! The best moments will be recorded and compiled into a reel.",
160156
prize: "Logitech M240",
161157
prizeImg: prizeImg3,
162158
borderColor: "#E5FFF1",
@@ -166,11 +162,10 @@ const logitechTracksData = [
166162
{
167163
imgSrc: img4,
168164
title: "Snap It if You Can",
169-
description: "Happiness knows no bounds when you're at HackByte!",
170-
modalDescription:
165+
description:
171166
"A short insta pause game, we'll explain you this in subsequent announcements",
172167
prize: "Logitech POP Mouse",
173-
prizeImg: pop,
168+
prizeImg: prizeImg2,
174169
borderColor: "#FFFAEF",
175170
bgColor:
176171
"radial-gradient(129.97% 124.9% at 0% 6.52%, #38351C 0%, rgba(56, 53, 28, 0.17) 100%)",
@@ -311,7 +306,7 @@ export default function Prizes() {
311306
</div>
312307

313308
<div
314-
className="mt-[3rem] md:mt-[4.5rem] px-[1rem] md:px-[3.5rem] py-[4.5rem]
309+
className="mt-[4.5rem] px-[1rem] md:px-[3.5rem] py-[4.5rem]
315310
rounded-[8px] border-2 border-[rgba(255,255,255,0.5)]"
316311
style={{
317312
background:
@@ -350,48 +345,39 @@ export default function Prizes() {
350345
MX Master 3s and MX Keys S! 🚀
351346
</p>
352347

353-
<div className="hidden lg:flex items-center gap-8">
354-
<Image
355-
src={mxKeyboard}
356-
alt="keyboard"
357-
className="w-[21.25rem] h-[6.25rem]"
358-
placeholder="blur"
359-
/>
360-
<Image
361-
src={mxMouse1}
362-
alt="mouse"
363-
className="w-[7.5rem] h-[9.5rem]"
364-
placeholder="blur"
365-
/>
366-
<Image
367-
src={mxMouse2}
368-
alt="mouse"
369-
className="w-[7.5rem] h-[9.5rem]"
370-
placeholder="blur"
371-
/>
372-
</div>
348+
<a href="https://forms.gle/xHMjGfZja8NxmneW9" target="_blank">
349+
<Button
350+
size="sm"
351+
className="bg-[#FAF8ED] text-black text-[1.125rem] font-semibold
352+
p-6 rounded-none hover:bg-[#FAF8ED] hover:text-black
353+
hover:scale-105 transition-transform ease-in-out duration-300"
354+
style={{
355+
boxShadow:
356+
"0px 1px 1px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 1px rgba(103, 110, 118, 0.16), 0px 2px 5px 0px rgba(103, 110, 118, 0.08)",
357+
}}
358+
>
359+
Submit your macro idea
360+
<ArrowTopRightIcon className="w-5 h-5 ml-1" />
361+
</Button>
362+
</a>
373363
</div>
374364
</div>
375365

376-
<div className="flex flex-col items-center">
377-
<div className="my-[4.5rem] rounded-full border border-[#D1CAC7] px-4 py-1">
378-
<p
379-
className="w-full text-[#C3C3C3] font-[Inter] text-center font-normal
380-
text-[1.25rem] md:text-[1.5rem]"
381-
>
382-
Explore more tracks by Logitech
383-
</p>
384-
</div>
366+
<div className="flex flex-col items-center mt-[4.5rem]">
367+
<p
368+
className="text-[#F5F0D8] text-center font-normal text-[2.25rem]
369+
md:text-[5rem] leading-10 md:leading-[5rem] xl:leading-[4.5rem]"
370+
>
371+
Explore more tracks by Logitech
372+
</p>
385373

386-
<div className="w-full flex flex-col items-center">
387-
<div
388-
className="w-full lg:max-w-[90%] xl:max-w-[70%] grid grid-cols-1
389-
md:grid-cols-2 gap-8 xl:gap-12"
390-
>
391-
{logitechTracksData.map((card, index) => (
392-
<LogitechTrackCard key={index} {...card} />
393-
))}
394-
</div>
374+
<div
375+
className="w-full grid grid-cols-1 xl:grid-cols-2 place-content-center
376+
place-items-center gap-8 xl:gap-12 mt-[4.5rem]"
377+
>
378+
{logitechTracksData.map((card, index) => (
379+
<LogitechTrackCard key={index} {...card} />
380+
))}
395381
</div>
396382
</div>
397383
</div>
Lines changed: 62 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,82 @@
11
import Image from "next/image";
2-
import {
3-
Dialog,
4-
DialogTrigger,
5-
DialogContent,
6-
DialogTitle,
7-
DialogDescription,
8-
DialogHeader,
9-
} from "@/components/ui/dialog";
102
import leftLeaf from "@/public/schedulePage/leftLeaf.svg";
113
import rightLeaf from "@/public/schedulePage/rightLeaf.svg";
124

135
export default function LogitechTrackCard({
146
imgSrc,
157
title,
168
description,
17-
modalDescription,
189
prize,
1910
prizeImg,
2011
borderColor,
2112
bgColor,
2213
}) {
2314
return (
24-
<Dialog>
25-
<DialogTrigger>
26-
<div
27-
className="relative overflow-hidden cursor-pointer min-h-[15rem] lg:min-h-[20rem]
28-
flex flex-col justify-end items-start gap-16 p-8 rounded-[8px] border-2"
29-
style={{
30-
borderColor: borderColor,
31-
background: bgColor,
32-
}}
33-
>
34-
<Image src={imgSrc} alt="" className="absolute top-0 right-0" />
35-
<p className="text-white font-medium text-[2rem]">{title}</p>
36-
<p className="text-[#D1CAC7] text-left font-normal text-[1.5rem]">
37-
{description}
38-
</p>
39-
</div>
40-
</DialogTrigger>
41-
<DialogContent
42-
className="max-w-[90%] lg:max-w-[800px] py-6 md:py-12 px-0 md:px-[4.5rem]
43-
border backdrop:filter backdrop-blur-[32px]"
44-
style={{
45-
borderRadius: "8px",
46-
borderColor: borderColor,
47-
background: bgColor,
48-
}}
49-
>
50-
<DialogHeader>
51-
<DialogTitle
52-
className="text-[#F5F0D8] text-center font-normal text-[2.25rem]
53-
md:text-[3rem]"
54-
>
55-
{title}
56-
</DialogTitle>
57-
<DialogDescription className="w-full flex flex-col items-center px-4 gap-6 md:gap-8">
15+
<div
16+
className="relative flex flex-col justify-center items-center gap-6 md:gap-8 px-3
17+
md:px-12 py-8 md:py-16 rounded-[8px] border-2 xl:min-h-[750px]"
18+
style={{
19+
borderColor: borderColor,
20+
background: bgColor,
21+
}}
22+
>
23+
<Image
24+
src={imgSrc}
25+
alt=""
26+
className="absolute inset-0 w-full h-full object-cover"
27+
/>
28+
<div className="flex flex-col items-center gap-4">
29+
<p className="text-white font-medium text-[2rem] md:text-[3rem] md:leading-[4rem]">
30+
{title}
31+
</p>
32+
<p className="text-[#D1CAC7] text-center font-normal text-[1.25rem] md:text-[1.5rem]">
33+
{description}
34+
</p>
35+
</div>
36+
37+
<div className="flex flex-col items-center gap-6 md:gap-8">
38+
<div className="flex flex-col items-center gap-3">
39+
<div className="flex justify-center items-center gap-0">
40+
<Image
41+
src={leftLeaf}
42+
alt="leaf"
43+
className="w-12 h-12 md:w-auto md:h-auto"
44+
/>
5845
<p
59-
className="text-[#D1CAC7] text-center font-normal text-[1.125rem]
60-
md:text-[1.5rem] leading-6"
46+
className="text-white text-center font-medium text-[1.75rem] md:text-[3rem]
47+
lg:text-[4.125rem]"
48+
style={{
49+
textShadow: "0px 0px 100px rgba(242, 210, 59, 0.80)",
50+
}}
6151
>
62-
{modalDescription}
52+
Prize
6353
</p>
54+
<Image
55+
src={rightLeaf}
56+
alt="leaf"
57+
className="w-12 h-12 md:w-auto md:h-auto"
58+
/>
59+
</div>
60+
<p
61+
className="font-medium text-[1.25rem] md:text-[1.5rem]"
62+
style={{
63+
background:
64+
"linear-gradient(80deg, #D06D30 6.67%, #FFD887 28.13%, #FFDCAD 64.87%, #FAB858 95.66%)",
65+
backgroundClip: "text",
66+
WebkitBackgroundClip: "text",
67+
WebkitTextFillColor: "transparent",
68+
}}
69+
>
70+
{prize}
71+
</p>
72+
</div>
6473

65-
<div className="flex flex-col items-center gap-6 md:gap-8">
66-
<div className="flex flex-col items-center gap-2">
67-
<div className="flex justify-center items-center gap-0">
68-
<Image
69-
src={leftLeaf}
70-
alt="leaf"
71-
className="w-12 h-12 md:w-auto md:h-auto"
72-
/>
73-
<p
74-
className="text-white text-center font-medium text-[1.75rem] md:text-[3rem]
75-
lg:text-[4.125rem]"
76-
style={{
77-
textShadow: "0px 0px 100px rgba(242, 210, 59, 0.80)",
78-
}}
79-
>
80-
Prize
81-
</p>
82-
<Image
83-
src={rightLeaf}
84-
alt="leaf"
85-
className="w-12 h-12 md:w-auto md:h-auto"
86-
/>
87-
</div>
88-
<p
89-
className="font-medium text-[1.25rem] md:text-[1.5rem]"
90-
style={{
91-
background:
92-
"linear-gradient(80deg, #D06D30 6.67%, #FFD887 28.13%, #FFDCAD 64.87%, #FAB858 95.66%)",
93-
backgroundClip: "text",
94-
WebkitBackgroundClip: "text",
95-
WebkitTextFillColor: "transparent",
96-
}}
97-
>
98-
{prize}
99-
</p>
100-
</div>
101-
102-
<Image
103-
src={prizeImg}
104-
alt=""
105-
className="w-[10rem] h-[7.5rem] md:w-[15rem] md:h-[11.25rem]"
106-
/>
107-
</div>
108-
</DialogDescription>
109-
</DialogHeader>
110-
</DialogContent>
111-
</Dialog>
74+
<Image
75+
src={prizeImg}
76+
alt=""
77+
className="w-[10rem] h-[7.5rem] md:w-[12rem] md:h-[9.25rem]"
78+
/>
79+
</div>
80+
</div>
11281
);
11382
}

components/TitleSponsorCard/index.jsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,9 @@ export default function TitleSponsorCard() {
2020
easing: "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
2121
};
2222

23-
const defaultGradient =
24-
"radial-gradient(100% at center, #363636 100%, #1A1A1A 27%)";
25-
const hoverGradient =
26-
"radial-gradient(371.89% 134.33% at 3.21% 1.26%,rgba(255, 255, 255, 0.07) 0%,rgba(217, 217, 217, 0.00) 100%)";
27-
2823
return (
2924
<a
30-
href="https://www.logitech.com"
25+
href="https://www.logitech.com/en-in/mx/master-series.html"
3126
target="_blank"
3227
rel="noreferrer"
3328
className="w-full xl:max-w-[95%] 2xl:max-w-[90%] flex justify-center"
@@ -36,15 +31,13 @@ export default function TitleSponsorCard() {
3631
<div
3732
className="flex flex-col md:flex-row shadow rounded-[8px]"
3833
style={{
39-
"--default-gradient": defaultGradient,
40-
"--hover-gradient": hoverGradient,
34+
background:
35+
"radial-gradient(116.96% 115.94% at 9.81% 9.24%, #383300 0%, rgba(56, 50, 0, 0.17) 100%)",
4136
}}
4237
onMouseEnter={(e) => {
43-
e.currentTarget.style.background = "var(--hover-gradient)";
4438
setIsHovered(true);
4539
}}
4640
onMouseLeave={(e) => {
47-
e.currentTarget.style.background = "var(--default-gradient)";
4841
setIsHovered(false);
4942
}}
5043
>
@@ -62,7 +55,9 @@ export default function TitleSponsorCard() {
6255
md:border-r border-[#FFFAEF]"
6356
>
6457
<div className="w-full flex justify-between items-center">
65-
<p className="text-[1.25rem] md:text-[1.5rem]">Logitech</p>
58+
<p className="font-medium text-[2rem] xl:text-[2.25rem]">
59+
Logitech
60+
</p>
6661
<div className="hover:bg-[#1B1B1B] mt-1 p-1">
6762
<ArrowRightIcon
6863
className={`w-6 h-6 lg:w-8 lg:h-8 p-[2px] transition-transform

public/partnersPage/logitech.jpg

16.4 KB
Loading

public/prizesPage/K950.png

-108 KB
Binary file not shown.

public/prizesPage/mxKeyboard.jpg

-128 KB
Binary file not shown.

public/prizesPage/mxMouse1.png

-54.8 KB
Binary file not shown.

public/prizesPage/mxMouse2.png

-46.5 KB
Binary file not shown.

public/prizesPage/prizeImg1.png

-114 KB
Binary file not shown.

public/prizesPage/prizeImg1.webp

14.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)