fix: replace div with main element for semantic HTML structure in Layout component

This commit is contained in:
fiatcode 2026-01-23 08:14:52 +07:00
parent 6c1caf1c27
commit f3f3adfd96

View file

@ -23,9 +23,9 @@ const { title, description } = Astro.props;
</head> </head>
<body class="h-screen max-w-5xl mx-auto flex flex-col font-sans p-4"> <body class="h-screen max-w-5xl mx-auto flex flex-col font-sans p-4">
<Header /> <Header />
<div class="w-full max-w-3xl mx-auto flex-1 py-12"> <main class="w-full max-w-3xl mx-auto flex-1 py-12">
<slot /> <slot />
</div> </main>
<Footer /> <Footer />
</body> </body>
</html> </html>