|
| 1 | +<script setup lang="ts"> |
| 2 | +defineOptions({ |
| 3 | + inheritAttrs: false, |
| 4 | +}) |
| 5 | +
|
| 6 | +const { headline = '' } = defineProps<{ |
| 7 | + title?: string |
| 8 | + description?: string |
| 9 | + headline?: string |
| 10 | +}>() |
| 11 | +
|
| 12 | +function truncate(str: string, max: number) { |
| 13 | + if (!str || str.length <= max) return str |
| 14 | + const cut = str.lastIndexOf(' ', max) |
| 15 | + return `${str.slice(0, cut > 0 ? cut : max)}…` |
| 16 | +} |
| 17 | +</script> |
| 18 | + |
| 19 | +<template> |
| 20 | + <div class="flex flex-row size-full"> |
| 21 | + <div |
| 22 | + class="flex flex-col items-center justify-between" |
| 23 | + style="width:200px;background:#eab308;padding:48px 0;" |
| 24 | + > |
| 25 | + <div style="flex:1;display:flex;align-items:center;justify-content:center;"> |
| 26 | + <svg xmlns="http://www.w3.org/2000/svg" width="100" height="62" viewBox="0 0 208 128" fill="none"> |
| 27 | + <path stroke="#09090b" stroke-width="8" d="M199 9v110H9V9h190Z" /> |
| 28 | + <path fill="#09090b" d="M128 51.25V32h19.937v19.25H128ZM128 96V76.75h19.937V96H128ZM158.063 51.25V32H178v19.25h-19.937Zm0 44.75V76.75H178V96h-19.937ZM30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39H30Z" /> |
| 29 | + </svg> |
| 30 | + </div> |
| 31 | + <div style="font-family:'Geist Mono';font-size:11px;font-weight:600;color:#09090b;letter-spacing:0.12em;opacity:0.5;"> |
| 32 | + comark.dev |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + |
| 36 | + <div |
| 37 | + class="flex flex-col flex-1" |
| 38 | + style="background:#09090b;position:relative;overflow:hidden;" |
| 39 | + > |
| 40 | + <div |
| 41 | + style="position:absolute;inset:0;background-image:radial-gradient(circle, rgba(234,179,8,0.03) 1px, transparent 1px);background-size:28px 28px;" |
| 42 | + /> |
| 43 | + |
| 44 | + <div class="flex flex-col flex-1 justify-center" style="position:relative;z-index:1;padding:48px 56px;"> |
| 45 | + <div |
| 46 | + v-if="headline" |
| 47 | + style="font-family:'Geist Mono';font-size:13px;font-weight:600;letter-spacing:0.2em;text-transform:uppercase;color:#eab308;margin-bottom:24px;" |
| 48 | + > |
| 49 | + {{ headline }} |
| 50 | + </div> |
| 51 | + |
| 52 | + <div |
| 53 | + style="font-family:'Geist';font-size:72px;font-weight:800;color:#fafafa;line-height:1;letter-spacing:-0.035em;" |
| 54 | + > |
| 55 | + {{ title || 'Comark' }} |
| 56 | + </div> |
| 57 | + |
| 58 | + <div |
| 59 | + v-if="description" |
| 60 | + style="font-family:'Geist';font-size:24px;color:#a1a1aa;line-height:1.5;margin-top:24px;max-width:700px;" |
| 61 | + > |
| 62 | + {{ truncate(description, 120) }} |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + |
| 66 | + <div style="position:relative;z-index:1;padding:0 56px 36px;"> |
| 67 | + <div style="display:flex;align-items:center;gap:16px;"> |
| 68 | + <div style="flex:1;height:1px;background:rgba(234,179,8,0.15);" /> |
| 69 | + <div style="font-family:'Geist Mono';font-size:13px;font-weight:500;letter-spacing:0.12em;color:rgba(234,179,8,0.6);"> |
| 70 | + COMPONENTS IN MARKDOWN |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + </div> |
| 75 | + </div> |
| 76 | +</template> |
0 commit comments