mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 02:31:31 +08:00
16 lines
385 B
Plaintext
16 lines
385 B
Plaintext
---
|
|
import { cn } from '@/utils'
|
|
|
|
const { class: className, title, subtitle } = Astro.props
|
|
---
|
|
|
|
<section class={cn(className, 'flex flex-col gap-y-5 md:flex-row md:gap-y-0')}>
|
|
<div class='md:w-1/3'>
|
|
<h2 class='font-semibol text-xl'>{title}</h2>
|
|
<h3 class='text-muted-foreground'>{subtitle}</h3>
|
|
</div>
|
|
<div class='flex flex-col gap-y-3 md:w-2/3'>
|
|
<slot />
|
|
</div>
|
|
</section>
|