-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1054 from rommapp/romm-1052
Added link to home button
- Loading branch information
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
import RommIso from "@/components/common/RommIso.vue"; | ||
import storeNavigation from "@/stores/navigation"; | ||
const homeUrl = ref(`${location.protocol}//${location.host}`); | ||
const navigationStore = storeNavigation(); | ||
</script> | ||
<template> | ||
<v-hover v-slot="{ isHovering, props: hoverProps }"> | ||
<romm-iso | ||
@click="navigationStore.goHome" | ||
v-bind="hoverProps" | ||
class="pointer" | ||
:class="{ 'border-romm-accent-1': isHovering }" | ||
:size="35" | ||
/> | ||
</v-hover> | ||
<a @click.prevent style="text-decoration: none; color: inherit" :href="homeUrl"> | ||
<v-hover v-slot="{ isHovering, props: hoverProps }"> | ||
<romm-iso | ||
@click="navigationStore.goHome" | ||
v-bind="hoverProps" | ||
class="pointer" | ||
:class="{ 'border-romm-accent-1': isHovering }" | ||
:size="35" | ||
/> | ||
</v-hover> | ||
</a> | ||
</template> |