initiation librodrome

This commit is contained in:
Yvv
2026-02-20 12:55:10 +01:00
commit 35e2897a73
208 changed files with 18951 additions and 0 deletions

28
app/layouts/admin.vue Normal file
View File

@@ -0,0 +1,28 @@
<template>
<div class="admin-layout">
<AdminSidebar />
<main class="admin-main">
<slot />
</main>
</div>
</template>
<style scoped>
.admin-layout {
display: grid;
grid-template-columns: 240px 1fr;
min-height: 100dvh;
}
.admin-main {
padding: 2rem;
overflow-y: auto;
max-height: 100dvh;
}
@media (max-width: 768px) {
.admin-layout {
grid-template-columns: 1fr;
}
}
</style>

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

@@ -0,0 +1,15 @@
<template>
<div class="app-layout grid grid-cols-1 min-h-dvh">
<LayoutTheHeader />
<main class="pb-[var(--player-height)]">
<slot />
</main>
<LayoutTheFooter />
</div>
</template>
<style scoped>
.app-layout {
grid-template-rows: auto 1fr auto;
}
</style>

53
app/layouts/reading.vue Normal file
View File

@@ -0,0 +1,53 @@
<template>
<div class="app-layout grid grid-cols-1 min-h-dvh">
<LayoutTheHeader />
<div class="reading-layout pb-[var(--player-height)]">
<aside class="chapter-sidebar hidden lg:block">
<BookChapterNav />
</aside>
<main class="reading-main">
<slot />
</main>
</div>
<LayoutTheFooter />
</div>
</template>
<style scoped>
.app-layout {
grid-template-rows: auto 1fr auto;
}
.reading-layout {
display: grid;
grid-template-columns: 1fr;
max-width: 100%;
}
@media (min-width: 1024px) {
.reading-layout {
grid-template-columns: var(--sidebar-width) 1fr;
}
}
.chapter-sidebar {
position: sticky;
top: var(--header-height);
height: calc(100dvh - var(--header-height));
overflow-y: auto;
border-right: 1px solid hsl(0 0% 100% / 0.08);
padding: 1.5rem;
}
.reading-main {
padding: 2rem 1.5rem;
max-width: 65ch;
margin: 0 auto;
}
@media (min-width: 768px) {
.reading-main {
padding: 3rem 2rem;
}
}
</style>