-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e440717
commit 9958b62
Showing
3 changed files
with
40 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script lang="ts" setup> | ||
import { useLocalStorage } from "@vueuse/core"; | ||
import Icon from "@/components/ui/Icon.vue"; | ||
const isSecurityHeaderVisible = useLocalStorage("security-popup", true); | ||
const props = defineProps<{ link: string }>(); | ||
function hideSecurityLabel() { | ||
isSecurityHeaderVisible.value = false; | ||
} | ||
</script> | ||
|
||
<template> | ||
<div | ||
v-if="isSecurityHeaderVisible" | ||
class="flex flex-row justify-between items-start bg-red-200 w-full py-5 px-5 rounded text-red-400 text-300 gap-8 mb-2" | ||
> | ||
<div class="flex flex-col gap-4"> | ||
<span class="text-justify">{{ $t("homepage.auditStatus") }}</span> | ||
<Icon icon="link" :size="1"> | ||
<a :href="props.link" target="_blank" class="font-bold">{{ $t("homepage.viewAuditStatus") }}</a> | ||
</Icon> | ||
</div> | ||
<button class="hover:opacity-50" @click="hideSecurityLabel"> | ||
<Icon icon="close" :size="2" /> | ||
</button> | ||
</div> | ||
</template> |
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