| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <template>
- <div class="container-grey" v-if="!mdAndDown">
- <v-row>
- <v-col cols="12" class="buttons-col">
- <nuxt-link
- to="https://admin.opentalent.fr/#/login/"
- style="text-decoration: none"
- >
- <v-btn class="btn btn-common btn-login" text>
- <v-icon left class="fas fa-user mr-4"></v-icon> Se connecter<br />aux
- logiciels
- </v-btn>
- </nuxt-link>
- <div class="vertical-bar" />
- <NuxtLink to="/agenda-culturel" style="text-decoration: none">
- <v-btn class="btn btn-common btn-subscribe ml-4 mr-2" text>
- <v-icon left class="fas fa-calendar mr-4"></v-icon>Agenda Culturel
- </v-btn>
- </NuxtLink>
- </v-col>
- </v-row>
- </div>
- <v-row class="menu" v-if="!mdAndDown">
- <v-col cols="3">
- <nuxt-link to="/">
- <v-img class="logo" src="/images/logo/navigation-logo.png" />
- </nuxt-link>
- </v-col>
- <v-col cols="9">
- <v-menu open-on-hover>
- <template v-slot:activator="{ props }">
- <nuxt-link v-bind="props" class="link-style"
- >Nos logiciels
- </nuxt-link>
- </template>
- <v-list class="menu-list">
- <nuxt-link
- v-for="software in softwareLinks"
- :key="software.name"
- :to="software.href"
- class="link-styles"
- >
- <v-list-item>
- <v-list-item-title>{{ software.name }}</v-list-item-title>
- </v-list-item>
- </nuxt-link>
- </v-list>
- </v-menu>
- <v-menu open-on-hover>
- <template v-slot:activator="{ props }">
- <nuxt-link v-bind="props" class="link-style">Nos services </nuxt-link>
- </template>
- <v-list>
- <nuxt-link
- v-for="service in serviceLinks"
- :key="service.name"
- :to="service.href"
- class="link-styles"
- >
- <v-list-item>
- <v-list-item-title>{{ service.name }}</v-list-item-title>
- </v-list-item>
- </nuxt-link>
- </v-list>
- </v-menu>
- <v-menu open-on-hover>
- <template v-slot:activator="{ props }">
- <nuxt-link v-bind="props" class="link-style">à propos</nuxt-link>
- </template>
- <v-list>
- <nuxt-link
- v-for="info in aboutLinks"
- :key="info.name"
- :to="info.href"
- class="link-styles"
- >
- <v-list-item>
- <v-list-item-title>{{ info.name }}</v-list-item-title>
- </v-list-item>
- </nuxt-link>
- </v-list>
- </v-menu>
- <nuxt-link class="link-style" to="/actualites">Actualités</nuxt-link>
- <nuxt-link class="link-style" to="/nous-contacter">Contact</nuxt-link>
- </v-col>
- </v-row>
- <v-app v-if="mdAndDown" class="navigation-sm">
- <v-app-bar app>
- <v-app-bar-nav-icon @click="toggleDrawer"></v-app-bar-nav-icon>
- <nuxt-link to="/">
- <v-img class="logo-md" src="/images/logo/navigation-logo.png" />
- </nuxt-link>
- <nuxt-link
- to="https://admin.opentalent.fr/#/login/"
- style="text-decoration: none"
- >
- <v-btn text>
- <v-icon left class="fas fa-user icon"></v-icon>
- </v-btn>
- </nuxt-link>
- <v-btn text>
- <v-icon left class="fas fa-phone icon"></v-icon>
- </v-btn>
- <nuxt-link to="/agenda-culturel" style="text-decoration: none">
- <v-btn text>
- <v-icon left class="fas fa-calendar icon"></v-icon>
- </v-btn>
- </nuxt-link>
- </v-app-bar>
- <!-- Tiroir de navigation principal -->
- <v-navigation-drawer v-model="drawer" app>
- <v-list nav dense>
- <v-list-item
- v-for="(item, index) in menuItems"
- :key="item.id"
- @click="selectMenu(item.id)"
- >
- <v-list-item-title>
- {{ item.label }}
- </v-list-item-title>
- </v-list-item>
- </v-list>
- </v-navigation-drawer>
- <!-- Tiroir de sous-menu -->
- <v-navigation-drawer v-model="subMenuDrawer" app right temporary>
- <v-list nav dense>
- <v-list-item>
- <v-list-item-title @click="closeSubMenu">Retour</v-list-item-title>
- </v-list-item>
- <nuxt-link
- v-for="(subItem, subIndex) in subMenus[currentMenu]"
- :key="subIndex"
- :to="subItem.href"
- style="text-decoration: none !important; color: black"
- >
- <v-list-item>
- <v-list-item-title>{{ subItem.name }}</v-list-item-title>
- </v-list-item>
- </nuxt-link>
- </v-list>
- </v-navigation-drawer>
- </v-app>
- </template>
- <script setup>
- import { useDisplay } from "vuetify";
- const { mdAndDown } = useDisplay();
- const softwareLinks = ref([
- { name: "Opentalent Artist", href: "/opentalent_artist" },
- { name: "Opentalent School", href: "/opentalent_school" },
- { name: "Opentalent Manager", href: "/opentalent_manager" },
- ]);
- const serviceLinks = ref([
- { name: "Formations", href: "/formations" },
- { name: "Webinaires", href: "/webinaires" },
- ]);
- const aboutLinks = ref([
- { name: "Qui sommes-nous", href: "/qui-sommes-nous" },
- { name: "Nous rejoindre", href: "/nous-rejoindre" },
- ]);
- const drawer = ref(false);
- const subMenuDrawer = ref(false);
- const currentMenu = ref("");
- const menuItems = ref([
- { id: "logiciels", label: "Nos logiciels" },
- { id: "services", label: "Nos services" },
- { id: "about", label: "À propos" },
- { id: "actualites", label: "Actualités" },
- { id: "contact", label: "Contact" },
- ]);
- const subMenus = ref({
- logiciels: [
- { name: "Opentalent Artist", href: "/opentalent_artist" },
- { name: "Opentalent School", href: "/opentalent_school" },
- { name: "Opentalent Manager", href: "/opentalent_manager" },
- ],
- services: [
- { name: "Formations", href: "/formations" },
- { name: "Webinaires", href: "/webinaires" },
- ],
- propos: [
- { name: "Qui sommes-nous", href: "/qui-sommes-nous" },
- { name: "Nous rejoindre", href: "/nous-rejoindre" },
- ],
- });
- const toggleDrawer = () => {
- drawer.value = !drawer.value;
- };
- const selectMenu = (id) => {
- if (subMenus.value[id]) {
- currentMenu.value = id;
- subMenuDrawer.value = true;
- drawer.value = false;
- } else {
- switch (id) {
- case "actualites":
- window.location.href = "/actualites";
- break;
- case "contact":
- window.location.href = "/nous-contacter";
- break;
- }
- }
- };
- const closeSubMenu = () => {
- subMenuDrawer.value = false;
- drawer.value = true;
- };
- </script>
- <style scoped>
- .navigation-sm {
- background-color: #ffffff;
- position: fixed;
- top: 0;
- }
- /* =============== CONTAINER BUTTON =============== */
- .container-grey {
- background-color: #dbdbdb;
- }
- /* =============== Button Styles =============== */
- .buttons-col {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- }
- .btn-common {
- display: flex;
- flex-direction: row;
- align-items: center;
- border-radius: 6px;
- font-family: "Barlow";
- font-style: normal;
- font-weight: 700;
- font-size: 0.7rem;
- }
- .btn-login {
- background: #091d20;
- color: white;
- }
- .vertical-bar {
- width: 0px;
- height: 3rem;
- border: 0.5px solid rgba(14, 45, 50, 0.4);
- margin-left: 10px;
- margin-top: 0.2rem;
- }
- .btn-subscribe {
- background: #9edbdd;
- }
- /* =============== menu Styles =============== */
- .menu {
- display: flex;
- align-items: center;
- background-color: #ffffff;
- }
- .v-list-item-title {
- font-family: "Barlow";
- font-style: normal;
- font-weight: 500;
- font-size: 0.9rem;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: #0e2d32;
- }
- .common-styles {
- font-family: "Barlow";
- font-style: normal;
- font-size: 1.1rem;
- padding: 0.1rem;
- font-weight: 700;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: #0e2d32;
- text-decoration: none !important;
- }
- .link-style {
- font-family: "Barlow";
- font-style: normal;
- font-size: 1rem;
- margin-right: 3rem;
- font-weight: 700;
- letter-spacing: 0.05em;
- text-transform: uppercase;
- color: #0e2d32;
- text-decoration: none !important;
- cursor: pointer;
- }
- .link-styles {
- font-family: "Barlow";
- font-style: normal;
- text-decoration: none !important;
- color: #0e2d32;
- }
- .logo {
- height: 8rem;
- }
- .logo-md {
- width: 150px;
- height: 300px;
- }
- .icon {
- color: #000000;
- }
- </style>
|