feat(ui): FRO-35 Animations (#22)
Added animations for mainmenu Co-authored-by: LQ63 <lkhermann@web.de> Reviewed-on: #22 Co-authored-by: lq64 <lq@blackhole.local> Co-committed-by: lq64 <lq@blackhole.local>
This commit is contained in:
@@ -39,12 +39,20 @@ const navigateTo = (routeName: string) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="row q-col-gutter-md justify-center" style="width: 100%; max-width: 1000px;">
|
||||
<transition-group
|
||||
appear
|
||||
enter-active-class="animate__animated animate__fadeIn"
|
||||
leave-active-class="animate__animated animate__fadeOut"
|
||||
|
||||
tag="div"
|
||||
class="row q-col-gutter-md justify-center"
|
||||
style="width: 100%; max-width: 1000px;"
|
||||
>
|
||||
<div
|
||||
v-for="(item, index) in menuItems"
|
||||
:key="index"
|
||||
class="col-12 col-sm-6 col-md-4"
|
||||
:style="{ animationDuration: '1.6s', animationDelay: `${index * 0.3 + 0.5}s` }"
|
||||
>
|
||||
<q-card
|
||||
class="menu-card bg-dark text-white q-pa-sm cursor-pointer"
|
||||
@@ -68,7 +76,7 @@ const navigateTo = (routeName: string) => {
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</div>
|
||||
</div>
|
||||
</transition-group>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
@@ -77,7 +85,6 @@ const navigateTo = (routeName: string) => {
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
/* Hover-Effekt für die Karten */
|
||||
.menu-card:hover {
|
||||
transform: translateY(-5px);
|
||||
background-color: #2c3e50 !important;
|
||||
|
||||
@@ -12,7 +12,7 @@ import { createPinia } from 'pinia'
|
||||
import axios from 'axios'
|
||||
import VueAxios from 'vue-axios'
|
||||
import {useUserInfo} from "@/composables/useUserInfo.ts";
|
||||
|
||||
import 'animate.css/animate.min.css';
|
||||
const app = createApp(App)
|
||||
const pinia = createPinia()
|
||||
|
||||
|
||||
@@ -14,10 +14,26 @@ import UserStatusArea from '../components/User.vue'
|
||||
</q-header>
|
||||
|
||||
<q-page-container>
|
||||
<q-page class="flex justify-start items-center column q-pa-md"> <header class="text-center q-mb-xl q-mt-md"> <h1 class="game-title text-white q-my-none">
|
||||
KnockOutWhist
|
||||
</h1>
|
||||
<q-page class="flex justify-start items-center column q-pa-md">
|
||||
|
||||
|
||||
<header class="text-center q-mb-xl q-mt-md">
|
||||
<transition
|
||||
appear
|
||||
enter-active-class="animate__fadeInDown"
|
||||
leave-active-class="animate__fadeOutUp"
|
||||
>
|
||||
<div
|
||||
class="animate__animated"
|
||||
:style="{ animationDuration: '1.6s' }"
|
||||
>
|
||||
<h1 class="game-title text-white q-my-none">
|
||||
KnockOutWhist
|
||||
</h1>
|
||||
</div>
|
||||
</transition>
|
||||
</header>
|
||||
|
||||
<router-view></router-view>
|
||||
</q-page>
|
||||
</q-page-container>
|
||||
|
||||
Reference in New Issue
Block a user