-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from Sun-Mountain/187-design-make-nav-and-foo…
…ter-responsive 187 design make nav and footer responsive
- Loading branch information
Showing
14 changed files
with
138 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,8 @@ | |
.flex-space-between { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.no-padding { | ||
padding: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,62 @@ | ||
<template> | ||
<nav> | ||
<v-app-bar | ||
:elevation="0" | ||
id="main-navigation" | ||
style="position:relative" | ||
:elevation="0" | ||
id="main-navigation" | ||
style="position:relative" | ||
> | ||
<div class="nav_logo_container"> | ||
<router-link to="/"> | ||
<img src="@/assets/images/lettuce_nav_logo.png" class="logo" /> | ||
<img | ||
src="@/assets/images/lettuce_nav_logo.png" | ||
class="logo" | ||
/> | ||
</router-link> | ||
</div> | ||
<v-spacer /> | ||
<div class="nav_links_container"> | ||
<router-link | ||
<v-spacer v-show="mq.mdPlus" /> | ||
<v-btn | ||
v-show="mq.smMinus" | ||
:icon="showNav ? 'mdi:mdi-chevron-up-circle' : 'mdi:mdi-chevron-down-circle'" | ||
@click="showNav = !showNav" | ||
></v-btn> | ||
<v-expand-transition> | ||
<div class="nav_links_container" v-show="mq.mdPlus || showNav"> | ||
<router-link | ||
v-for="link in globalLinks" | ||
v-bind:key="link.name" | ||
v-bind:to="link.path" | ||
> | ||
> | ||
{{ link.name }} | ||
</router-link> | ||
<router-link | ||
v-for="link in loggedInLinks" | ||
v-bind:key="link.name" | ||
v-bind:to="link.path" | ||
v-show="authStore.currentUser" | ||
> | ||
{{ link.name }} | ||
</router-link> | ||
<router-link | ||
v-for="link in publicLinks" | ||
v-bind:key="link.name" | ||
v-bind:to="link.path" | ||
v-show="!authStore.currentUser" | ||
> | ||
{{ link.name }} | ||
</router-link> | ||
<v-btn | ||
@click="authStore.logout()" | ||
v-show="authStore.currentUser" | ||
> | ||
Logout | ||
</v-btn> | ||
</div> | ||
</router-link> | ||
<router-link | ||
v-for="link in loggedInLinks" | ||
v-bind:key="link.name" | ||
v-bind:to="link.path" | ||
v-show="authStore.currentUser" | ||
> | ||
{{ link.name }} | ||
</router-link> | ||
<router-link | ||
v-for="link in publicLinks" | ||
v-bind:key="link.name" | ||
v-bind:to="link.path" | ||
v-show="!authStore.currentUser" | ||
> | ||
{{ link.name }} | ||
</router-link> | ||
</div> | ||
</v-expand-transition> | ||
</v-app-bar> | ||
</nav> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
import { globalLinks, loggedInLinks, publicLinks } from '@/assets/json'; | ||
import { useAuthStore } from '@/store'; | ||
import { useMq } from "vue3-mq"; | ||
const mq = useMq(); | ||
const authStore = useAuthStore(); | ||
const showNav = ref(false) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.