-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new feature notice for dark mode (#4922)
- Loading branch information
Showing
36 changed files
with
203 additions
and
13 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
frontend/src/components/VFeatureNotice/VDarkModeFeatureNotice.vue
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,21 @@ | ||
<script setup lang="ts"> | ||
import { useUiStore } from "~/stores/ui" | ||
import VFeatureNotice from "~/components/VFeatureNotice/VFeatureNotice.vue" | ||
const uiStore = useUiStore() | ||
const handleClick = () => { | ||
uiStore.setIsDarkModeSeen(true) | ||
} | ||
</script> | ||
|
||
<template> | ||
<!-- TODO: Populate the post permalink. --> | ||
<VFeatureNotice | ||
see-more-href="https://make.wordpress.org/openverse/" | ||
@click="handleClick" | ||
> | ||
{{ $t("notification.darkMode.text") }} | ||
</VFeatureNotice> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script setup lang="ts"> | ||
import VLink from "~/components/VLink.vue" | ||
defineProps<{ | ||
seeMoreHref: string | ||
}>() | ||
const emit = defineEmits<{ | ||
click: [MouseEvent] | ||
}>() | ||
const handleClick = (e: MouseEvent) => { | ||
emit("click", e) | ||
} | ||
</script> | ||
|
||
<template> | ||
<VLink | ||
:href="seeMoreHref" | ||
class="group flex h-10 w-full flex-row items-center gap-2 rounded-full border border-secondary pe-4 ps-2 hover:no-underline sm:w-[23.125rem]" | ||
@click="handleClick" | ||
> | ||
<div | ||
class="flex h-6 items-center rounded-full bg-primary px-2 text-xs font-semibold uppercase text-over-negative" | ||
> | ||
{{ $t("notification.new") }} | ||
</div> | ||
<div class="label-regular flex-grow text-default"> | ||
<!-- @slot Content goes here. --> | ||
<slot /> | ||
</div> | ||
<span | ||
class="label-bold text-default group-hover:underline group-focus:underline" | ||
>{{ $t("notification.more") }}</span | ||
> | ||
</VLink> | ||
</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
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
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
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
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
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
Oops, something went wrong.