feat: fill pages
All checks were successful
Publish Docker Images / build-and-publish (push) Successful in 10m25s
All checks were successful
Publish Docker Images / build-and-publish (push) Successful in 10m25s
This commit is contained in:
44
frontend/app/components/VocalSynth/Projects.vue
Normal file
44
frontend/app/components/VocalSynth/Projects.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<UPageCard class="bg-background-100 my-10">
|
||||
<p class="text-xl">
|
||||
{{ $t('pages.vocal-synthesis.projects') }}
|
||||
</p>
|
||||
<div class="flex flex-col max-w gap-10">
|
||||
<div
|
||||
v-for="project in projects?.projects"
|
||||
:key="project.title"
|
||||
class="flex flex-row max-w gap-5"
|
||||
>
|
||||
<div>
|
||||
<div
|
||||
class="bg-primary text-text-50 dark:bg-primary p-1 rounded-md min-w-13 w-13 h-13 min-h-13 flex justify-center my-2"
|
||||
>
|
||||
<UIcon :name="project.icon" class="size-11" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col">
|
||||
<div class="flex flex-row gap-2 items-baseline">
|
||||
<ULink :to="project.link" class="text-2xl">{{
|
||||
project.title
|
||||
}}</ULink>
|
||||
<UIcon
|
||||
v-if="external(project.link)"
|
||||
name="mdi:link"
|
||||
class="size-5"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
{{ project.description }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</UPageCard>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const { getJsonData, getCachedData } = useDataJson('vocalSynth');
|
||||
await getJsonData('content_data_');
|
||||
const projects = getCachedData();
|
||||
const external = (url: string) => url.startsWith('http');
|
||||
</script>
|
||||
21
frontend/app/components/VocalSynth/Tools.vue
Normal file
21
frontend/app/components/VocalSynth/Tools.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<UPageCard class="bg-background-100 my-10">
|
||||
<p class="text-xl">
|
||||
{{ $t('pages.vocal-synthesis.tools') }}
|
||||
</p>
|
||||
<div class="flex flex-row gap-5 flex-wrap">
|
||||
<UBadge
|
||||
v-for="tool in data?.tools"
|
||||
:key="tool"
|
||||
size="md"
|
||||
variant="solid"
|
||||
>{{ tool }}</UBadge
|
||||
>
|
||||
</div>
|
||||
</UPageCard>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const { getCachedData } = useDataJson('vocalSynth');
|
||||
const data = getCachedData();
|
||||
</script>
|
||||
Reference in New Issue
Block a user