sql server + platine v2
All checks were successful
Deploy App / build (push) Successful in 2m15s
Deploy App / deploy (push) Successful in 27s

This commit is contained in:
valere
2026-02-06 22:52:02 +01:00
parent b8cc3d277d
commit 7fa6f6ccc8
14 changed files with 960 additions and 31 deletions

19
app/pages/random.vue Normal file
View File

@@ -0,0 +1,19 @@
<template>
<section class="flex justify-center items-center h-screen">
<div class="aspect-square size-[100vmin] max-h-screen max-w-screen overflow-hidden">
<Platine :card="card" />
</div>
</section>
</template>
<script setup lang="ts">
import type { Card } from '~~/types/types'
const { data: card, pending, error } = await useFetch<Card>('/api/card/random')
useHead({
title: computed(() =>
card.value ? `${card.value.artist} - ${card.value.title}` : 'Loading...'
)
})
</script>