Merge pull request #217 from SELab-2/feat/zoekpagina-over-alle-leerpaden-toegankelijk-maken-vanuit-homepagina-#216
feat: Zoekpagina over alle leerpaden toegankelijk maken vanuit homepagina. (#216)
This commit is contained in:
commit
b700ecb7bf
6 changed files with 44 additions and 9 deletions
|
@ -11,7 +11,7 @@
|
||||||
selectedAge: { type: String, required: true },
|
selectedAge: { type: String, required: true },
|
||||||
});
|
});
|
||||||
|
|
||||||
const { locale } = useI18n();
|
const { t, locale } = useI18n();
|
||||||
const language = computed(() => locale.value);
|
const language = computed(() => locale.value);
|
||||||
|
|
||||||
const { data: allThemes, isLoading, error } = useThemeQuery(language);
|
const { data: allThemes, isLoading, error } = useThemeQuery(language);
|
||||||
|
@ -74,6 +74,22 @@
|
||||||
class="fill-height"
|
class="fill-height"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
<v-col
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
md="4"
|
||||||
|
lg="4"
|
||||||
|
class="d-flex"
|
||||||
|
>
|
||||||
|
<ThemeCard
|
||||||
|
path="/learningPath/search"
|
||||||
|
:is-absolute-path="true"
|
||||||
|
:title="t('searchAllLearningPathsTitle')"
|
||||||
|
:description="t('searchAllLearningPathsDescription')"
|
||||||
|
icon="mdi-magnify"
|
||||||
|
class="fill-height"
|
||||||
|
/>
|
||||||
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-container>
|
</v-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,21 +1,26 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { computed } from "vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
defineProps<{
|
const props = defineProps<{
|
||||||
path: string;
|
path: string;
|
||||||
|
isAbsolutePath?: boolean;
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
image: string;
|
image?: string;
|
||||||
|
icon?: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
const routerLink = computed(() => (props.isAbsolutePath ? props.path : `/theme/${props.path}`));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<v-card
|
<v-card
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
class="theme-card d-flex flex-column"
|
class="theme-card d-flex flex-column"
|
||||||
:to="`theme/${path}`"
|
:to="routerLink"
|
||||||
link
|
link
|
||||||
>
|
>
|
||||||
<v-card-title class="title-container">
|
<v-card-title class="title-container">
|
||||||
|
@ -27,12 +32,18 @@
|
||||||
contain
|
contain
|
||||||
class="title-image"
|
class="title-image"
|
||||||
></v-img>
|
></v-img>
|
||||||
|
<v-icon
|
||||||
|
v-if="icon"
|
||||||
|
class="title-image"
|
||||||
|
>{{ icon }}</v-icon
|
||||||
|
>
|
||||||
|
|
||||||
<span class="title">{{ title }}</span>
|
<span class="title">{{ title }}</span>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text class="description flex-grow-1">{{ description }}</v-card-text>
|
<v-card-text class="description flex-grow-1">{{ description }}</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-btn
|
<v-btn
|
||||||
:to="`theme/${path}`"
|
:to="routerLink"
|
||||||
variant="text"
|
variant="text"
|
||||||
>
|
>
|
||||||
{{ t("read-more") }}
|
{{ t("read-more") }}
|
||||||
|
|
|
@ -118,5 +118,7 @@
|
||||||
"accepted": "akzeptiert",
|
"accepted": "akzeptiert",
|
||||||
"enterUsername": "Geben Sie den Benutzernamen der Lehrkraft ein, die Sie einladen möchten",
|
"enterUsername": "Geben Sie den Benutzernamen der Lehrkraft ein, die Sie einladen möchten",
|
||||||
"username": "Nutzername",
|
"username": "Nutzername",
|
||||||
"invite": "einladen"
|
"invite": "einladen",
|
||||||
|
"searchAllLearningPathsTitle": "Alle Lernpfade durchsuchen",
|
||||||
|
"searchAllLearningPathsDescription": "Nicht gefunden, was Sie gesucht haben? Klicken Sie hier, um unsere gesamte Lernpfad-Datenbank zu durchsuchen."
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,5 +118,7 @@
|
||||||
"rejected": "rejected",
|
"rejected": "rejected",
|
||||||
"enterUsername": "enter the username of the teacher you would like to invite",
|
"enterUsername": "enter the username of the teacher you would like to invite",
|
||||||
"username": "username",
|
"username": "username",
|
||||||
"invite": "invite"
|
"invite": "invite",
|
||||||
|
"searchAllLearningPathsTitle": "Search all learning paths",
|
||||||
|
"searchAllLearningPathsDescription": "You didn't find what you were looking for? Click here to search our whole database of available learning paths."
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,5 +118,7 @@
|
||||||
"rejected": "rejetée",
|
"rejected": "rejetée",
|
||||||
"enterUsername": "entrez le nom d'utilisateur de l'enseignant que vous souhaitez inviter",
|
"enterUsername": "entrez le nom d'utilisateur de l'enseignant que vous souhaitez inviter",
|
||||||
"username": "Nom d'utilisateur",
|
"username": "Nom d'utilisateur",
|
||||||
"invite": "inviter"
|
"invite": "inviter",
|
||||||
|
"searchAllLearningPathsTitle": "Rechercher tous les parcours d'apprentissage",
|
||||||
|
"searchAllLearningPathsDescription": "Vous n'avez pas trouvé ce que vous cherchiez ? Cliquez ici pour rechercher dans toute notre base de données de parcours d'apprentissage disponibles."
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,5 +118,7 @@
|
||||||
"rejected": "geweigerd",
|
"rejected": "geweigerd",
|
||||||
"enterUsername": "vul de gebruikersnaam van de leerkracht die je wilt uitnodigen in",
|
"enterUsername": "vul de gebruikersnaam van de leerkracht die je wilt uitnodigen in",
|
||||||
"username": "gebruikersnaam",
|
"username": "gebruikersnaam",
|
||||||
"invite": "uitnodigen"
|
"invite": "uitnodigen",
|
||||||
|
"searchAllLearningPathsTitle": "Alle leerpaden doorzoeken",
|
||||||
|
"searchAllLearningPathsDescription": "Niet gevonden waar je naar op zoek was? Klik hier om onze volledige databank van beschikbare leerpaden te doorzoeken."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue