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

1196f20bea8bc93a02901cfc0527f6ff37fde255
wotaku/docs/.vitepress/theme/components/OgImageTemplate.vue
taskylizard wotaku 2bea9706e6c 1 year ago

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>
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form