mirror of
https://github.com/Fluffy-Bean/website.git
synced 2025-06-13 06:03:13 +00:00
Create my own pages
This commit is contained in:
parent
2fc6cdfa26
commit
5970f11bcc
9 changed files with 437 additions and 185 deletions
58
src/layouts/Markdown.astro
Normal file
58
src/layouts/Markdown.astro
Normal file
|
@ -0,0 +1,58 @@
|
|||
---
|
||||
import Layout from "./Layout.astro";
|
||||
import Pill from "../components/Pill.astro";
|
||||
const { frontmatter } = Astro.props;
|
||||
---
|
||||
|
||||
<Layout title="Leggy Land" src={frontmatter.image.url} alt={frontmatter.image.alt}>
|
||||
<a id="back" href="/">Back</a>
|
||||
<h1>{frontmatter.title}</h1>
|
||||
<p>By {frontmatter.author}</p>
|
||||
|
||||
<ul id="tags">
|
||||
{frontmatter.tags.map((item) => (
|
||||
<Pill name={item} />
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
<slot />
|
||||
</Layout>
|
||||
|
||||
<style is:global lang="scss">
|
||||
@import "../styles/vars";
|
||||
|
||||
#back {
|
||||
margin-bottom: 32px;
|
||||
padding: 0 32px;
|
||||
|
||||
width: max-content;
|
||||
height: 35px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
text-decoration: none;
|
||||
|
||||
border-radius: 9999px;
|
||||
border: 2px solid $gray;
|
||||
background-color: $gray;
|
||||
color: $light;
|
||||
|
||||
&:hover, &:focus-visible {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
#tags {
|
||||
padding-top: 16px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue