library/frontend/app.vue

97 lines
1.5 KiB
Vue
Raw Permalink Normal View History

2023-05-22 12:17:07 -07:00
<template>
2023-05-22 17:23:18 -07:00
<div class="page">
2023-05-22 12:17:07 -07:00
2023-05-22 17:23:18 -07:00
<header>
2023-07-15 14:02:49 -07:00
<h1>
<NuxtLink to="/">Bibliothecary</NuxtLink>
</h1>
2023-05-22 12:17:07 -07:00
2023-05-22 17:23:18 -07:00
<nav>
<NuxtLink to="/patrons">Patrons</NuxtLink>
2023-07-13 20:25:53 -07:00
<NuxtLink to="/medias">Catalog</NuxtLink>
2023-05-22 17:23:18 -07:00
<NuxtLink to="/account">Account</NuxtLink>
</nav>
</header>
<main>
2023-05-22 21:55:41 -07:00
<NuxtPage />
2023-05-22 17:23:18 -07:00
</main>
<footer>&copy; 2023</footer>
2023-05-22 12:17:07 -07:00
</div>
</template>
2023-05-22 17:23:18 -07:00
2023-07-13 14:00:38 -07:00
<!------------------------------------------------------------------ STYLE ---->
2023-05-22 17:23:18 -07:00
<style lang="postcss">
2023-05-22 21:55:41 -07:00
:root {
--gradient: linear-gradient(to bottom right, #f472b6, #f0abfc, #22d3ee);
}
2023-05-22 17:23:18 -07:00
.page {
@apply min-h-screen w-screen p-5 flex flex-col gap-y-5;
@apply bg-gradient-to-br from-pink-400 via-fuchsia-300 to-cyan-400;
}
header,
2023-05-22 21:55:41 -07:00
section {
2023-05-22 17:23:18 -07:00
@apply bg-white bg-opacity-30;
@apply rounded-lg;
}
header {
@apply h-12 flex justify-between items-center px-3;
}
main {
2023-07-15 14:02:49 -07:00
@apply grow flex justify-center gap-x-5;
2023-05-22 21:55:41 -07:00
}
section {
2023-07-15 14:02:49 -07:00
@apply py-4 px-5;
2023-05-22 17:23:18 -07:00
}
footer {
@apply h-6;
@apply text-center italic opacity-50;
}
header h1,
nav a {
@apply opacity-70;
}
2023-07-15 14:02:49 -07:00
h1 {
2023-05-22 21:55:41 -07:00
@apply text-2xl uppercase italic font-bold;
}
2023-07-15 14:02:49 -07:00
h2 {
@apply text-xl font-bold;
}
2023-05-22 17:23:18 -07:00
header h1 {
2023-05-22 21:55:41 -07:00
@apply tracking-wide;
2023-05-22 17:23:18 -07:00
@apply transition-[letter-spacing] hover:tracking-widest;
}
nav a {
@apply mx-2;
2023-05-22 21:55:41 -07:00
@apply transition-all hover:opacity-100 hover:border-b-pink-400 hover:border-b-2;
}
main a {
@apply transition-all border-b border-b-pink-400;
@apply hover:border-b-cyan-400;
}
p {
2023-07-15 14:02:49 -07:00
@apply mb-2 last:mb-0;
}
hr {
@apply border-pink-400/40;
@apply mt-2 mb-3;
2023-05-22 17:23:18 -07:00
}
</style>