Skip to content

Commit

Permalink
feat: prizes section (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored Apr 8, 2024
1 parent af67f5e commit a63810f
Show file tree
Hide file tree
Showing 8 changed files with 992 additions and 120 deletions.
5 changes: 1 addition & 4 deletions src/app/pages/Designathons/Designathon24/Designathon24.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PRIZES_2024 from "assets/data/designathon/2024/prizes.json";
import cn from "./Designathon24.module.scss";

import {
Expand Down Expand Up @@ -41,9 +40,7 @@ const Designathon24 = () => (

<Rules />

<div className={cn.prizes} id="s-prizes">
<Prizes list={PRIZES_2024} />
</div>
<Prizes />

<Schedule />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
--des24-peach: #ff6969;
--des24-cream: #fff5e0;
--des24-black: #242424;
--des24-blue: #1f3066;

& > .hero {
height: 100vh;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,43 +1,202 @@
.title {
color: black;
font-size: 3em;
font-weight: bold;
}

.container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 80px;
padding-bottom: 80px;
position: relative;
background-color: var(--des24-cream);
color: var(--des24-black);

padding: 5rem 2rem;

@media screen and (min-width: 768px) {
padding: 6rem 5rem;
}

.content {
margin: 0 auto;
max-width: 1280px;
}

.heading {
position: relative;
color: var(--des24-hot-pink);
font-size: 3rem;
font-weight: 700;
margin-bottom: 2rem;

@media screen and (min-width: 640px) {
font-size: 5rem;
margin-bottom: 4rem;
}

@media screen and (min-width: 1280px) {
font-size: 6rem;
}
}

.prizeSectionContainer {
margin-bottom: 2rem;

@media screen and (min-width: 1024px) {
margin-bottom: 4rem;
}
}

.prizeSectionHeading {
font-weight: bold;
font-size: 2rem;
margin-bottom: 20px;

@media screen and (min-width: 640px) {
font-size: 3rem;
margin-bottom: 40px;
}
}

.prizeContainer {
position: relative;

display: flex;
flex-direction: column;
padding: 1.5rem;
border-radius: 0.5rem;
margin-bottom: 20px;
width: 100%;

@media screen and (min-width: 768px) {
max-width: 85%;
}

@media screen and (min-width: 1024px) {
max-width: unset;
padding: 2.5rem;
margin-bottom: 30px;
}

.prizeHeader {
font-weight: bold;
font-size: 1.5rem;

@media screen and (min-width: 1024px) {
font-size: 2.5rem;
}
}

.prizes {
position: relative;

display: flex;
flex-direction: column;
gap: 12px;

font-size: 1rem;
word-wrap: break-word;

@media screen and (max-width: 1200px) {
grid-template-columns: repeat(3, 1fr);
@media screen and (min-width: 1024px) {
font-size: 1.75rem;
gap: 20px;
}
}
}

@media screen and (max-width: 950px) {
grid-template-columns: repeat(2, 1fr);
.first {
background-color: var(--des24-pink);
color: var(--des24-cream);

padding: 2rem 1.5rem;
gap: 20px;

@media screen and (min-width: 1024px) {
gap: 40px;
padding: 4 2.5rem;
}

.prizes {
@media screen and (min-width: 1024px) {
max-width: 75%;
}
}
}
@media screen and (max-width: 640px) {

.secondThirdContainer {
display: grid;
grid-template-columns: repeat(1, 1fr);

@media screen and (min-width: 1024px) {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.secondThird {
border: 2px solid var(--des24-hot-pink);
background-image: url("../../assets/graphics/prizes/second_third_bg.svg");
gap: 20px;
}
}

& > .item {
&:nth-child(even) {
& h3 {
color: var(--yellow);
.inpersonContainer {
display: grid;
grid-template-columns: repeat(1, 1fr);

@media screen and (min-width: 1024px) {
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.prizeHeader {
color: var(--des24-blue);
}

.prizeDetails {
color: #808080;
font-size: 1rem;
margin-top: 0.5rem;

@media screen and (min-width: 1024px) {
margin-top: 1rem;
font-size: 1.25rem;
}
}

& p {
color: black;
line-height: 1.4em;
.inperson {
background-color: var(--des24-cream);
border: 2px solid var(--des24-blue);
gap: 20px;

@media screen and (min-width: 1024px) {
gap: 40px;
}
}

.prizes {
margin-top: auto;
}
}
}

& h3 {
font-weight: bold;
margin: 20px 0;
font-size: 1.5em;
color: var(--blue);
.trophy {
position: absolute;
bottom: 0;
right: 0;

display: none;

@media screen and (min-width: 1024px) {
display: flex;
max-height: 250px;
}
}

.lines {
position: absolute;
max-width: 30%;
}

.tr {
top: 3%;
right: 3%;
}

.bl {
bottom: 1%;
left: 3%;

transform: rotate(180deg);
}
Loading

0 comments on commit a63810f

Please sign in to comment.