Skip to content
Snippets Groups Projects
default.vue 1.34 KiB
Newer Older
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
<template>
    <div class="app">
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
        <NavigationBar :breadcrumb="breadcrumb" :menus="menus" />
        <Nuxt keep-alive />
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
    </div>
</template>

<script>
export default {
  data() {
    return {
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
      breadcrumb: [],
      menus : [
          {
          title: 'Développement',
          items : [
              {path: '/chartjs',title: 'ChartJS'},
              {path: '/membres',title: 'Membres'}
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
          ]},
          {
          title: 'Un menu',
          items : [
              {path: '/lien',title: 'Un lien'},
              {path: '/autrelien',title: 'Un aure lien'}
          ]}
      ]
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
    }
  },
  created() {
    this.$nuxt.$on('changeRoute', (breadcrumb) => {
        this.breadcrumb = breadcrumb
    })
  }
}
</script>

<style lang="scss">
/* Define styles for the default root window element */
:root {
  --text-primary-color: var(--dark);
  --text-secondary-color: var(--secondary);
  --background-color-primary: var(--white);
  --background-color-secondary: #e9ecef;
  --element-size: 4rem;
  --menu-size: 320px;
}

/* Define styles for the root window with dark - mode preference */
:root.dark-theme {
  --text-primary-color: var(--white);
  --text-secondary-color: var(--secondary);
  --background-color-primary: var(--dark);
  --background-color-secondary: hsl(210, 16%, 60%);
}

Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
.app {
    transition: margin .5s ease-in-out;
}
</style>