-
diff --git a/src/styles/_tournaments.scss b/src/styles/_tournaments.scss
index 1354422..02eaa52 100644
--- a/src/styles/_tournaments.scss
+++ b/src/styles/_tournaments.scss
@@ -13,6 +13,7 @@
.tournaments-head {
background-position: 60% top !important;
+ background-size: cover !important;
padding: 5.6rem 4rem;
display: flex;
flex-direction: column;
@@ -37,3 +38,64 @@
width: 100%;
min-height: 36.2rem;
}
+
+.tournaments-lower {
+ @include grid($row: false, $layout: repeat(3, 1fr));
+ row-gap: 4rem;
+ column-gap: 8.5rem;
+}
+
+.tournament-top {
+ position: relative;
+ width: 100%;
+ max-height: 26rem;
+
+ div {
+ z-index: 3;
+ background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ left: 0;
+ content: "";
+ }
+
+ img {
+ width: 100%;
+ object-fit: cover;
+ }
+}
+
+.tournament-bottom {
+ display: flex;
+ flex-direction: column;
+ gap: 0.8rem;
+ border: 0.1rem solid #cecece;
+ border-top: none;
+ padding: 3.2rem 2.4rem;
+
+ h3 {
+ font-size: 2.4rem;
+ font-weight: bold;
+ color: $base-green;
+ }
+
+ p {
+ display: flex;
+ align-items: center;
+ gap: 0.8rem;
+ }
+
+ span {
+ font-size: 1.8rem;
+ line-height: 2.5rem;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ }
+
+ .separator {
+ color: $base-green;
+ }
+}
- 25 nov - 16 dec
-
+ )}
+
FIDE WORLD CHAMPIONSHIP MATCH
- Dubai, UAE, 2021 + {tournaments ? ( + tournaments.map((tournament: any) => { + if (tournament.current === 1) { + return ( +
+ {`${dateParser(
+ tournament.events[0].start.split(" ")[0]
+ )} - ${dateParser(
+ tournament.events[0].end.split(" ")[0]
+ )}`}
+
+ );
+ }
+ })
+ ) : (
+ {tournament.events[0].name}
+ {tournament.events[0].place} +
+ {tournaments
+ ? tournaments.map((tournament: any) => {
+ if (tournament.current !== "1") {
+ return (
+
+ );
+ }
+ })
+ : ["", "", "", "", "", ""].map(() => {
+ return (
+
+
+
+
+ );
+ })}