elements view & empty check

This commit is contained in:
2025-06-22 02:53:08 +02:00
parent 1cb1c93739
commit f3b71ecb32
2 changed files with 81 additions and 19 deletions

View File

@@ -0,0 +1,36 @@
---
import MardownContent from '../components/MardownContent.astro';
interface Props {
entry: {
data: {
title: string;
description: string;
};
};
}
const { entry } = Astro.props;
---
<div class="element-view">
<h1>{entry.data.title}</h1>
<MardownContent content={entry.data.description} />
</div>
<style>
.element-view {
max-width: 56rem;
margin-left: auto;
margin-right: auto;
}
.element-view h1 {
font-size: 2.25rem;
font-weight: 700;
color: #111827;
margin-bottom: 1.5rem;
margin-top: 2rem;
line-height: 1.2;
}
</style>