Programmatically build links. Styling Changes
This commit is contained in:
@@ -6,63 +6,25 @@
|
||||
:breakpoint="500"
|
||||
@update:model-value="$emit('drawer-toggle')"
|
||||
>
|
||||
<!-- TODO: Build this programmatically -->
|
||||
<q-scroll-area class="fit">
|
||||
<q-list padding class="menu-list">
|
||||
<q-item clickable v-ripple>
|
||||
<q-item-section avatar>
|
||||
<q-icon name="account_circle" />
|
||||
</q-item-section>
|
||||
<template v-for="link in links" :key="link.name">
|
||||
<q-item clickable v-ripple :to="link.to">
|
||||
<q-item-section avatar>
|
||||
<q-icon :name="link.icon" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section> Profile </q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item active clickable v-ripple>
|
||||
<q-item-section avatar>
|
||||
<q-icon name="sailing" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section> Boats </q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item clickable v-ripple>
|
||||
<q-item-section avatar>
|
||||
<q-icon name="calendar_month" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section> Bookings </q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item clickable v-ripple>
|
||||
<q-item-section avatar>
|
||||
<q-icon name="verified" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section> Certifications </q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item clickable v-ripple>
|
||||
<q-item-section avatar>
|
||||
<q-icon name="checklist" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section> Checklists </q-item-section>
|
||||
</q-item>
|
||||
<q-item clickable v-ripple>
|
||||
<q-item-section avatar>
|
||||
<q-icon name="info_outline" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section> Reference </q-item-section>
|
||||
</q-item>
|
||||
<q-item-section> {{ link.name }} </q-item-section>
|
||||
</q-item>
|
||||
</template>
|
||||
</q-list>
|
||||
</q-scroll-area>
|
||||
</q-drawer>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import { links } from 'components/navlinks';
|
||||
|
||||
defineProps(['drawer']);
|
||||
defineEmits(['drawer-toggle']);
|
||||
@@ -70,6 +32,7 @@ defineEmits(['drawer-toggle']);
|
||||
defineComponent({
|
||||
name: 'LeftDrawer',
|
||||
});
|
||||
console.log(links);
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
|
||||
Reference in New Issue
Block a user