1
- import { mainCategory , subCategory } from "@/lib/data/prizes" ;
1
+ import { mainCategory } from "@/lib/data/prizes" ;
2
2
import { tracksType } from "@/types/interface" ;
3
3
import { BsMusicPlayer } from "react-icons/bs" ;
4
4
import { CgSmartphoneChip } from "react-icons/cg" ;
@@ -38,7 +38,7 @@ const tracks: tracksType[] = [
38
38
39
39
function Card ( { track } : { track : tracksType } ) {
40
40
return (
41
- < div className = "relative flex h-[494px ] w-full max-w-[480px] cursor-pointer flex-col items-center rounded-[61.64px ] bg-[#173162] p-6 shadow-xl duration-200 ease-in-out hover:bg-[rgb(52,11,103)] hover:text-white" >
41
+ < div className = "relative flex min- h-[480px ] w-full max-w-[480px] flex-col items-center rounded-[2.5rem ] bg-[#173162] p-6 shadow-xl duration-200 ease-in-out hover:text-white" >
42
42
< div className = "absolute top-0 left-0 -translate-x-1/2 -translate-y-1/2" >
43
43
< img src = "/assets/hex.svg" alt = "hex" className = "h-8 w-8" />
44
44
</ div >
@@ -70,7 +70,7 @@ function Card({ track }: { track: tracksType }) {
70
70
< img src = "/assets/circles.svg" alt = "circles" />
71
71
</ div >
72
72
73
- < p className = "w-[355px] text-center text-lg font-bold text-white " >
73
+ < p className = "custom-text-shadow text-center text-lg font-bold text-[#72D6E6] " >
74
74
{ track . name }
75
75
</ p >
76
76
@@ -79,15 +79,8 @@ function Card({ track }: { track: tracksType }) {
79
79
</ div >
80
80
</ div >
81
81
82
- < div className = "mt-6 flex h-[180px] w-[273px] flex-col items-center text-center" >
83
- { track . team && (
84
- < p className = "mb-4 font-normal leading-7 text-white" >
85
- Total: { track . team } team(s)
86
- </ p >
87
- ) }
88
- < p className = "font-audiowide text-[20px] font-[400] leading-[30px] text-white" >
89
- { track . description }
90
- </ p >
82
+ < div className = "mt-6 flex flex-col items-center p-4 text-center" >
83
+ < p className = "font-audiowide text-md text-white" > { track . description } </ p >
91
84
</ div >
92
85
</ div >
93
86
) ;
@@ -97,63 +90,46 @@ export default function Prizes() {
97
90
return (
98
91
< div >
99
92
< h1 className = "feed-title" > Tracks & Prizes </ h1 >
100
- < p className = "custom-text-shadow font-audiowide text-[16px] leading-snug text-white sm:text-[18px] lg:text-[24px] " >
93
+ < p className = "custom-text-shadow mt-2 font-audiowide leading-snug text-white lg:text-lg " >
101
94
Find all details about tracks, prize categories here
102
95
</ p >
103
96
104
97
< div className = "mt-10" >
105
98
< div className = "mb-4 flex items-center gap-4" >
106
- < p className = "font-rubik text-[27px] font-[700] leading-[20px] text-[#72D6E6]" >
107
- TRACKS
108
- </ p >
99
+ < h2 className = "text-3xl font-semibold text-[#72D6E6]" > TRACKS</ h2 >
109
100
</ div >
110
- < p className = "font-audiowide text-white md:text-md" >
101
+ < p className = "mt-4 font-audiowide text-white md:text-md" >
111
102
Hackers have to build their projects around one of these 4 tracks
112
103
</ p >
113
104
</ div >
114
- < div className = "mt-10 grid grid-cols-1 gap-y-16 gap-x-0 sm:grid-cols-2 lg:grid-cols-2" >
105
+ < div className = "mt-10 grid grid-cols-1 items-center justify-center gap-x-8 gap-y-12 sm:grid-cols-2 md:grid-cols-1 lg:grid-cols-2" >
115
106
{ tracks . map ( ( track : tracksType ) => {
116
107
return < Card key = { track . id } track = { track } /> ;
117
108
} ) }
118
109
</ div >
119
110
120
111
< div className = "mt-14" >
121
112
< div className = "mb-8" >
122
- < p className = "font-rubik text-[20px] font-[700] leading-[20px] text-[#72D6E6] md:text-[27px]" >
123
- Prizes
124
- </ p >
125
- < p className = "mt-4 font-audiowide text-[16px] leading-[22px] text-white md:text-[20px] md:leading-[30px]" >
113
+ < h2 className = "text-3xl font-semibold text-[#72D6E6]" > PRIZES</ h2 >
114
+ < p className = "mt-4 font-audiowide text-white md:text-md" >
126
115
Each team has to sign up for one prize category in order to be
127
116
considered for the corresponding prize.
128
117
</ p >
129
118
</ div >
130
119
131
- < div
132
- className = "relative mx-auto rounded-[20px] bg-[#173162] px-4 py-4 md:rounded-[61.64px]"
133
- style = { { width : "100%" , maxWidth : "1060px" } } >
134
- < div className = "grid h-full grid-cols-1 place-items-center gap-4 sm:grid-cols-2 md:gap-x-3 md:gap-y-2" >
135
- { mainCategory . slice ( 0 , 4 ) . map ( ( prize : tracksType ) => (
136
- < div
137
- key = { prize . id }
138
- className = "flex flex-col items-center justify-center space-y-4 p-4 sm:p-6" >
139
- < p className = "font-audiowide text-[20px] font-[400] text-[#72D6E6] md:text-[36px]" >
140
- { prize . name }
141
- </ p >
142
-
143
- < div
144
- className = "w-full rounded-[10px] bg-[#C5C5C5] text-center md:rounded-[20px]"
145
- style = { {
146
- maxWidth : "497px" ,
147
- height : "auto" ,
148
- padding : "1rem"
149
- } } >
150
- < p className = "mt-4 px-2 text-sm font-normal md:px-4 md:text-base" >
151
- { prize . description }
152
- </ p >
153
- </ div >
154
- </ div >
155
- ) ) }
156
- </ div >
120
+ < div className = "flex w-full flex-wrap gap-4" >
121
+ { mainCategory . map ( ( prize : tracksType ) => (
122
+ < div
123
+ key = { prize . id }
124
+ className = "flex min-h-[130px] flex-col items-center rounded-lg bg-[#173162] p-4" >
125
+ < h3 className = "custom-text-shadow font-audiowide text-md font-[400] text-[#72D6E6] md:text-lg" >
126
+ { prize . name }
127
+ </ h3 >
128
+ < p className = "mt-4 px-2 text-white md:text-md" >
129
+ { prize . description }
130
+ </ p >
131
+ </ div >
132
+ ) ) }
157
133
</ div >
158
134
</ div >
159
135
</ div >
0 commit comments