Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions app/components/OgImage/OgImage.takumi.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script setup lang="ts">
const { title = 'My Page', description = '' } = defineProps<{
title?: string
description?: string
}>()
</script>

<template>
<div class="w-full h-full flex flex-col justify-center items-center p-[60px] bg-white text-neutral-900 dark:bg-neutral-900 dark:text-white">
<h1 class="text-[72px] font-bold m-0 leading-tight text-center" style="text-wrap: balance;">
{{ title }}
</h1>
<p v-if="description" class="text-[32px] opacity-60 mt-4 text-center max-w-[900px]">
{{ description }}
</p>
</div>
</template>
1 change: 1 addition & 0 deletions app/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup>
defineOgImage('OgImage', { title: 'Zerya', description: 'Make your ideas shine' })
useHead({
script: [{ src: 'https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js', defer: true }],
})
Expand Down
Loading
Loading