47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/*
|
|
catcrafts.net
|
|
Copyright (C) 2025 Catcrafts
|
|
|
|
The source code of this website is made available for viewing purposes only.
|
|
No permission is granted to copy, modify, distribute, or create derivative works.
|
|
*/
|
|
|
|
export module Catcrafts:Views;
|
|
import Crafter.CppDOM;
|
|
using namespace Crafter;
|
|
|
|
export namespace Catcrafts {
|
|
HtmlElementView* body = new HtmlElementView("body", R"(
|
|
<header>
|
|
<div class="nav-container">
|
|
<a href="/" class="logo">🐱 Catcrafts</a>
|
|
<nav>
|
|
<ul>
|
|
<li><a id="blog-nav-button" style="cursor: pointer;" class="active">Blog</a></li>
|
|
<li><a href="https://forgejo.catcrafts.net/">Forgejo</a></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<main id="main"></main>
|
|
|
|
<footer>
|
|
<div class="footer-content">
|
|
<div class="footer-links">
|
|
Powered by Crafter.CppDOM, Running near native with WASM!
|
|
<a href="https://forgejo.catcrafts.net/Catcrafts/catcrafts.net">View source</a>
|
|
</div>
|
|
<p>© 2025 Catcrafts®. All rights reserved. Crafter® and Catcrafts® are registered trademarks with the EUIPO</p>
|
|
</div>
|
|
</footer>)");
|
|
|
|
HtmlElementView* head = new HtmlElementView("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">
|
|
)");
|
|
|
|
HtmlElementView* main = new HtmlElementView("main");
|
|
}
|