Commit cdbad9e1 authored by Christophe Benz's avatar Christophe Benz
Browse files

Make app bar title and hamburger menu configurable

parent 7f53435e
# basePath: /vitrine # or use VITRINE_BASE_PATH environment variable
title: Hackathon XYZ
appBar:
title:
text: Hackathon XYZ
# The following classes are provided by TailwindCSS
# See https://tailwindcss.com/docs/font-family and next doc sections
# Or use custom classes
classes: text-black tracking-widest font-thin text-lg
hamburgerMenu:
color: text-black
pages:
- slug: ""
appBarTitle: Home
......
......@@ -48,7 +48,7 @@
small
flat
remove="p-1 h-4 w-4"
iconClass="text-white"
iconClass={config.appBar.hamburgerMenu.color}
iconClasses={i => i.replace("p-4", "p-3").replace("m-4", "m-3")}
text
on:click={() => {
......@@ -56,11 +56,16 @@
showNavMobile = !showNavMobile
}} />
</div>
<a href="." class="text-white tracking-widest font-thin text-lg lg:px-8">
{config.title}
<a href="." class="{config.appBar.title.classes} lg:px-8">
{config.appBar.title.text}
</a>
<Spacer />
<Tabs class="hidden lg:flex" items={navMenu} bind:selected={path} />
<Tabs
class="hidden lg:flex"
color="black"
notSelectedColor="black"
items={navMenu}
bind:selected={path} />
</AppBar>
{#if $bp}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment