From df52d2424225ce479cff76aad3e7f6c23c3704d5 Mon Sep 17 00:00:00 2001 From: juls0730 <62722391+juls0730@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:35:30 -0500 Subject: [PATCH] fix build and darken light mode border color --- app.vue | 5 --- components/ProjectCard.vue | 4 +- package-lock.json | 2 +- package.json | 4 +- pages/index.vue | 91 ++++++++++++++++++-------------------- tailwind.config.js | 2 +- 6 files changed, 48 insertions(+), 60 deletions(-) delete mode 100644 app.vue diff --git a/app.vue b/app.vue deleted file mode 100644 index f131fd2..0000000 --- a/app.vue +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/components/ProjectCard.vue b/components/ProjectCard.vue index d4d03e4..a1d715d 100755 --- a/components/ProjectCard.vue +++ b/components/ProjectCard.vue @@ -11,11 +11,11 @@ export default {
+ class="dark:!text-zinc-300/80 !text-deep-indigo/75 dark:hover:!text-zinc-200 hover:!text-deep-indigo/95 dark:focus:!text-zinc-200 focus:!text-deep-indigo/95 rounded transition-colors duration-300 focus:outline-3 focus:outline focus:outline-fuschia"> + class="dark:!text-zinc-300/80 !text-deep-indigo/75 dark:hover:!text-zinc-200 hover:!text-deep-indigo/95 dark:focus:!text-zinc-200 focus:!text-deep-indigo/95 rounded transition-colors duration-300 focus:outline-3 focus:outline focus:outline-fuschia">
diff --git a/package-lock.json b/package-lock.json index 6a46294..32f8190 100755 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,7 @@ "name": "nuxt-app", "hasInstallScript": true, "dependencies": { - "@nuxt/content": "^2.8.2", + "@nuxt/content": "^2.12.1", "@vueuse/core": "^10.9.0", "xml": "^1.0.1" }, diff --git a/package.json b/package.json index ccc75bb..097b148 100755 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "tailwindcss": "^3.3.3" }, "dependencies": { - "@nuxt/content": "^2.8.2", + "@nuxt/content": "^2.12.1", "@vueuse/core": "^10.9.0", "xml": "^1.0.1" } -} +} \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index 8b40196..5946a58 100755 --- a/pages/index.vue +++ b/pages/index.vue @@ -6,60 +6,53 @@ if (new Date(today.getFullYear() + "-07-30") > today) { age--; } +let tagLine = ref(""); +let typeStatus = ref(false); +let displayTextArray = ["Fullstack dev", "Designer", "Blogger", "Freelancer"]; +let displayTextArrayIndex = ref(0); +let charIndex = ref(0); + +const typeText = () => { + if (charIndex.value < displayTextArray[displayTextArrayIndex.value].length) { + if (!typeStatus.value) typeStatus.value = true; + tagLine.value += displayTextArray[displayTextArrayIndex.value].charAt( + charIndex.value + ); + charIndex.value += 1; + setTimeout(typeText, 100); + } else { + typeStatus.value = false; + setTimeout(eraseText, Math.min(Math.floor(Math.random() * 2001), 1750)); + } +} + +const eraseText = () => { + if (charIndex.value > 0) { + if (!typeStatus.value) typeStatus.value = true; + tagLine.value = displayTextArray[displayTextArrayIndex.value].substring( + 0, + charIndex.value - 1 + ); + charIndex.value -= 1; + setTimeout(eraseText, 50); + } else { + typeStatus.value = false; + displayTextArrayIndex.value += 1; + if (displayTextArrayIndex.value >= displayTextArray.length) + displayTextArrayIndex.value = 0; + setTimeout(typeText, 1100); + } +} + +onMounted(() => { + setTimeout(typeText, 2200); +}) + useHead({ title: 'Juls07', }) - -