Artciles and Uses page

This commit is contained in:
2023-08-12 22:58:00 +02:00
parent b90829a543
commit d97278c344
16 changed files with 267 additions and 113 deletions

View File

@@ -0,0 +1,29 @@
<script setup lang="ts">
defineProps({
title: {
type: String,
default: 'Uses Section title',
},
})
const appConfig = useAppConfig()
function getColor() {
return `text-${appConfig.ui.primary}-500`
}
</script>
<template>
<section class="md:border-l md:border-zinc-100 md:pl-6 md:dark:border-zinc-700/40 mb-16">
<div class="grid max-w-3xl grid-cols-1 items-baseline gap-y-8 md:grid-cols-4">
<h2 class="text-sm font-semibold" :class="getColor()">
{{ title }}
</h2>
<div class="md:col-span-3">
<ul class="space-y-16">
<slot />
</ul>
</div>
</div>
</section>
</template>

View File

@@ -0,0 +1,19 @@
<script setup lang="ts">
defineProps({
title: {
type: String,
default: 'Uses Slot title',
},
})
</script>
<template>
<li class="group relative flex flex-col items-start">
<h3 class="text-base font-semibold tracking-tight text-zinc-800 dark:text-zinc-100">
{{ title }}
</h3>
<p class="relative z-10 mt-2 text-sm text-zinc-600 dark:text-zinc-400">
<slot />
</p>
</li>
</template>