Skip to content

Commit

Permalink
Add NavBar from figma
Browse files Browse the repository at this point in the history
  • Loading branch information
keoinn committed Oct 4, 2024
1 parent c3b8948 commit 728d742
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 44 deletions.
Binary file added src/assets/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 73 additions & 43 deletions src/components/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -1,48 +1,78 @@
<script setup>
import { reactive } from "vue";
const user = reactive({
initials: "JD",
fullName: "John Doe",
email: "[email protected]",
})
<template>
<div class="navigation-container">
<div class="navigation-bar">
<div class="navigation-text text-wrapper-1">Education</div>
<div class="navigation-text text-wrapper-2">Event</div>
<div class="navigation-text text-wrapper-3">Lab</div>
<div class="navigation-text text-wrapper-4">Challenge</div>
<div class="navigation-text text-wrapper-5">Tour</div>
<div class="navigation-text text-wrapper-6">About</div>
</div>
</div>
</template>
<style scoped lang="scss">
.navigation-container {
position: absolute;
background-color: #2f2f2fb2;
border: 2px solid;
top: 25px;
right: 25px;
border-color: #ffffff;
border-radius: 25px;
box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.5);
height: 50px;
width: 750px;
z-index: 100;
import {useAppStore} from '@/stores/app.js'
const appStore = useAppStore()
.navigation-bar {
margin-top: 15px;
margin-left: 40px;
height: 25px;
position: relative;
width: 660px;
z-index: 101;
}
</script>
.navigation-text {
color: rgba(158, 158, 158, 1);
font-family: "Gilroy", Helvetica;
font-size: 20px;
font-style: normal;
font-weight: 800;
height: 25px;
letter-spacing: 2px;
line-height: normal;
position: absolute;
text-align: right;
top: -1px;
transition: color 0.5s ease-out;
&:hover {
cursor: pointer;
color: white;
}
}
<template>
<v-app-bar class="px-1">
<v-app-bar-nav-icon icon="mdi-menu" @click="appStore.changeOpenNav()"></v-app-bar-nav-icon>
<v-app-bar-title>Smorrery WebApp</v-app-bar-title>
<!-- <v-text-field prepend-icon="mdi-magnify" single-line></v-text-field> -->
.text-wrapper-1{
left: 0;
}
.text-wrapper-2 {
left: 155px;
}
<!-- <v-menu min-width="150px" rounded>
<template v-slot:activator="{ props }">
<v-btn icon v-bind="props">
<v-avatar color="brown" size="large">
<span class="text-h5">{{ user.initials }}</span>
</v-avatar>
</v-btn>
</template>
<v-card>
<v-card-text>
<div class="mx-auto text-center">
<v-avatar color="brown">
<span class="text-h5">{{ user.initials }}</span>
</v-avatar>
<h3>{{ user.fullName }}</h3>
<p class="text-caption mt-1">
{{ user.email }}
</p>
<v-divider class="my-3"></v-divider>
<v-btn rounded variant="text"> Edit Account </v-btn>
<v-divider class="my-3"></v-divider>
<v-btn rounded variant="text"> Disconnect </v-btn>
</div>
</v-card-text>
</v-card>
</v-menu> -->
</v-app-bar>
</template>
.text-wrapper-3 {
left: 261px;
}
.text-wrapper-4 {
left: 345px;
}
.text-wrapper-5 {
left: 503px;
}
.text-wrapper-6 {
left: 594px;
}
}
</style>
2 changes: 2 additions & 0 deletions src/components/AppHeaderLogo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<template>
</template>
2 changes: 1 addition & 1 deletion src/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<v-app>
<v-main>
<AppHeader />
<AppNavigation />
<!-- <AppNavigation /> -->
<router-view />
</v-main>

Expand Down

0 comments on commit 728d742

Please sign in to comment.