add default layout
All checks were successful
Deploy App / build (push) Successful in 2m20s
Deploy App / deploy (push) Successful in 14s

This commit is contained in:
valere
2025-10-29 19:37:37 +01:00
parent 25d56ec4ef
commit 9771c799f2
5 changed files with 11 additions and 19 deletions

32
app/layouts/default.vue Normal file
View File

@@ -0,0 +1,32 @@
<template>
<div class="w-full min-h-screen flex flex-col items-center bg-gray-50">
<!-- Header avec logo -->
<header class="w-full py-4 px-6 bg-white shadow-sm">
<div class="max-w-7xl mx-auto w-full flex justify-center">
<div @click="navigateToHome" class="cursor-pointer inline-block">
<logo />
</div>
</div>
</header>
<!-- Contenu principal -->
<main class="w-full max-w-7xl flex-1 p-6">
<slot />
</main>
<!-- Player de musique fixe en bas -->
<SearchModal />
<Loader />
<Player class="w-full border-t border-gray-200" />
</div>
</template>
<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const navigateToHome = () => {
router.push('/')
}
</script>