feat: improve layout (#19)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
patak 2022-11-20 22:30:21 +01:00 committed by GitHub
parent 70daeeaed5
commit 2442c80bfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 25 deletions

View file

@ -1,21 +1,27 @@
<template>
<div h-full of-hidden>
<main grid="~ lg:cols-[1fr_40rem_1fr]" max-w-80rem mxa h-full>
<div>
<slot name="left">
<AccountMe />
</slot>
<div h-full>
<main flex w-full mxa h-full lg:max-w-80rem>
<div class="w-1/4" hidden lg:flex flex-col items-end>
<div fixed>
<slot name="left">
<AccountMe />
</slot>
</div>
</div>
<div h-full of-auto border="l r border">
<slot />
</div>
<div flex="~ col">
<slot name="right">
<NavTitle p5 />
<NavSide border="y border" py8 />
<div flex-auto />
<NavFooter />
</slot>
<div class="lg:w-3/4" flex>
<div h-full border="l r border" class="w-full md:w-2/3">
<slot />
</div>
<div hidden md:flex="~ col" class="w-1/3">
<div fixed>
<slot name="right">
<NavTitle p5 />
<NavSide border="y border" py8 />
<div flex-auto />
<NavFooter />
</slot>
</div>
</div>
</div>
</main>
</div>