araozu.dev/src/layouts/BlogLayout.astro

89 lines
3.3 KiB
Plaintext
Raw Normal View History

2024-05-20 22:47:25 +00:00
---
2024-07-15 14:05:28 +00:00
const { frontmatter, lang } = Astro.props;
2024-05-20 22:47:25 +00:00
---
<!doctype html>
2024-07-15 14:05:28 +00:00
<html lang={lang ?? "en"}>
2024-05-17 23:53:35 +00:00
<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
2024-07-15 14:05:28 +00:00
href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap"
2024-05-17 23:53:35 +00:00
rel="stylesheet"
/>
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@phosphor-icons/web@2.1.1/src/regular/style.css"
/>
2024-07-15 14:05:28 +00:00
<script src="//unpkg.com/alpinejs" is:inline 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-07-15 14:05:28 +00:00
<div class="grid grid-cols-[4rem_auto]">
<div class="h-screen">
<nav
class="fixed top-0 left-0 bg-black text-white rotate-[-90deg] font-display w-[100vh] translate-y-[100vh] px-8 py-2"
style="transform-origin: 0% 0%;"
>
<a class="font-semibold inline-block text-2xl hover:underline" href={"/blog/" + lang}>
Fernando Araoz
</a>
<a class="ml-6 inline-block hover:underline" href="/blog/en">Eng Blog</a>
<a class="ml-6 inline-block hover:underline" href="/blog/es">Es Blog</a>
</nav>
2024-05-21 01:05:51 +00:00
</div>
2024-07-15 14:05:28 +00:00
<div id="blog" class="container mx-auto max-w-[1000px]">
<div class="py-6">
{
frontmatter?.title && (
<h1 class="font-etoile text-center text-4xl py-2">
{frontmatter.title}
</h1>
)
}
{
frontmatter?.pubDate && (
<p class="text-center text-sm">
Published: {frontmatter.pubDate}
</p>
)
}
{
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>
2024-05-21 01:05:51 +00:00
2024-07-15 14:05:28 +00:00
<div class="text-base">
<slot />
</div>
2024-05-20 22:47:25 +00:00
2024-07-15 14:05:28 +00:00
<div class="min-h-40"></div>
</div>
2024-05-20 22:47:25 +00:00
</div>
2024-05-17 23:53:35 +00:00
</body>
</html>