From 770cc422013a8a60a4cfef1adde9e0bfb4301731 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Mon, 19 Sep 2022 10:27:27 +0300 Subject: [PATCH] update: prizes & tracks section --- .../PrizesSection/PrizesSection.tsx | 112 +++++++++++++++++- .../PrizesSection/styles.module.scss | 26 ++++ 2 files changed, 135 insertions(+), 3 deletions(-) diff --git a/src/features/Tournaments/pages/OverviewPage/PrizesSection/PrizesSection.tsx b/src/features/Tournaments/pages/OverviewPage/PrizesSection/PrizesSection.tsx index d910a2e..cac98e9 100644 --- a/src/features/Tournaments/pages/OverviewPage/PrizesSection/PrizesSection.tsx +++ b/src/features/Tournaments/pages/OverviewPage/PrizesSection/PrizesSection.tsx @@ -9,8 +9,39 @@ interface Props { export default function PrizesSection({ prizes }: Props) { return (
-

Prizes

-
+

{data.tracks.length > 0 ? "Prizes & Tracks" : "Prizes"}

+
+ {data.tracks.map((track, trackNumber) =>
+
+
+ {`${track.title} +

{track.title}

+

{track.description}

+
+
+ {/* One Prize */} + {track.prizes.length === 1 && +
+

{track.prizes[0].title}

+

{track.prizes[0].amount}

+
+ } + {/* Four Prizez */} + {track.prizes.length === 4 && +
+ {track.prizes.map((prize, idx) =>
+

{prize.title}

+

{prize.amount}

+
)} +
+ } +
+
+
)} +
+ {/*
{prizes.map((prize, idx) =>
@@ -20,7 +51,82 @@ export default function PrizesSection({ prizes }: Props) {

{prize.amount}

)} -
+
*/} ) } + +const data = { + prizes: [], + tracks: [ + { + id: 1, + title: "Grand Champion", + description: "Our Grand Champion, a.k.a “The Legend of Lightning” will be the best in show, la créme de la créme. Every project entered in the tournament will be eligible for this award, no matter what track they choose.", + image: "https://s3-alpha-sig.figma.com/img/33fa/68dc/1015f7806d8706cbb29b057f85482755?Expires=1664755200&Signature=QdesbJJcLG84k-SudRv9ah-tVSf~zv4NZKU1EQM9cz-L7qZ1crx7awSVBFZdP~p4R7h1FsUqQfSNHsOPQOKTRiWOL~mpKLe6SAlKhdeqrm8RCNmnhNHpMOxJrCGAsJ7vQDkUKFw9VsJjufTjtEgLHN-EWH5L~RvNHKa06f6rRyiMeRl5HCu9JWT5Spjb0zK7IrU2gT7G~Dw0FTdbE35uxCbN9pU-XuPLbqmAIsPBR-gV4uuf21NBapFOLFDazi-tDzIJO--vH6C4RjuI-i3sl1WV75-SM0DW9MVNBvXiWfPrtGXbNd379xJXQoCBVxv4qzl3YkdoxFUG1-uwKTrVaA__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA", + prizes: [ + { + id: 1, + title: "the legend", + amount: "1 BTC" + } + ] + }, + { + id: 2, + title: "Bitcoin Adoption Track", + description: "On-chain applications have been the bed rock of bitcoin’s explosive growth and adoption over the last decade. Slowly, steadily, and securely, bitcoin’s base layer always seeks to evolve and improve.", + image: "https://s3-alpha-sig.figma.com/img/cb90/77b4/5ea853a671d0cb1c64bde10dd8955d39?Expires=1664755200&Signature=aXtIhKJg58wRTQlJIGWxpfCN2hxJx8L0~8Hu5aH8LKUVAYrxSV5Tvvxevx9xDnf-RpjTVfB6D7RKuVQjfIiftB4Ym80oOlW9tNzYUo991cJhdYnqaGzJ6Ht2kF7NHmxbiY5RUMYj8bGf2AF1A2a7wuW~DaqHyLQ0s2sszwH2EAv31QTH1DAOO97pQzQ5asas7qGjARWh45QEfw6F8e~6iq3UWHXtIcJ0HMJO4q3ONhsMkuC6XQNfAmWTRwKb3tPZ79oehWgDeyOMGQkRS0uaal~6fNkheEN5DuRBH2dbXtqB6va0PJCTB1l8P558HXhKQjHXRLPPReIci72jPuTzdA__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA", + prizes: [ + { + id: 2, + title: " 1st", + amount: "$5k" + }, + { + id: 3, + title: " 2nd", + amount: "$2.5k" + }, + { + id: 4, + title: " 3rd", + amount: "$1.5k" + }, + { + id: 5, + title: " Design", + amount: "$1k" + }, + ] + }, + { + id: 3, + title: "Building for Africa track", + description: "With ~1.4bn inhabitants, Africa is ripe for bitcoin adoption. In partnership with ABC 22, this track seeks to encourage makers to build solutions that are local to the African continent.", + image: "https://s3-alpha-sig.figma.com/img/c306/f172/7ce7befa9414372e6d0ede739be46de8?Expires=1664755200&Signature=BBfOTJzk7Si7zs9dOBhTdIhoKCvUDxAr6Do0wCZaIq9PD2Jcfxu3ANbiogzihC5O2Rwz3sKsajsRCd8eSs8HGrHrQh89SfNIl0~MYjMz12yWpsc1vC5M5hmXH~VQzCTOWsSki9BimcpCu0IOWfJFjY-p0rlo8UFhdDe56DiRUOSW0pAm5UxTstzOew6X015xA3qQWwUIea2JAtlsI5RqMQMRB-QlaKFlQvYHBU6YzLUNTuTn4MfOd-1oZXKtDArubYnSrJb2rJAXqccxgsXceDl8jq8HXKwkBR95-sG3UDZB7q7qb1Nk3HlsDtirGNlOjLx~vDKpOuyIk5ufAkdJmQ__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA", + prizes: [ + { + id: 6, + title: " 1st", + amount: "$5k" + }, + { + id: 7, + title: " 2nd", + amount: "$2.5k" + }, + { + id: 8, + title: " 3rd", + amount: "$1.5k" + }, + { + id: 9, + title: " Design", + amount: "$1k" + }, + ] + }, + ] +} diff --git a/src/features/Tournaments/pages/OverviewPage/PrizesSection/styles.module.scss b/src/features/Tournaments/pages/OverviewPage/PrizesSection/styles.module.scss index baecc03..a43c236 100644 --- a/src/features/Tournaments/pages/OverviewPage/PrizesSection/styles.module.scss +++ b/src/features/Tournaments/pages/OverviewPage/PrizesSection/styles.module.scss @@ -2,6 +2,32 @@ @import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap"); +.prizes { + font-family: "Luckiest Guy", cursive; + h4 { + color: white; + -webkit-text-stroke: 1px black; + } + + @include gt-md { + h4 { + -webkit-text-stroke: 0.06em black; + } + } + + p[data-attr="1"] { + color: #fb923c; + } + + p[data-attr="2"] { + color: #4ade80; + } + + p[data-attr="3"] { + color: #3b82f6; + } +} + .grid { font-family: "Luckiest Guy", cursive; display: grid;