araozu.dev/src/layouts/BlogLayout.astro

83 lines
2.8 KiB
Plaintext
Raw Normal View History

2024-05-20 22:47:25 +00:00
---
const { frontmatter } = Astro.props;
---
<!doctype html>
2024-05-17 23:53:35 +00:00
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<link rel="stylesheet" href="/global.css" />
2024-05-20 22:47:25 +00:00
<link rel="stylesheet" href="/blog.css" />
<title>Blog - Fernando Araoz</title>
2024-05-17 23:53:35 +00:00
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@phosphor-icons/web@2.1.1/src/regular/style.css"
/>
<script src="//unpkg.com/alpinejs" defer></script>
2024-05-21 01:05:51 +00:00
<style>
html {
font-size: 18px;
}
</style>
2024-05-17 23:53:35 +00:00
</head>
2024-05-21 01:05:51 +00:00
<body>
2024-05-20 22:47:25 +00:00
<div id="blog" class="container mx-auto max-w-[1000px]">
2024-05-21 01:05:51 +00:00
<a
class="font-etoile text-3xl text-center py-10 font-bold dark:bg-c-bg-2 text-c-on-bg my-4 rounded
inline-block w-full hover:underline cursor-pointer"
href="/"
2024-05-20 22:47:25 +00:00
>
Fernando Araoz: le ブログ
2024-05-21 01:05:51 +00:00
</a>
2024-05-20 22:47:25 +00:00
<div class="py-6">
{
frontmatter?.title && (
2024-05-21 01:05:51 +00:00
<h1 class="font-etoile text-center text-4xl py-2">
2024-05-20 22:47:25 +00:00
{frontmatter.title}
</h1>
)
}
{
frontmatter?.pubDate && (
<p class="text-center text-sm">
Published: {frontmatter.pubDate}
</p>
)
}
2024-05-21 01:05:51 +00:00
{
frontmatter?.image && (
<figure>
<img
class="dark:opacity-70 rounded pt-8"
src={frontmatter.image.url}
alt={frontmatter.image.alt}
/>
<figcaption class="text-xs text-center pt-2 pb-8 opacity-75">
{frontmatter.image.caption}
</figcaption>
</figure>
)
}
</div>
<div class="text-base">
<slot />
2024-05-20 22:47:25 +00:00
</div>
2024-05-21 01:05:51 +00:00
<div class="min-h-40"></div>
2024-05-20 22:47:25 +00:00
</div>
2024-05-17 23:53:35 +00:00
</body>
</html>