Add page deployment

This commit is contained in:
2025-12-13 00:59:42 +00:00
parent 67904204c2
commit 2c35679bd8
30 changed files with 4877 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<script setup>
defineProps({
variant: {
type: String,
default: 'default',
validator: (value) => ['default', 'blue', 'purple', 'green', 'amber', 'red', 'cyan'].includes(value)
}
})
const variantClasses = {
default: 'bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300',
blue: 'bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300',
purple: 'bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-300',
green: 'bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300',
amber: 'bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300',
red: 'bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300',
cyan: 'bg-cyan-100 dark:bg-cyan-900/30 text-cyan-700 dark:text-cyan-300'
}
</script>
<template>
<span
class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium"
:class="variantClasses[variant]"
>
<slot></slot>
</span>
</template>
+32
View File
@@ -0,0 +1,32 @@
<script setup>
defineProps({
hover: {
type: Boolean,
default: true
},
gradient: {
type: String,
default: null
}
})
</script>
<template>
<div
class="glass p-6 rounded-xl transition-all duration-300"
:class="{ 'hover:shadow-lg hover:-translate-y-1': hover }"
>
<div v-if="gradient" class="flex items-start gap-4">
<div
class="icon-box"
:class="gradient"
>
<slot name="icon"></slot>
</div>
<div class="flex-1">
<slot></slot>
</div>
</div>
<slot v-else></slot>
</div>
</template>
+41
View File
@@ -0,0 +1,41 @@
<script setup>
import { ref } from 'vue'
defineProps({
title: {
type: String,
default: null
}
})
const copied = ref(false)
const codeRef = ref(null)
const copyCode = async () => {
if (codeRef.value) {
const text = codeRef.value.innerText
await navigator.clipboard.writeText(text)
copied.value = true
setTimeout(() => {
copied.value = false
}, 2000)
}
}
</script>
<template>
<div class="rounded-xl overflow-hidden bg-gray-900 dark:bg-gray-950">
<div v-if="title" class="flex items-center justify-between px-4 py-2 bg-gray-800 dark:bg-gray-900 border-b border-gray-700">
<span class="text-gray-400 text-sm font-medium">{{ title }}</span>
<button
@click="copyCode"
class="text-gray-400 hover:text-white transition-colors p-1"
aria-label="Copy code"
>
<i v-if="copied" class="fas fa-check text-green-400"></i>
<i v-else class="fas fa-copy"></i>
</button>
</div>
<pre class="p-4 overflow-x-auto"><code ref="codeRef" class="text-sm text-gray-100 font-mono"><slot></slot></code></pre>
</div>
</template>
+38
View File
@@ -0,0 +1,38 @@
<script setup>
defineProps({
icon: {
type: String,
required: true
},
title: {
type: String,
required: true
},
description: {
type: String,
default: ''
},
gradient: {
type: String,
default: 'from-blue-500 to-blue-600'
}
})
</script>
<template>
<div class="glass p-5 rounded-xl group hover:shadow-lg transition-all duration-300">
<div class="flex items-start gap-4">
<div
class="w-12 h-12 rounded-xl bg-gradient-to-br flex items-center justify-center flex-shrink-0 group-hover:scale-110 transition-transform duration-300"
:class="gradient"
>
<i :class="icon" class="text-white"></i>
</div>
<div>
<h3 class="font-semibold text-gray-900 dark:text-gray-100 mb-1">{{ title }}</h3>
<p class="text-sm text-gray-600 dark:text-gray-400">{{ description }}</p>
<slot></slot>
</div>
</div>
</div>
</template>
+54
View File
@@ -0,0 +1,54 @@
<script setup>
defineProps({
title: {
type: String,
default: null
},
headers: {
type: Array,
required: true
},
rows: {
type: Array,
required: true
}
})
</script>
<template>
<div class="glass rounded-xl overflow-hidden">
<div v-if="title" class="px-6 py-4 border-b border-gray-200 dark:border-gray-700">
<h3 class="font-semibold text-gray-900 dark:text-gray-100">{{ title }}</h3>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="bg-gray-50 dark:bg-gray-800/50">
<th
v-for="header in headers"
:key="header"
class="px-6 py-3 text-left text-xs font-semibold text-gray-600 dark:text-gray-400 uppercase tracking-wider"
>
{{ header }}
</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
<tr
v-for="(row, index) in rows"
:key="index"
class="hover:bg-gray-50 dark:hover:bg-gray-800/30 transition-colors"
>
<td
v-for="(cell, cellIndex) in row"
:key="cellIndex"
class="px-6 py-4 text-sm text-gray-700 dark:text-gray-300"
>
<span v-html="cell"></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>