|
| 1 | +<script setup> |
| 2 | +import { computed } from 'vue' |
| 3 | +
|
| 4 | +defineProps({ |
| 5 | + colorMode: { default: 'light', required: false, type: String }, |
| 6 | + description: { required: false, type: String }, |
| 7 | + isPro: { required: false, type: Boolean }, |
| 8 | + title: { default: 'title', required: false, type: String }, |
| 9 | +}) |
| 10 | +const themeColor = computed(() => '178, 151, 18') |
| 11 | +</script> |
| 12 | + |
| 13 | +<template> |
| 14 | + <div |
| 15 | + class="w-full h-full justify-center items-center relative p-10 lg:p-[60px] bg-white text-neutral-900 dark:bg-neutral-900 dark:text-neutral-50" |
| 16 | + > |
| 17 | + <!-- Gradient background --> |
| 18 | + <div |
| 19 | + class="absolute top-0 left-0 right-0 bottom-0" |
| 20 | + :style="{ |
| 21 | + backgroundImage: `radial-gradient(ellipse 100% 100% at 100% 100%, rgba(${themeColor}, 0.15) 0%, transparent 60%)`, |
| 22 | + }" |
| 23 | + /> |
| 24 | + <div |
| 25 | + class="absolute top-0 left-0 right-0 bottom-0" |
| 26 | + :style="{ |
| 27 | + backgroundImage: `radial-gradient(ellipse 100% 100% at 0.1% 0.1%, rgba(${themeColor}, 0.1) 0%, transparent 50%)`, |
| 28 | + }" |
| 29 | + /> |
| 30 | + |
| 31 | + <div class="w-full flex-col justify-center relative items-center text-center gap-5 lg:gap-8"> |
| 32 | + <!-- Logo --> |
| 33 | + <div class="flex items-center gap-1"> |
| 34 | + <svg |
| 35 | + viewBox="0 0 64 64" |
| 36 | + class="w-10 h-10 lg:w-16 lg:h-16" |
| 37 | + > |
| 38 | + <defs> |
| 39 | + <linearGradient |
| 40 | + :id="isPro ? 'nsLine2' : 'nsLine1'" |
| 41 | + x1="0%" |
| 42 | + y1="100%" |
| 43 | + x2="100%" |
| 44 | + y2="0%" |
| 45 | + > |
| 46 | + <stop |
| 47 | + offset="0%" |
| 48 | + :stop-color="isPro ? '#7c3aed' : '#22c55e'" |
| 49 | + /> |
| 50 | + <stop |
| 51 | + offset="100%" |
| 52 | + :stop-color="isPro ? '#c4b5fd' : '#86efac'" |
| 53 | + /> |
| 54 | + </linearGradient> |
| 55 | + <linearGradient |
| 56 | + :id="isPro ? 'nsFill2' : 'nsFill1'" |
| 57 | + x1="0%" |
| 58 | + y1="0%" |
| 59 | + x2="0%" |
| 60 | + y2="100%" |
| 61 | + > |
| 62 | + <stop |
| 63 | + offset="0%" |
| 64 | + :stop-color="isPro ? '#7c3aed' : '#22c55e'" |
| 65 | + stop-opacity="0.6" |
| 66 | + /> |
| 67 | + <stop |
| 68 | + offset="100%" |
| 69 | + :stop-color="isPro ? '#7c3aed' : '#22c55e'" |
| 70 | + stop-opacity="0" |
| 71 | + /> |
| 72 | + </linearGradient> |
| 73 | + </defs> |
| 74 | + <path |
| 75 | + d="M8 52 Q20 48 24 36 T40 20 T56 12 L56 56 L8 56 Z" |
| 76 | + :fill="`url(#${isPro ? 'nsFill2' : 'nsFill1'})`" |
| 77 | + /> |
| 78 | + <path |
| 79 | + d="M8 52 Q20 48 24 36 T40 20 T56 12" |
| 80 | + fill="none" |
| 81 | + :stroke="`url(#${isPro ? 'nsLine2' : 'nsLine1'})`" |
| 82 | + stroke-width="4" |
| 83 | + stroke-linecap="round" |
| 84 | + /> |
| 85 | + <circle |
| 86 | + cx="56" |
| 87 | + cy="12" |
| 88 | + r="6" |
| 89 | + :fill="`url(#${isPro ? 'nsLine2' : 'nsLine1'})`" |
| 90 | + /> |
| 91 | + </svg> |
| 92 | + <span class="text-[32px] lg:text-[42px] font-bold tracking-tight"> |
| 93 | + Nuxt<span |
| 94 | + :class="isPro ? 'text-violet-500' : 'text-green-500'" |
| 95 | + class="ml-1" |
| 96 | + >SEO{{ isPro ? " Pro" : "" }}</span> |
| 97 | + </span> |
| 98 | + </div> |
| 99 | + |
| 100 | + <!-- Title --> |
| 101 | + <h1 |
| 102 | + class="w-full justify-center text-center text-[48px] lg:text-[80px] font-bold m-0 leading-tight max-w-[700px] lg:max-w-[1000px]" |
| 103 | + style="display: block; line-clamp: 3; text-overflow: ellipsis; text-wrap: balance;" |
| 104 | + > |
| 105 | + {{ title }} |
| 106 | + </h1> |
| 107 | + |
| 108 | + <!-- Description --> |
| 109 | + <p |
| 110 | + v-if="description" |
| 111 | + class="text-[24px] lg:text-[32px] opacity-70 max-w-[650px] lg:max-w-[900px] leading-relaxed" |
| 112 | + style="display: block; line-clamp: 2; text-overflow: ellipsis;" |
| 113 | + > |
| 114 | + {{ description }} |
| 115 | + </p> |
| 116 | + </div> |
| 117 | + </div> |
| 118 | +</template> |
0 commit comments