added contact page

This commit is contained in:
rami 2024-03-27 17:46:21 -04:00
parent 4fe472846a
commit 14aa8fbdfa
3 changed files with 69 additions and 2 deletions

View File

@ -24,6 +24,10 @@ int main() {
return crow::mustache::load_text("index.html");
});
CROW_ROUTE(app, "/contact")([](){
return crow::mustache::load_text("contact.html");
});
CROW_ROUTE(app, "/blog")([](){
std::string posts = "";
std::filesystem::path postsDir("posts");

63
templates/contact.html Executable file
View File

@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap" rel="stylesheet">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
color: #d3c6aa;
font-family: 'JetBrains Mono', monospace;
}
html, body {
width: 100%;
height: 100%;
}
body {
background: #2d353b;
display: flex;
justify-content: center;
align-items: center;
}
ul {
display: flex;
list-style: none;
}
ul > li {
margin: 5px;
font-size: 15px;
}
#wrapper {
display: flex;
flex-direction: column;
}
</style>
</head>
<body>
<div id="wrapper">
<pre>
_ __ __
_______ ___ _ (_) /__ ___/ /__ _ __
/ __/ _ `/ ' \/ / '_// _ / -_) |/ /
/_/ \_,_/_/_/_/_/_/\_(_)_,_/\__/|___/
</pre>
<ul>
<li>[</li>
<li><a href="/">../</a></li>
<li><a href="mailto:rami.kaldany@pm.me">rami.kaldany@pm.me</a></li>
<li><a href="https://www.linkedin.com/in/ramikaldany">LinkedIn</a></li>
<li>]</li>
</ul>
</div>
</body>
</html>

View File

@ -53,9 +53,9 @@
</pre>
<ul>
<li>[</li>
<li><a href="#">home</a></li>
<li><a href="#">../</a></li>
<li><a href="#">about</a></li>
<li><a href="#">contact</a></li>
<li><a href="/contact">contact</a></li>
<li><a href="https://git.ramik.dev/rami">git</a></li>
<li><a href="/blog">blog</a></li>
<li>]</li>