From 17a41714c7da3d281092ee0b5064130325530129 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Tue, 9 May 2023 17:37:03 +0200 Subject: [PATCH] Added menu interaction --- .eslintrc.cjs | 1 - env.d.ts | 1 - package.json | 1 - {src/assets => public}/sounds/btn-hover.mp3 | Bin src/assets/main.css | 2 +- src/components/YrhBanner.vue | 39 +++++++++++ src/components/YrhButton.vue | 12 ++-- src/components/YrhHeading.vue | 2 +- src/components/YrhMainNav.vue | 67 ++++++++++++++++++ src/views/HomeView.vue | 74 +++++++++++++++++--- tailwind.config.js | 3 + 11 files changed, 182 insertions(+), 20 deletions(-) rename {src/assets => public}/sounds/btn-hover.mp3 (100%) create mode 100644 src/components/YrhBanner.vue create mode 100644 src/components/YrhMainNav.vue diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 2d8696b..2de538e 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -15,7 +15,6 @@ module.exports = { '@vue/eslint-config-prettier/skip-formatting' ], rules: { - indent: ['error', 2], 'prettier/prettier': [ 'error', { diff --git a/env.d.ts b/env.d.ts index 4791171..11f02fe 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,2 +1 @@ /// -declare module '@vueuse/sound' diff --git a/package.json b/package.json index 8ebb122..caf7685 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "@fortawesome/free-solid-svg-icons": "^6.4.0", "@fortawesome/vue-fontawesome": "^3.0.3", "@vueuse/core": "^10.1.2", - "@vueuse/sound": "^2.0.1", "pinia": "^2.0.35", "sass": "^1.62.1", "vue": "^3.2.47", diff --git a/src/assets/sounds/btn-hover.mp3 b/public/sounds/btn-hover.mp3 similarity index 100% rename from src/assets/sounds/btn-hover.mp3 rename to public/sounds/btn-hover.mp3 diff --git a/src/assets/main.css b/src/assets/main.css index fa791d0..39df839 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -5,7 +5,7 @@ @tailwind utilities; body { - @apply relative min-h-screen min-w-full text-y-beige-900 bg-y-beige-400 bg-[url('/yorha-bg.svg')] bg-contain bg-no-repeat + @apply relative min-h-screen min-w-full text-y-beige-900 bg-y-beige-400 } body::before { diff --git a/src/components/YrhBanner.vue b/src/components/YrhBanner.vue new file mode 100644 index 0000000..96ed1d6 --- /dev/null +++ b/src/components/YrhBanner.vue @@ -0,0 +1,39 @@ + + + diff --git a/src/components/YrhButton.vue b/src/components/YrhButton.vue index 0668257..9ec8ca4 100644 --- a/src/components/YrhButton.vue +++ b/src/components/YrhButton.vue @@ -1,10 +1,11 @@ + + + + diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 6d4cba0..4f4f336 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,16 +1,72 @@ + + diff --git a/tailwind.config.js b/tailwind.config.js index 3a6258f..815358f 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -28,6 +28,9 @@ module.exports = { 800: '#3A382C', 900: '#2d2c21' } + }, + boxShadow: { + sharpest: '2px 2px #2d2c2150' } } },