diff --git a/components.d.ts b/components.d.ts index 50b524d2..36a5f7e3 100644 --- a/components.d.ts +++ b/components.d.ts @@ -44,6 +44,7 @@ declare module 'vue' { TranslateSetting: typeof import('./src/components/Toolbar/TranslateSetting.vue')['default'] TypeArticle: typeof import('./src/components/Practice/TypeArticle.vue')['default'] TypeWord: typeof import('./src/components/Practice/TypeWord.vue')['default'] + VolumeIcon: typeof import('./src/components/VolumeIcon.vue')['default'] VolumeSetting: typeof import('./src/components/Toolbar/VolumeSetting.vue')['default'] WordList: typeof import('./src/components/WordList.vue')['default'] } diff --git a/public/sound/beep.wav b/public/sound/beep.wav new file mode 100644 index 00000000..26df295f Binary files /dev/null and b/public/sound/beep.wav differ diff --git a/public/sound/boom.mp3 b/public/sound/boom.mp3 new file mode 100644 index 00000000..05873abf Binary files /dev/null and b/public/sound/boom.mp3 differ diff --git a/public/sound/correct.wav b/public/sound/correct.wav new file mode 100644 index 00000000..06806051 Binary files /dev/null and b/public/sound/correct.wav differ diff --git a/public/sound/key-sounds/jixie/机械0.mp3 b/public/sound/key-sounds/jixie/机械0.mp3 new file mode 100644 index 00000000..760f75bf Binary files /dev/null and b/public/sound/key-sounds/jixie/机械0.mp3 differ diff --git a/public/sound/key-sounds/jixie/机械1.mp3 b/public/sound/key-sounds/jixie/机械1.mp3 new file mode 100644 index 00000000..396e9624 Binary files /dev/null and b/public/sound/key-sounds/jixie/机械1.mp3 differ diff --git a/public/sound/key-sounds/jixie/机械2.mp3 b/public/sound/key-sounds/jixie/机械2.mp3 new file mode 100644 index 00000000..c4c3e30a Binary files /dev/null and b/public/sound/key-sounds/jixie/机械2.mp3 differ diff --git a/public/sound/key-sounds/jixie/机械3.mp3 b/public/sound/key-sounds/jixie/机械3.mp3 new file mode 100644 index 00000000..4965ac8b Binary files /dev/null and b/public/sound/key-sounds/jixie/机械3.mp3 differ diff --git a/public/sound/key-sounds/快速打字的机械键盘声音.mp3 b/public/sound/key-sounds/快速打字的机械键盘声音.mp3 new file mode 100644 index 00000000..7da87cb4 Binary files /dev/null and b/public/sound/key-sounds/快速打字的机械键盘声音.mp3 differ diff --git a/public/sound/key-sounds/电话打字的声音.mp3 b/public/sound/key-sounds/电话打字的声音.mp3 new file mode 100644 index 00000000..c96274cc Binary files /dev/null and b/public/sound/key-sounds/电话打字的声音.mp3 differ diff --git a/public/sound/key-sounds/老式机械.mp3 b/public/sound/key-sounds/老式机械.mp3 new file mode 100644 index 00000000..3c8e890e Binary files /dev/null and b/public/sound/key-sounds/老式机械.mp3 differ diff --git a/public/sound/key-sounds/键盘快速打字的声音.mp3 b/public/sound/key-sounds/键盘快速打字的声音.mp3 new file mode 100644 index 00000000..a55e7cd3 Binary files /dev/null and b/public/sound/key-sounds/键盘快速打字的声音.mp3 differ diff --git a/public/sound/shotfire.mp3 b/public/sound/shotfire.mp3 new file mode 100644 index 00000000..e296d071 Binary files /dev/null and b/public/sound/shotfire.mp3 differ diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index a0190628..bf809585 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -67,7 +67,7 @@ a { outline: none; border: 1px solid transparent; border-radius: 6rem; - padding:8rem 10rem; + padding: 8rem 10rem; transition: all .3s; min-height: 20rem; width: 100%; @@ -77,7 +77,7 @@ a { border: 1px solid var(--color-main-active); } - &[readonly]{ + &[readonly] { cursor: not-allowed; opacity: .7; } @@ -108,11 +108,21 @@ footer { gap: $space; } -.i-icon { - cursor: pointer; -} - .pointer { cursor: pointer; } +.flex { + display: flex; +} + +.justify-content-between { + justify-content: space-between; +} + + +.flex-center { + display: flex; + align-items: center; + justify-content: center; +} \ No newline at end of file diff --git a/src/components/Fireworks.vue b/src/components/Fireworks.vue index 492262a5..a1acf0fc 100644 --- a/src/components/Fireworks.vue +++ b/src/components/Fireworks.vue @@ -9,7 +9,7 @@ import {onMounted} from "vue"; import {getRandom} from "@/utils/index.ts"; import boom from '@/assets/sound/boom.mp3' import shotfire from '@/assets/sound/shotfire.mp3' -import {useSound} from "@/hooks/useSound.ts"; +import {useSound} from "@/hooks/sound.ts"; const canvas = $ref() const [playBoom] = useSound([boom], 3) diff --git a/src/components/IconWrapper.vue b/src/components/IconWrapper.vue index 4efcb8cb..5c846bf1 100644 --- a/src/components/IconWrapper.vue +++ b/src/components/IconWrapper.vue @@ -15,7 +15,7 @@ export default { \ No newline at end of file diff --git a/src/components/VolumeIcon.vue b/src/components/VolumeIcon.vue new file mode 100644 index 00000000..ed78078b --- /dev/null +++ b/src/components/VolumeIcon.vue @@ -0,0 +1,49 @@ + + + + + \ No newline at end of file diff --git a/src/components/WordList.vue b/src/components/WordList.vue index 274645b3..11993a4f 100644 --- a/src/components/WordList.vue +++ b/src/components/WordList.vue @@ -1,9 +1,9 @@