Skip to content

Commit 65f76f5

Browse files
authored
CHANGE: lang animation (stereum-dev#1874)
1 parent 4fc4a2a commit 65f76f5

File tree

13 files changed

+28
-90
lines changed

13 files changed

+28
-90
lines changed
Loading
-595 KB
Binary file not shown.
-1.35 MB
Binary file not shown.
-773 KB
Binary file not shown.

launcher/public/output.css

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,10 +2050,6 @@ video {
20502050
width: 66.666667%;
20512051
}
20522052

2053-
.w-40{
2054-
width: 10rem;
2055-
}
2056-
20572053
.w-5{
20582054
width: 1.25rem;
20592055
}
@@ -2166,6 +2162,10 @@ video {
21662162
width: 390px;
21672163
}
21682164

2165+
.w-\[40\%\]{
2166+
width: 40%;
2167+
}
2168+
21692169
.w-\[400px\]{
21702170
width: 400px;
21712171
}
@@ -2194,10 +2194,6 @@ video {
21942194
width: 60%;
21952195
}
21962196

2197-
.w-\[65\%\]{
2198-
width: 65%;
2199-
}
2200-
22012197
.w-\[70px\]{
22022198
width: 70px;
22032199
}
@@ -2228,14 +2224,6 @@ video {
22282224
width: 100vw;
22292225
}
22302226

2231-
.w-\[35\%\]{
2232-
width: 35%;
2233-
}
2234-
2235-
.w-\[40\%\]{
2236-
width: 40%;
2237-
}
2238-
22392227
.min-w-\[100px\]{
22402228
min-width: 100px;
22412229
}
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<template>
2-
<div class="w-screen h-screen grid grid-cols-12 grid-rows-12 items-center bg-[#336666] rounded-md relative">
2+
<div
3+
class="w-screen h-screen grid grid-cols-12 grid-rows-12 items-center bg-[#336666] rounded-md relative"
4+
>
35
<LogoSection />
46
<MenuSection />
5-
<EntryAnimation v-if="langStore.isEntryAnimationActive" />
6-
<div class="col-start-11 col-span-full row-start-11 row-span-full flex justify-center items-center">
7+
<div
8+
class="col-start-11 col-span-full row-start-11 row-span-full flex justify-center items-center"
9+
>
710
<div
811
class="w-[150px] h-14 bg-[#2f5a5a] hover:bg-[#244343] border-2 border-gray-400 rounded-full shadow-md shadow-[#1e2b2b] flex justify-center items-center cursor-pointer transition-all duration-300 ease-in-out hover:shadow-lg active:shadow-none active:scale-95 mr-4"
912
:class="langStore.selectedLang === '' ? 'pointer-events-none opacity-50 ' : ''"
@@ -15,15 +18,17 @@
1518
</div>
1619
</template>
1720
<script setup>
18-
import EntryAnimation from "./sections/EntryAnimation.vue";
21+
import { useRouter } from "vue-router";
1922
import LogoSection from "./sections/LogoSection.vue";
2023
import MenuSection from "./sections/MenuSection.vue";
2124
2225
import { useLangStore } from "@/store/languages";
2326
27+
const router = useRouter();
2428
const langStore = useLangStore();
2529
2630
const buttonHandler = () => {
27-
langStore.runEntryAnimation();
31+
langStore.settingPageIsVisible ? router.push("/setting") : router.push("/login");
32+
langStore.settingPageIsVisible = false;
2833
};
2934
</script>
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<template>
2-
<div class="w-full h-full col-start-1 col-span-8 row-start-1 row-span-full grid grid-cols-12 grid-rows-12">
2+
<div
3+
class="w-full h-full col-start-1 col-end-8 row-start-1 row-span-full grid grid-cols-12 grid-rows-12"
4+
>
35
<img
4-
class="col-start-2 col-end-12 row-start-1 row-end-11"
5-
src="/img/icon/language-page-icons/stereum-logo.svg"
6-
alt="Logo Icon"
6+
class="w-full h-full col-start-2 col-end-12 row-start-1 row-span-full"
7+
src="/animation/language/heartcore.gif"
8+
alt="Logo Anim"
79
/>
810
</div>
911
</template>

launcher/src/components/UI/language-page/components/MenuBody.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
}"
3030
@click="handleClick(lang, index)"
3131
>
32-
<img :src="lang.flag" :alt="`${lang.name} Flag`" class="col-start-1 col-span-3 w-10 h-10 rounded-full" />
32+
<img
33+
:src="lang.flag"
34+
:alt="`${lang.name} Flag`"
35+
class="col-start-1 col-span-3 w-10 h-10 rounded-full"
36+
/>
3337
<span
3438
class="col-start-4 col-span-full text-lg font-bold uppercase"
3539
:class="{ 'text-gray-700': selectedLanguage }"
@@ -71,6 +75,7 @@ onBeforeMount(async () => {
7175
router.push("/");
7276
}
7377
});
78+
7479
// langStore.settingPageIsVisible ? "/setting" :
7580
const checkSettings = async () => {
7681
try {
@@ -108,7 +113,7 @@ const selectItem = async (lang, playSound = true) => {
108113
109114
const playSoundBase = (base64Data) => {
110115
const audio = new Audio(base64Data);
111-
audio.volume = langStore.currentVolume;
116+
audio.volume = langStore.currentVolume;
112117
audio.play().catch((e) => console.error("Failed to play sound:", e));
113118
};
114119

launcher/src/components/UI/language-page/sections/EntryAnimation.vue

Lines changed: 0 additions & 62 deletions
This file was deleted.

launcher/src/store/languages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const useLangStore = defineStore("languages", {
1818
name: "deutsch",
1919
flag: "img/flag/germany.png",
2020
label: "de",
21-
isSelected: true,
21+
isSelected: false,
2222
},
2323
{
2424
name: "français",

0 commit comments

Comments
 (0)