mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2025-09-09 12:10:43 +00:00
check metadata
This commit is contained in:
@@ -5,18 +5,17 @@ import Root from './Root.astro'
|
||||
export type Props = {
|
||||
title: string
|
||||
readable?: boolean
|
||||
expanded?: boolean
|
||||
}
|
||||
|
||||
const { title, readable = false, expanded = true } = Astro.props
|
||||
const { title, readable = false } = Astro.props
|
||||
---
|
||||
|
||||
<Root>
|
||||
<Root {title}>
|
||||
<div>
|
||||
<h1>
|
||||
<SpacedLetters letters={title} {readable} />
|
||||
</h1>
|
||||
<section class:list={{ expanded }}>
|
||||
<section>
|
||||
<slot />
|
||||
</section>
|
||||
</div>
|
||||
@@ -39,9 +38,6 @@ const { title, readable = false, expanded = true } = Astro.props
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
section.expanded {
|
||||
margin-top: 5em;
|
||||
}
|
||||
|
||||
|
@@ -2,12 +2,17 @@
|
||||
import BaseHead from '../components/BaseHead.astro'
|
||||
import Nav from '../components/Nav.astro'
|
||||
import Progress from '../components/Progress.svelte'
|
||||
|
||||
interface Props {
|
||||
title?: string
|
||||
image?: string
|
||||
}
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<BaseHead />
|
||||
<BaseHead {...Astro.props} />
|
||||
</head>
|
||||
<body>
|
||||
<Nav />
|
||||
|
Reference in New Issue
Block a user