-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
142 additions
and
72 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<template> | ||
<div class="rail"> | ||
<div> | ||
<div | ||
v-for="destination of destinations" | ||
class="destination" | ||
role="menuitem" | ||
@click="emit('select', destination.id)" | ||
> | ||
<div class="icon" :class="{ 'selected': destination.id === selected }"> | ||
<md-icon | ||
class="w-6 h-6 text-on-surface-variant" | ||
v-html="icon(destination.icon, destination.id !== selected)" | ||
/> | ||
</div> | ||
<h5>{{ destination.title }}</h5> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { icon } from '~/utils/icon'; | ||
defineProps<{ | ||
destinations: NavigationRailItem[], | ||
selected: string | ||
}>(); | ||
const emit = defineEmits(["select"]); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.rail { | ||
@apply bg-surface dark:bg-background py-4 min-w-[80px] pt-6; | ||
transition: transform .2s cubic-bezier(.2,0,0,1); | ||
} | ||
.destination { | ||
@apply h-14 grid justify-center cursor-pointer; | ||
margin: -2px auto 14px; | ||
&:hover .icon { | ||
@apply bg-surface-container-high; | ||
} | ||
.icon { | ||
@apply h-8 w-14 flex items-center justify-center rounded-2xl mb-1 mx-3; | ||
transition: font-variation-settings .2s cubic-bezier(.2,0,0,1); | ||
&.selected { | ||
@apply bg-secondary-container; | ||
} | ||
} | ||
h5 { | ||
@apply text-xs font-medium text-on-surface text-center px-2; | ||
} | ||
} | ||
</style> |
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
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
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
748b35b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
csps – ./
csps-git-main-csps.vercel.app
csps-csps.vercel.app
ucmncsps.org