This commit is contained in:
Jorijn van der Graaf 2025-11-14 23:56:39 +01:00
commit e3bc669118
7 changed files with 46 additions and 17 deletions

View file

@ -11,7 +11,7 @@ import Crafter.CppDOM;
using namespace Crafter;
export namespace Catcrafts {
HtmlElementView* body = new HtmlElementView("body", R"(
HtmlElementPtr body("body", R"(
<header>
<div class="nav-container">
<a href="/" class="logo">🐱 Catcrafts</a>
@ -36,12 +36,13 @@ export namespace Catcrafts {
</div>
</footer>)");
HtmlElementView* head = new HtmlElementView("head", R"(
HtmlElementPtr head("head", R"(
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Catcrafts.net</title>
<link rel="stylesheet" href="/styles.css">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
)");
HtmlElementView* main = new HtmlElementView("main");
HtmlElementPtr main("main");
}