diff --git a/components/global/AddCard.vue b/components/global/AddCard.vue
new file mode 100644
index 0000000..d2d8955
--- /dev/null
+++ b/components/global/AddCard.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/ui/card/Card.vue b/components/ui/card/Card.vue
index ca0812f..6a0bdf5 100644
--- a/components/ui/card/Card.vue
+++ b/components/ui/card/Card.vue
@@ -5,7 +5,10 @@ import { cn } from "@/lib/utils"
const props = defineProps<{
class?: HTMLAttributes["class"]
link?: string
+ hasClick?: boolean
}>()
+
+const emit = defineEmits(["on-click"])
@@ -13,7 +16,7 @@ const props = defineProps<{
:class="
cn('rounded-lg border bg-card text-card-foreground shadow-sm transition-all isolate', props.class, {
'relative outline outline-2 outline-offset-4 outline-transparent hover:-translate-y-[.2rem]':
- props.link
+ props.link || props.hasClick
})
"
>
@@ -24,5 +27,9 @@ const props = defineProps<{
:to="props.link"
class="absolute inset-0 z-10 focus-visible:outline-none"
/>
+
diff --git a/i18n.config.ts b/i18n.config.ts
index b7d716e..51e6b2e 100644
--- a/i18n.config.ts
+++ b/i18n.config.ts
@@ -81,6 +81,7 @@ export default defineI18nConfig(() => ({
nameSingular: "World",
namePlural: "Worlds",
addSingle: "Add a world",
+ editSingle: "Edit world",
notFound: "World not found",
notFoundDescription: "The link is not valid or the world has been deleted / archived.",
backToList: "Go back to worlds",
@@ -331,6 +332,7 @@ export default defineI18nConfig(() => ({
nameSingular: "Monde",
namePlural: "Mondes",
addSingle: "Ajouter un monde",
+ editSingle: "Modifier le monde",
notFound: "Aucun monde trouvé",
notFoundDescription: "Le lien n'est pas valide ou le monde a été supprimé / archivé.",
backToList: "Retourner aux mondes",
diff --git a/pages/my/index.vue b/pages/my/index.vue
index 6b619fb..dcd64ce 100644
--- a/pages/my/index.vue
+++ b/pages/my/index.vue
@@ -1,5 +1,5 @@