Skip to content

Commit

Permalink
buildbot: 2/2 13:07
Browse files Browse the repository at this point in the history
  • Loading branch information
josephclaytonhansen committed Feb 2, 2024
1 parent 30e544b commit 17e46aa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
2 changes: 0 additions & 2 deletions minify.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/bash

# Minify CSS files
postcss dist/assets/*.css -u cssnano -d dist/assets

# Minify JS files
for file in dist/assets/*.js; do
uglifyjs "$file" -o "${file%.js}.min.js"
mv "${file%.js}.min.js" "$file"
Expand Down
27 changes: 23 additions & 4 deletions src/components/main/blocks/header/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
mobileMenu.classList.add("hidden")
}
}
const navigate = (link) => {
toggleMobileMenu()
$router.push(link)
}
</script>

<template>
Expand Down Expand Up @@ -384,13 +389,22 @@
'text-slate-200': brightness == 2,
'text-slate-400': brightness == 1,
}">
<a @click="$router.push('/contact')"
<a
@click="
navigate('/contact')
"
><li class="py-2 px-3 rounded">Contact</li></a
>
<a @click="$router.push('/portfolio')"
<a
@click="
navigate('/portfolio')
"
><li class="py-2 px-3 rounded">Web Portfolio</li></a
>
<a @click="$router.push('/')"
<a
@click="
navigate('/')
"
><li class="py-2 px-3 rounded">Web Services</li></a
>
<li class="py-2 px-3 rounded opacity-75">Creative Projects</li>
Expand All @@ -401,7 +415,12 @@
<li class="py-2 px-3 rounded">Cooking and Recipes</li>
</ul>

<a href="/about-me"><li class="py-2 px-3 rounded">About Me</li></a>
<a
@click="
navigate('/about-me')
"
><li class="py-2 px-3 rounded">About Me</li></a
>
</ul>
</div>
</template>
Expand Down

0 comments on commit 17e46aa

Please sign in to comment.