Découvert par {{ celestial.discoveredBy }} le {{ celestial.discoveryDate }}
@@ -30,10 +32,12 @@Facteur Densité : {{ celestial.density }}
Inclinaison : {{ celestial.inclination }}
From 03c7328bfbcf75f806d9729d5d16034ea2f9b881 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 29 Mar 2021 15:15:50 +0200 Subject: [PATCH] + Added link to toast card --- assets/scss/_global.scss | 7 +++++++ components/celestials/CelestialCard.vue | 8 ++++++++ components/toast/ToastCard.vue | 17 +++++++++++++++++ components/toast/ToastsList.vue | 5 +++++ pages/astres/_slug.vue | 16 +++++----------- 5 files changed, 42 insertions(+), 11 deletions(-) diff --git a/assets/scss/_global.scss b/assets/scss/_global.scss index 77015e3..08f44e5 100644 --- a/assets/scss/_global.scss +++ b/assets/scss/_global.scss @@ -63,6 +63,13 @@ a { color: inherit; text-decoration: none; } + &.fs-link { + color: $primary-xxlight; + text-decoration: underline; + &:hover { + color: $primary-xlight; + } + } } button { diff --git a/components/celestials/CelestialCard.vue b/components/celestials/CelestialCard.vue index cc19086..4db7cfb 100644 --- a/components/celestials/CelestialCard.vue +++ b/components/celestials/CelestialCard.vue @@ -91,6 +91,10 @@ export default { id: uuidv4(), title: 'Favori ajouté', message: `${this.celestial.name} a été ajouté à la liste des favoris.`, + link: { + text: 'Consultez vos favoris.', + url: '/favoris' + }, category: 'valid', timer: 3 }) @@ -99,6 +103,10 @@ export default { id: uuidv4(), title: 'Favori retiré', message: `${this.celestial.name} a été retiré de la liste des favoris.`, + link: { + text: 'Consultez vos favoris.', + url: '/favoris' + }, category: 'valid', timer: 3 }) diff --git a/components/toast/ToastCard.vue b/components/toast/ToastCard.vue index 528b67b..96f6d34 100644 --- a/components/toast/ToastCard.vue +++ b/components/toast/ToastCard.vue @@ -6,6 +6,9 @@
+Découvert par {{ celestial.discoveredBy }} le {{ celestial.discoveryDate }}
@@ -30,10 +32,12 @@Facteur Densité : {{ celestial.density }}
Inclinaison : {{ celestial.inclination }}