mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-18 17:47:54 +01:00
Noogle: add tailwind, rework design
This commit is contained in:
55
tests/gui/vuejs/noogle/src/layouts/ThreeColumnLayout.vue
Normal file
55
tests/gui/vuejs/noogle/src/layouts/ThreeColumnLayout.vue
Normal file
@@ -0,0 +1,55 @@
|
||||
<script setup>
|
||||
import Donate from "@/components/Donate.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="three-column-layout">
|
||||
<header>
|
||||
|
||||
<!-- <AppLogo />-->
|
||||
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<aside>
|
||||
<slot name="aside" />
|
||||
<!-- <AppFooter /> -->
|
||||
</aside>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.three-column-layout {
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
"header"
|
||||
"main"
|
||||
"aside";
|
||||
|
||||
header {
|
||||
grid-area: header;
|
||||
margin-top: 30px;
|
||||
}
|
||||
main {
|
||||
grid-area: main;
|
||||
margin-top: 10px;
|
||||
padding: 20px;
|
||||
|
||||
}
|
||||
aside {
|
||||
grid-area: aside;
|
||||
margin-top: 10px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media (min-width: 768px) {
|
||||
grid-template-columns: 1fr 3fr 1fr;
|
||||
grid-template-areas: "header main aside";
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user