mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 07:17:27 +08:00
[S] Style UserHome
This commit is contained in:
@@ -39,9 +39,11 @@
|
|||||||
{#if d !== null}
|
{#if d !== null}
|
||||||
<div class="user-pfp">
|
<div class="user-pfp">
|
||||||
<img src={`${data_host}/maimai/assetbundle/icon/${d.user.iconId.toString().padStart(6, "0")}.png`} alt="" class="pfp">
|
<img src={`${data_host}/maimai/assetbundle/icon/${d.user.iconId.toString().padStart(6, "0")}.png`} alt="" class="pfp">
|
||||||
<h1>{d.user.name}</h1>
|
<h2>{d.user.name}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h2>Scoring Statistics</h2>
|
||||||
<div class="scoring-info">
|
<div class="scoring-info">
|
||||||
<div class="chart">
|
<div class="chart">
|
||||||
<div class="info-top">
|
<div class="info-top">
|
||||||
@@ -108,7 +110,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h2>Play Activity</h2>
|
||||||
<div class="activity-info">
|
<div class="activity-info">
|
||||||
<div id="cal-heatmap" bind:this={calElement} />
|
<div id="cal-heatmap" bind:this={calElement} />
|
||||||
|
|
||||||
@@ -120,17 +125,17 @@
|
|||||||
|
|
||||||
<div class="time">
|
<div class="time">
|
||||||
<span>Play Time</span>
|
<span>Play Time</span>
|
||||||
<span>{d.user.totalPlayTime}</span>
|
<span>{(d.user.totalPlayTime / 60 / 60).toFixed(1)} hr</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="first-play">
|
<div class="first-play">
|
||||||
<span>Joined</span>
|
<span>First Seen</span>
|
||||||
<span>{moment(d.user.joined).format("YYYY-MM-DD HH:mm:ss")}</span>
|
<span>{moment(d.user.joined).format("YYYY-MM-DD")}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="last-play">
|
<div class="last-play">
|
||||||
<span>Last Seen</span>
|
<span>Last Seen</span>
|
||||||
<span>{moment(d.user.lastSeen).format("YYYY-MM-DD HH:mm:ss")}</span>
|
<span>{moment(d.user.lastSeen).format("YYYY-MM-DD")}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="last-version">
|
<div class="last-version">
|
||||||
@@ -139,7 +144,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<p>Loading...</p>
|
<p>Loading...</p>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -148,11 +153,28 @@
|
|||||||
<style lang="sass">
|
<style lang="sass">
|
||||||
@import "../vars"
|
@import "../vars"
|
||||||
|
|
||||||
|
$gap: 20px
|
||||||
|
|
||||||
#user-home
|
#user-home
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
gap: 20px
|
gap: $gap
|
||||||
padding: 0 32px
|
margin: 100px 32px 0
|
||||||
|
padding: 0 32px 32px
|
||||||
|
height: 100%
|
||||||
|
|
||||||
|
background-color: rgba(black, 0.2)
|
||||||
|
border-radius: 16px
|
||||||
|
|
||||||
|
.user-pfp
|
||||||
|
display: flex
|
||||||
|
align-items: flex-end
|
||||||
|
gap: $gap
|
||||||
|
margin-top: -40px
|
||||||
|
|
||||||
|
h2
|
||||||
|
font-size: 2rem
|
||||||
|
margin: 0
|
||||||
|
|
||||||
.pfp
|
.pfp
|
||||||
width: 100px
|
width: 100px
|
||||||
@@ -162,7 +184,7 @@
|
|||||||
|
|
||||||
.info-bottom, .info-top, .other-info
|
.info-bottom, .info-top, .other-info
|
||||||
display: flex
|
display: flex
|
||||||
gap: 20px
|
gap: $gap
|
||||||
|
|
||||||
> div
|
> div
|
||||||
display: flex
|
display: flex
|
||||||
@@ -181,25 +203,29 @@
|
|||||||
|
|
||||||
.scoring-info
|
.scoring-info
|
||||||
display: flex
|
display: flex
|
||||||
gap: 20px
|
gap: $gap
|
||||||
max-height: 250px
|
max-height: 250px
|
||||||
|
|
||||||
.chart
|
.chart
|
||||||
flex: 1
|
flex: 0 1 790px
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
|
|
||||||
.other-info
|
.other-info
|
||||||
flex: 0 0 100px
|
flex: 1 0 100px
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
gap: 0
|
gap: 0
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
|
|
||||||
|
|
||||||
.trend
|
.trend
|
||||||
height: 300px
|
height: 300px
|
||||||
width: 100%
|
width: 100%
|
||||||
|
max-width: 790px
|
||||||
|
|
||||||
|
.activity-info
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
gap: $gap
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user