-
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.
feat: Integrate Konsta UI components and Tailwind CSS for improved st…
…yling and layout
- Loading branch information
Showing
20 changed files
with
771 additions
and
638 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 |
---|---|---|
@@ -1,71 +1,29 @@ | ||
<script setup lang="ts"> | ||
const currentRoute = useRoute() | ||
import { kTabbar, kTabbarLink } from 'konsta/vue'; | ||
const currentRoute = useRoute(); | ||
</script> | ||
|
||
<template> | ||
<nav class="tab-bar"> | ||
<div class="item" :class="{ active: currentRoute.path === '/' }"> | ||
<nuxt-link to="/"> | ||
<Icon name="i-tabler-home"/> | ||
</nuxt-link> | ||
<span>Accueil</span> | ||
</div> | ||
<div class="item" :class="{ active: currentRoute.path === '/results' }"> | ||
<nuxt-link to="/results"> | ||
<Icon name="i-tabler-chart-bar"/> | ||
</nuxt-link> | ||
<span>Analyses</span> | ||
</div> | ||
<div class="item" :class="{ active: currentRoute.path === '/info' }"> | ||
<nuxt-link to="/info"> | ||
<Icon name="i-tabler-info-circle"/> | ||
</nuxt-link> | ||
<span>Infos</span> | ||
</div> | ||
</nav> | ||
</template> | ||
|
||
<style scoped> | ||
nav { | ||
display: flex; | ||
justify-content: space-around; | ||
background-color: var(--tabbar-color); | ||
position: fixed; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
padding: 10px 0; | ||
z-index: 2; | ||
width: 100vw; | ||
.item { | ||
transition: all 0.1s; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
<k-tabbar :labels="true" :icons="true" class="left-0 bottom-0 fixed"> | ||
<k-tabbar-link :active="currentRoute.path === '/'" @click="navigateTo('/')"> | ||
<template #icon> | ||
<Icon name="i-tabler-home" class="text-2xl" /> | ||
</template> | ||
<template #label>Accueil</template> | ||
</k-tabbar-link> | ||
|
||
span:not(.iconify) { | ||
font-size: 13px; | ||
}; | ||
} | ||
<k-tabbar-link :active="currentRoute.path === '/results'" @click="navigateTo('/results')"> | ||
<template #icon> | ||
<Icon name="i-tabler-chart-bar" class="text-2xl" /> | ||
</template> | ||
<template #label>Analyses</template> | ||
</k-tabbar-link> | ||
|
||
a { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
text-decoration: none; | ||
color: var(--text-color); | ||
padding: 5px 15px; | ||
border-radius: 15px; | ||
.iconify { | ||
font-size: 24px; | ||
} | ||
} | ||
.item.active a { | ||
color: var(--cta-hover-color); | ||
background: var(--tabbar-active-color); | ||
} | ||
} | ||
</style> | ||
<k-tabbar-link :active="currentRoute.path === '/info'" @click="navigateTo('/info')"> | ||
<template #icon> | ||
<Icon name="i-tabler-info-circle" class="text-2xl" /> | ||
</template> | ||
<template #label>Infos</template> | ||
</k-tabbar-link> | ||
</k-tabbar> | ||
</template> |
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.