Skip to content

Commit

Permalink
Merge pull request #244 from zirreal/master
Browse files Browse the repository at this point in the history
added right click event to the logo
  • Loading branch information
zirreal authored Nov 24, 2023
2 parents 0df6362 + 9b1a651 commit 9a74b7f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<header class="header">

<div class="header-content" dir="ltr">
<div class="header-logo">
<div class="header-logo" @contextmenu.prevent="openLogoPage">
<g-link to="/">
<svg width="162" height="31" viewBox="0 0 162 31" fill="none" xmlns="http://www.w3.org/2000/svg" class="logo-robot hide-mobile">
<g clip-path="url(#clip0_951_181)">
Expand Down Expand Up @@ -57,6 +57,12 @@ export default {
languageSwitcher: () => import('~/components/languageSwitcher.vue'),
ThemeSwitcher: () => import('~/components/ThemeSwitcher.vue'),
HeaderNav: () => import('~/components/HeaderNav.vue'),
},
methods: {
openLogoPage() {
this.$router.push({ path: '/logos-and-assets/' })
}
}
}
Expand Down

0 comments on commit 9a74b7f

Please sign in to comment.