update
This commit is contained in:
parent
84dc769e88
commit
02c07ceaa2
6 changed files with 575 additions and 31 deletions
|
|
@ -25,4 +25,4 @@ export namespace Catcrafts {
|
|||
}
|
||||
};
|
||||
std::string RenderBlog();
|
||||
}
|
||||
}
|
||||
|
|
@ -11,10 +11,37 @@ import Crafter.CppDOM;
|
|||
using namespace Crafter;
|
||||
|
||||
export namespace Catcrafts {
|
||||
HtmlElementView* body = new HtmlElementView("body");
|
||||
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"(
|
||||
<style>
|
||||
|
||||
</style>
|
||||
)");//add style here
|
||||
<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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue