Skip to content

Commit

Permalink
feat: add ActivePill component
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyzoid committed Jul 8, 2024
1 parent b138d0f commit 2042327
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 17 deletions.
9 changes: 9 additions & 0 deletions src/components/ActivePill.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<div class="w-3 h-3 bg-green-500 rounded-full inner"></div>
</template>

<script setup>
</script>

<style scoped>
</style>
43 changes: 26 additions & 17 deletions src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,57 @@
<span class="absolute z-10 signature">Kyzoid</span>
</div>
<span class="mt-16 text-sm uppercase subtitle font-bold z-20">Rhythm game player</span>
<div class="text-xs opacity-50 text-center mb-3 date-sub">last updated: {{ daysAgo(2024, 7, 8) }}</div>
</div>

<div ref="$card" class="z-30 card relative" @mouseenter="onMouseEnter" @mouseleave="onMouseLeave" @mousemove="rotateToMouse">
<div class="grid grid-cols-2 gap-3 sm:gap-6 text-white font-weight-regular p-3 sm:p-6">
<div class="grid grid-cols-1 gap-3">
<div>
<h2 class="uppercase text-xs opacity-50 mb-1">Sound Voltex</h2>
<SDVXCard :value="stats['SDVX']" />
</div>
<div>
<h2 class="uppercase text-xs opacity-50 mb-1">Maimai DX</h2>
<h2 class="uppercase text-xs opacity-50 mb-1 flex items-center"><ActivePill /><span class="ml-1.5">Maimai DX</span></h2>
<MaimaiCard class="maimai" :value="stats['maimaiDeluxe']" />
</div>

<div>
<h2 class="uppercase text-xs opacity-50 mb-1">Jubeat Ave.</h2>
<h2 class="uppercase text-xs opacity-50 mb-1 flex items-center">Sound Voltex</h2>
<SDVXCard :value="stats['SDVX']" />
</div>

<div>
<h2 class="uppercase text-xs opacity-50 mb-1 flex items-center"><ActivePill /><span class="ml-1.5">Jubeat Ave.</span></h2>
<JubeatCard :value="stats['jubeat']" />
</div>

<div>
<h2 class="uppercase text-xs opacity-50 mb-1">Pop'n Music</h2>
<h2 class="uppercase text-xs opacity-50 mb-1 flex items-center">Pop'n Music</h2>
<PopnCard :value="stats['popn']" />
</div>
</div>

<div class="grid grid-cols-1 gap-4">
<div>
<h2 class="uppercase text-xs opacity-50 mb-1">osu!mania</h2>
<OsuCard :value="stats['osu']['mania']" />
<h2 class="uppercase text-xs opacity-50 mb-1 flex items-center">EZ2ON Reboot: R</h2>
<EZ2ONCard :value="ez2onAverage()" />
</div>

<div>
<h2 class="uppercase text-xs opacity-50 mb-1">ScoreSaber</h2>
<ScoreSaberCard :value="stats['scoresaber']" />
<h2 class="uppercase text-xs opacity-50 mb-1 flex items-center">osu!mania</h2>
<OsuCard :value="stats['osu']['mania']" />
</div>

<div>
<h2 class="uppercase text-xs opacity-50 mb-1">EZ2ON Reboot: R</h2>
<EZ2ONCard :value="ez2onAverage()" />
<h2 class="uppercase text-xs opacity-50 mb-1 flex items-center">vivid/stasis</h2>
<VividStasisCard :value="stats['vivid/stasis']" />
</div>

<div>
<h2 class="uppercase text-xs opacity-50 mb-1">vivid/stasis</h2>
<VividStasisCard :value="stats['vivid/stasis']" />
<h2 class="uppercase text-xs opacity-50 mb-1 flex items-center">ScoreSaber</h2>
<ScoreSaberCard :value="stats['scoresaber']" />
</div>
</div>
</div>
<div ref="$glow" class="glow"></div>
<div ref="$shine" class="shine"></div>

<div class="text-xs opacity-20 text-center mb-3">last updated: {{ daysAgo(2024, 6, 29) }}</div>
</div>

</div>
Expand All @@ -73,6 +76,7 @@ import ScoreSaberCard from './cards/scoresaber.vue';
import SDVXCard from './cards/sdvx.vue';
import VividStasisCard from './cards/vividstasis.vue';
import Background from './Background.vue';
import ActivePill from './ActivePill.vue';
const $card = ref(null);
const $glow = ref(null);
Expand Down Expand Up @@ -153,6 +157,11 @@ const ez2onAverage = () => {
word-spacing: 0.4em;
}
.date-sub {
color: #9185A6;
letter-spacing: 0.08em;
}
.body {
perspective: 1500px;
background: linear-gradient(to bottom, #06090f,#090C15);
Expand Down

0 comments on commit 2042327

Please sign in to comment.