Mobile layout (fix #2)
This commit is contained in:
@@ -17,17 +17,20 @@ const championDescription = championData.value.title
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="display: flex;">
|
||||
<div style="display: flex; width: fit-content;">
|
||||
|
||||
<div class="champion-title-img-container">
|
||||
<NuxtImg width="160" height="160" class="champion-title-img" :src="CDRAGON_BASE + 'plugins/rcp-be-lol-game-data/global/default/v1/champion-icons/' + championId + '.png'"/>
|
||||
</div>
|
||||
<div style="margin-left: 15px; margin-top: 5px;">
|
||||
|
||||
<div id="ct-info-container">
|
||||
<h1>{{ championName }}</h1>
|
||||
<h3 style="margin-top: 5px">{{ championDescription }}</h3>
|
||||
<div style="margin-top: 30px; display: flex;">
|
||||
<h2>{{ winrate }}% win.</h2>
|
||||
<h2 style="margin-left: 20px; margin-right: 20px;">{{ pickrate }}% pick.</h2>
|
||||
<h2>{{ gameCount }} games</h2>
|
||||
<h3 id="ct-desc">{{ championDescription }}</h3>
|
||||
|
||||
<div id="ct-basic-stat-container">
|
||||
<h2 class="ct-basic-stat">{{ winrate }}% win.</h2>
|
||||
<h2 class="ct-basic-stat ct-basic-stat-margin">{{ pickrate }}% pick.</h2>
|
||||
<h2 class="ct-basic-stat">{{ gameCount }} games</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,7 +41,7 @@ const championDescription = championData.value.title
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
border: 1px solid var(--color-on-surface);
|
||||
}
|
||||
.champion-title-img {
|
||||
@@ -48,4 +51,48 @@ const championDescription = championData.value.title
|
||||
|
||||
user-select: none;
|
||||
}
|
||||
#ct-info-container {
|
||||
margin-left: 15px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.ct-basic-stat-margin {
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
#ct-desc {
|
||||
margin-top: 5px;
|
||||
}
|
||||
#ct-basic-stat-container {
|
||||
margin-top: 30px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 650px) {
|
||||
.champion-title-img-container {
|
||||
width: 86px;
|
||||
height: 86px;
|
||||
}
|
||||
.champion-title-img {
|
||||
width: 86px;
|
||||
height: 86px;
|
||||
}
|
||||
#ct-desc {
|
||||
display: none;
|
||||
}
|
||||
.ct-basic-stat {
|
||||
text-align: center;
|
||||
}
|
||||
.ct-basic-stat-margin {
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
#ct-basic-stat-container {
|
||||
margin-top: 10px;
|
||||
}
|
||||
#ct-info-container {
|
||||
margin-left: 10px;
|
||||
margin-top: 0px;
|
||||
max-width: 220px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user