mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 10:41:30 +08:00
feat: 迁移之前的博客组件
This commit is contained in:
15
src/components/componentsBefore/Section.astro
Normal file
15
src/components/componentsBefore/Section.astro
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
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>
|
Reference in New Issue
Block a user