0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

refactor: replace header with div (#8204)

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
Arjun 2023-08-24 01:14:52 +05:30 committed by GitHub
parent 0eb7f19729
commit 85f2c2464c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,13 +8,13 @@ interface Props {
const { align = 'center', tagline, title } = Astro.props; const { align = 'center', tagline, title } = Astro.props;
--- ---
<header class:list={['hero stack gap-4', align]}> <div class:list={['hero stack gap-4', align]}>
<div class="stack gap-2"> <div class="stack gap-2">
<h1 class="title">{title}</h1> <h1 class="title">{title}</h1>
{tagline && <p class="tagline">{tagline}</p>} {tagline && <p class="tagline">{tagline}</p>}
</div> </div>
<slot /> <slot />
</header> </div>
<style> <style>
.hero { .hero {