Further improved stylind of profile subnav buttons
fixed an issue with the router not routing to the personnel file page.
This commit is contained in:
@@ -17,7 +17,7 @@ export default {
|
|||||||
<template>
|
<template>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<div>
|
<div>
|
||||||
<profileSubNav link="profile" content="Home"></profileSubNav>
|
<profileSubNav link="home" content="Home"></profileSubNav>
|
||||||
<profileSubNav link="activityHistory" content="History"></profileSubNav>
|
<profileSubNav link="activityHistory" content="History"></profileSubNav>
|
||||||
<profileSubNav link="shadowbox" content="Shadowbox"></profileSubNav>
|
<profileSubNav link="shadowbox" content="Shadowbox"></profileSubNav>
|
||||||
</div>
|
</div>
|
||||||
@@ -36,7 +36,7 @@ export default {
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
#wrapper {
|
#wrapper {
|
||||||
/* position: fixed; */
|
position: fixed;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
|
|||||||
@@ -1,18 +1,24 @@
|
|||||||
<script>
|
<script>
|
||||||
import { RouterLink } from 'vue-router'
|
import { RouterLink } from 'vue-router'
|
||||||
|
import { Icon } from '@iconify/vue'
|
||||||
|
|
||||||
|
const iconName = "carbon:tool-kit"
|
||||||
export default {
|
export default {
|
||||||
props: ['link', 'content', 'active'],
|
props: ['link', 'content', 'active'],
|
||||||
components: {
|
components: {
|
||||||
RouterLink
|
RouterLink,
|
||||||
|
Icon
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
console.log(props.link);
|
console.log(props.link);
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<RouterLink :to="link">
|
<RouterLink :to="link">
|
||||||
<p class="ring-1 ring-blue rounded-md my-3 p-2 " :class="{ active: active }">{{ content }}</p>
|
<p class="text-white rounded-md my-3 p-2 hover:text-blue transition-all active:ring-1 active:ring-blue"
|
||||||
|
:class="{ active: active }">{{ content }}</p>
|
||||||
|
<Icon :icon="iconName"/>
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
</template>
|
</template>
|
||||||
@@ -15,7 +15,7 @@ export default createRouter({
|
|||||||
component: () => import('./components/ProfilePage/profile.vue'),
|
component: () => import('./components/ProfilePage/profile.vue'),
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/home',
|
||||||
name: 'personnel',
|
name: 'personnel',
|
||||||
component: () => import('./components/ProfilePage/personnel.vue')
|
component: () => import('./components/ProfilePage/personnel.vue')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import card from '../components/cards/Card.vue'
|
import card from '../components/cards/Card.vue';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user