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

28fa73ab7a5aa155b7a2b2b6623505d05a986f3a
wotaku/docs/.vitepress/theme/components/OgImageTemplate.vue history · blame · raw

33 lines · 1076 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
14    tw="w-full h-full bg-black flex flex-col"
15    :style="{
16      backgroundImage: `url(${image})`
17    }"
18  >
19    <span
20      tw="p-10 w-full min-h-0 grow flex flex-col items-center justify-between"
21    >
22      <span tw="w-full flex justify-between items-center text-5xl font-medium">
23        <span tw="flex items-center">
24          <span tw="text-zinc-100 ml-2 mt-1 font-semibold">wotaku.wiki</span>
25        </span>
26      </span>
27      <span tw="w-full pr-56 flex flex-col items-start justify-end">
28        <span style="color: #f7f7f7" tw="text-6xl font-bold" v-html="title" />
29      </span>
30    </span>
31    <span tw="shrink-0 h-2 w-full flex" />
32  </span>
33</template>