feat(client): custom layouting

pull/108/head
kazuya kawaguchi 5 years ago
parent eabcdf5219
commit e389aa34b4

@ -21,7 +21,17 @@
<!-- TODO: make this button accessible --> <!-- TODO: make this button accessible -->
<div class="sidebar-mask" @click="toggleSidebar(false)" /> <div class="sidebar-mask" @click="toggleSidebar(false)" />
<main class="home" aria-labelledby="main-title" v-if="enableHome"> <main class="home" aria-labelledby="main-title" v-if="enableHome">
<Home /> <Home>
<template #hero>
<slot name="home-hero" />
</template>
<template #features>
<slot name="home-features" />
</template>
<template #footer>
<slot name="home-footer" />
</template>
</Home>
</main> </main>
<main v-else> <main v-else>
<Page> <Page>

@ -26,6 +26,7 @@
> >
<NavBarLink :item="actionLink" /> <NavBarLink :item="actionLink" />
</p> </p>
<slot name="hero" />
</header> </header>
<div <div
@ -40,6 +41,7 @@
<h2>{{ feature.title }}</h2> <h2>{{ feature.title }}</h2>
<p>{{ feature.details }}</p> <p>{{ feature.details }}</p>
</div> </div>
<slot name="features" />
</div> </div>
<div <div
@ -47,6 +49,7 @@
class="footer" class="footer"
> >
{{ data.footer }} {{ data.footer }}
<slot name="footer" />
</div> </div>
</template> </template>

Loading…
Cancel
Save