This commit is contained in:
vanten 2023-08-02 20:43:11 +02:00
parent fdbe6c4fe7
commit d2e2b24288
Signed by: vanten-s
GPG key ID: DE3060396884D3F2
5 changed files with 62 additions and 15 deletions

2
frmWrk

@ -1 +1 @@
Subproject commit 8917135a5513f22926ae079c375ae44dd398fd35
Subproject commit 72eff55c4c90d3c9d7a813cce26ee3ef3cca2f70

View file

View file

@ -1,9 +1,5 @@
import frmWrk.website
import markdown
def router(method, path, headers):
return "200 OK", "Hello".encode("utf-8"), {}
webserver = frmWrk.website.WebServer("localhost", 3000, "./src/", custom_router=router)
webserver = frmWrk.website.WebServer("localhost", 3000, "./src/")
webserver.start()

View file

@ -1,3 +1,28 @@
h1 {
text-align: center;
:root {
--bg-color: #1e1e2e;
--text-color: #cdd6f4;
--link-color: #94e2d5;
}
body {
font-family: Hack, monospace;
background-color: var(--bg-color);
color: var(--text-color);
padding: 5em;
margin: 0;
}
a {
color: var(--link-color);
text-decoration: underline var(--bg-color) auto;
transition: all .5s;
}
a:hover {
text-decoration: underline var(--link-color) auto;
}
img {
padding: 1em;
}

View file

@ -2,15 +2,41 @@
<html>
<head>
<meta charset="utf-8"/>
<title>Marked in the browser</title>
<title>Homepage</title>
<link rel="stylesheet" href="assets/main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.3.0/web/hack.min.css">
</head>
<body>
<div id="content"></div>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
document.getElementById('content').innerHTML =
marked.parse('# Marked in the browser\n\nRendered by **marked**.');
</script>
<h1>Vanten</h1>
<p>Software dev, OSS enthusiast, server admin and 13 year old</p>
<h3>Socials</h1>
<ul>
<li><a href="https://github.com/vanten-s" >Github</a></li>
<li><a href="mailto:vanten-s@vanten-s.com" >Mail</a></li>
<li><a rel="me" href="https://kolektiva.social/@vanten_s">Mastodon (kolektiva.social)</a></li>
<li>Matrix: @vanten-s:matrix.org</li>
</ul>
<h3>Weird computer thingys that I know</h3>
<ul>
<li>Rust</li>
<li>Python</li>
<li>C++</li>
<li>C</li>
<li>Java</li>
<li>Bash</li>
<li>Processor design</li>
<li>Server administration</li>
</ul>
<h3>Projects</h3>
<ul>
<li><a href="https://gitlab.vanten-s.com/vanten-s/vanten-s.com">This website</a></li>
<li><a href="https://github.com/vanten-s/frmWrk" >The webserver this is running on</a></li>
<li><a href="https://github.com/vanten-s/8bit-computer" >Pretty simple 8 bit processor</a></li>
</ul>
<img src="https://github-profile-summary-cards.vercel.app/api/cards/most-commit-language?username=vanten-s&theme=tokyonight">
<br>
<img src="https://github-profile-trophy.vercel.app/?username=vanten-s&theme=tokyonight"
</body>
</html>