ADD: internal links

Internal links for richtext
This commit is contained in:
webfussel 2025-02-21 20:08:19 +01:00
parent 9a1b1acfee
commit d8593a7280
2 changed files with 17 additions and 4 deletions

View file

@ -1,8 +1,12 @@
<template> <template>
<a :href="href" :target="target" class="text inline-flex-row"> <a v-if="isExternal" :href="href" :target="target" class="text inline-flex-row">
{{ content }} {{ content }}
<Icon :name="`ph:${linkIcon}-duotone`" mode="svg" /> <Icon :name="`ph:arrow-square-out-duotone`" mode="svg" />
</a> </a>
<NuxtLink v-else :to="href" class="text inline-flex-row">
{{ content }}
<Icon :name="`ph:link-simple-duotone`" mode="svg" />
</NuxtLink>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -10,5 +14,5 @@ import type { RichTextLink } from './Types'
const { href } = defineProps<RichTextLink>() const { href } = defineProps<RichTextLink>()
const linkIcon = href.startsWith('http') ? 'globe' : 'arrow-square-in' const isExternal = href.startsWith('http')
</script> </script>

View file

@ -221,7 +221,16 @@ const skills : Skill[] = [
children: [ children: [
{ {
type: 'plain', type: 'plain',
content: 'Erkunde einfach meine Referenzen und dir wird auffallen, dass diese äußerst durchmischt und bunt sind. So individuell wie die Projekte meiner bisherigen Kunden wird auch dein Projekt behandelt. Und auch, wenn ' content: 'Erkunde einfach meine ',
},
{
type: 'a',
href: '/references',
content: 'Referenzen'
},
{
type: 'plain',
content: ' und dir wird auffallen, dass diese äußerst durchmischt und bunt sind. So individuell wie die Projekte meiner bisherigen Kunden wird auch dein Projekt behandelt. Und auch, wenn '
+ 'du glaubst, dass die Referenzen nicht zu deinem Projekt passen, werden wir deine ganz individuelle Lösung gemeinsam erarbeiten.' + 'du glaubst, dass die Referenzen nicht zu deinem Projekt passen, werden wir deine ganz individuelle Lösung gemeinsam erarbeiten.'
} }
] ]