59 lines
1.0 KiB
Vue
59 lines
1.0 KiB
Vue
<template>
|
|
<RouterLink to="/create" class="fab glow-border" aria-label="Create event">
|
|
<span class="fab__inner glass-inner">
|
|
<span class="fab__icon" aria-hidden="true">+</span>
|
|
</span>
|
|
</RouterLink>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { RouterLink } from 'vue-router'
|
|
</script>
|
|
|
|
<style scoped>
|
|
.fab {
|
|
position: fixed;
|
|
bottom: calc(1.2rem + env(safe-area-inset-bottom));
|
|
right: 1.2rem;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
color: var(--color-text-on-gradient);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
z-index: 100;
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.fab__inner {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.fab:hover {
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.fab:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.fab:focus-visible {
|
|
outline: 2px solid #fff;
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
|
|
.fab__icon {
|
|
font-size: 1.8rem;
|
|
font-weight: 300;
|
|
line-height: 1;
|
|
}
|
|
</style>
|