docs/.vitepress/theme/components/OgImageTemplate.vue

166ff785f836e8bec40729ed071dd134fd2ec9a8
wotaku/docs/.vitepress/theme/components/OgImageTemplate.vue

28 lines · 1050 bytes

 1<!--
 2  All Rights Reserved
 3
 4  Copyright (c) 2025 taskylizard
 5
 6  All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
 7-->
 8<script setup lang="ts">
 9defineProps<{ title: string; description?: string; image: string }>()
10</script>
11
12<template>
13  <span tw="w-full h-full bg-black flex flex-col" :style="{
14    backgroundImage: `url(${image})`
15  }">
16    <span tw="p-10 w-full min-h-0 grow flex flex-col items-center justify-between">
17      <span tw="w-full flex justify-between items-center text-5xl font-medium">
18        <span tw="flex items-center">
19          <span tw="text-zinc-100 ml-2 mt-1 font-semibold">wotaku.wiki</span>
20        </span>
21      </span>
22      <span tw="w-full pr-56 flex flex-col items-start justify-end">
23        <span style="color: #f7f7f7" tw="text-6xl font-bold" v-html="title" />
24      </span>
25    </span>
26    <span tw="shrink-0 h-2 w-full flex" />
27  </span>
28</template>