add about me section and page boilerplate
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
import Button from './Button.astro';
|
||||
import Label from './Label.astro';
|
||||
import { about } from '../data/about';
|
||||
import { site } from '../data/site';
|
||||
|
||||
interface Props { more?: boolean; }
|
||||
const { more } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="">
|
||||
<div class="border border-line bg-panel px-6 py-6 max-sm:px-4">
|
||||
<p class="text-[24px] leading-snug font-semibold tracking-[-0.01em] max-sm:text-[20px]">{about.lead}</p>
|
||||
<div class="mt-4 flex flex-col gap-3 text-body">
|
||||
{about.paragraphs.map((p) => <p>{p}</p>)}
|
||||
</div>
|
||||
<div class="mt-6 flex flex-wrap gap-3">
|
||||
{more && <Button primary href="/about">More about me</Button>}
|
||||
<Button href={site.github}>GitHub</Button>
|
||||
<Button href={site.linkedin}>LinkedIn</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user