Refactor UI components and improve accessibility features
- Updated various UI components to enhance visual consistency and user experience. - Improved focus management and accessibility features across the application. - Streamlined controller navigation logic for better user interaction. - Removed unused functions in useLoginSounds.ts to optimize the codebase.
This commit is contained in:
parent
e6fb1d20be
commit
a1282f7e68
BIN
neode-ui/public/assets/audio/pop.mp3
Normal file
BIN
neode-ui/public/assets/audio/pop.mp3
Normal file
Binary file not shown.
@ -134,7 +134,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, onBeforeUnmount, watch } from 'vue'
|
import { ref, onMounted, onBeforeUnmount, watch } from 'vue'
|
||||||
import ScreensaverLogo from '@/components/ScreensaverLogo.vue'
|
import ScreensaverLogo from '@/components/ScreensaverLogo.vue'
|
||||||
import { playIntroTyping, playLoopStart, playWelcomeNoderunnerSpeech, resumeAudioContext, startSynthwave, stopIntroTyping } from '@/composables/useLoginSounds'
|
import { playIntroTyping, playLoopStart, playPop, playWelcomeNoderunnerSpeech, resumeAudioContext, startSynthwave, stopIntroTyping } from '@/composables/useLoginSounds'
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
complete: []
|
complete: []
|
||||||
@ -242,6 +242,7 @@ const seenIntro = localStorage.getItem('neode_intro_seen') === '1'
|
|||||||
function handleTapToStart() {
|
function handleTapToStart() {
|
||||||
if (!showTapToStart.value || tapStartTransitioning.value) return
|
if (!showTapToStart.value || tapStartTransitioning.value) return
|
||||||
resumeAudioContext()
|
resumeAudioContext()
|
||||||
|
playPop()
|
||||||
tapStartTransitioning.value = true
|
tapStartTransitioning.value = true
|
||||||
// Logo: grow (150ms) then zoom out to background (850ms). Total 1s.
|
// Logo: grow (150ms) then zoom out to background (850ms). Total 1s.
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@ -96,6 +96,13 @@ export function stopSynthwave() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Pop sound - plays when intro initiator (tap to start) is pressed */
|
||||||
|
export function playPop() {
|
||||||
|
const audio = new Audio('/assets/audio/pop.mp3')
|
||||||
|
audio.volume = 0.6
|
||||||
|
audio.play().catch(() => {})
|
||||||
|
}
|
||||||
|
|
||||||
/** Whoosh transition on successful login */
|
/** Whoosh transition on successful login */
|
||||||
export function playLoginSuccessWhoosh() {
|
export function playLoginSuccessWhoosh() {
|
||||||
const woosh = new Audio('/assets/audio/woosh.mp3')
|
const woosh = new Audio('/assets/audio/woosh.mp3')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user