refactor styles for main block in gamemode section

This commit is contained in:
Kostya
2023-11-21 20:49:54 +03:00
parent a8794f9b3d
commit 5806dedc22
2 changed files with 92 additions and 27 deletions

View File

@@ -72,12 +72,6 @@
width: 80%; width: 80%;
} }
.gamemode__content--text {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.gamemode__content--text h2 { .gamemode__content--text h2 {
margin: 2% 0 .5% 10%; margin: 2% 0 .5% 10%;
} }
@@ -90,16 +84,17 @@
} }
.gamemode__content--card { .gamemode__content--card {
width: 100%; display: flex;
height: 100%; margin-top: 14px;
} }
.gamemode__main { .gamemode__main {
border-radius: 40px; border-radius: 40px;
background: #EF4444; background: #EF4444;
box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25); box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
width: 30%; width: 32%;
height: 100%; height: 100%;
margin-left: 8%;
} }
.gamemode__main .line__content1 { .gamemode__main .line__content1 {
@@ -108,23 +103,77 @@
text-align: center; text-align: center;
} }
.gamemode__main .line__content1 h3 {
color: #FFF;
padding-top: 10px;
text-transform: uppercase;
font-size: 91px;
font-weight: 700;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
font-family: Montserrat Alternates;
}
.gamemode__main .content .icon1 {
width: 50%;
}
.gamemode__main .content { .gamemode__main .content {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-self: flex-end;
}
.line__content h3 {
color: #fff;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
font-family: Montserrat Alternates;
font-size: 91px;
font-weight: 700;
text-transform: uppercase;
text-align: center;
}
.line__footer {
display: flex;
justify-content: center;
align-items: end;
padding-top: 12%;
}
.line__footer img {
width: 60%;
}
.line__btn--main a {
border-radius: 21px;
background: #FFF;
box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
color: #000;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
font-family: Montserrat Alternates;
font-size: 36px;
font-weight: 700;
padding: 11px 11px;
text-decoration: none;
text-transform: uppercase;
}
.line__btn--main a span {
color: #000;
font-size: 38px;
}
.gamemode__firstline {
background: #EF4444;
filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
border-radius: 40px;
width: 50%;
height: 100%;
}
.
.line__btn {
border-radius: 21px;
background: #FFF;
box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
color: #000;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
font-family: Montserrat Alternates;
font-size: 36px;
font-weight: 700;
padding: 11px 11px;
text-decoration: none;
text-transform: uppercase;
} }
/* /GameMode */ /* /GameMode */

View File

@@ -27,12 +27,28 @@
v-for="mode in mainGameMode" v-for="mode in mainGameMode"
:key="mode.id" :key="mode.id"
> >
<div :class="'line__content' + mode.id"> <div class="line__content" style="margin: 16px 38px 0px 0px" :id="'maincard-' + mode.id">
<h3>{{ mode.title }}</h3> <h3>{{ mode.title }}</h3>
<div class="line__footer">
<img src="../assets/icons-gamemodes/bomb-icon.svg">
<div class="line__btn--main">
<a href="#">play <span>></span></a>
</div>
</div>
</div> </div>
<div class="content"> </li>
<img :class="'icon' + mode.id" src="@/assets/icons-gamemodes/bomb-icon.svg"> </ul>
<a href="#">play <span><img src="@/assets/icons-gamemodes/icon-right-array.svg"></span></a> </div>
<div class="gamemode__firstline">
<ul>
<li
v-for="mode in firstlineGameMode"
:key="mode.id"
>
.line__
<div :class="'linecontent-' + mode.id">
<h1>{{ mode.title }}</h1>
<a href="#" class="line__btn">play</a>
</div> </div>
</li> </li>
</ul> </ul>