Add an about page

This commit is contained in:
magmaus3 2023-06-09 14:05:33 +02:00
parent 303fd8b594
commit 30beb7cdaa
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
4 changed files with 42 additions and 1 deletions

View file

@ -72,6 +72,11 @@ async def combineCSSResources(resources: str, response: Response):
async def root(): async def root():
template = template_env.get_template("home.html") template = template_env.get_template("home.html")
return template.render() return template.render()
@app.get("/about", response_class=HTMLResponse)
async def root():
template = template_env.get_template("about.html")
return template.render()
@app.get("/search", response_class=HTMLResponse) @app.get("/search", response_class=HTMLResponse)

View file

@ -42,6 +42,19 @@
font-size: larger; font-size: larger;
} }
footer {
display: flex;
justify-content: space-evenly;
padding: 0.5rem;
font-size: small;
}
footer > a {
margin: 0em 1em;
}
.About {
display: flex;
justify-content: center;
text-align: center;
}

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>IWM Browser</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ combineCSS(
'/static/index.css',
'/static/main.css',
'/static/homepage.css',
) }}">
</head>
<body>
<div class="Home About">
<div class="contentBox_">
<h1>You're on IWM Browser, </h1>
<h2>a service for displaying <a href="https://iwannamakergame.com">I Wanna Maker</a> online levels in your browser.</h2>
<p>You can find the source code <a href="https://git.magmaus3.eu.org/magmaus3/iwm_browser">here</a>.</p>
</div>
</div>
</body>
</html>

View file

@ -58,6 +58,7 @@
<div class="tileBox"><a href="/search?q=&sort=created_at&dir=desc&date=-1&type=Recent">Recent ❓</a></div> <div class="tileBox"><a href="/search?q=&sort=created_at&dir=desc&date=-1&type=Recent">Recent ❓</a></div>
<div class="tileBox"><a href="/search">Search 🔍</a></div> <div class="tileBox"><a href="/search">Search 🔍</a></div>
</div> </div>
<footer><a href="/about">About</a><a href="https://git.magmaus3.eu.org/magmaus3/iwm_browser">Source Code</a></footer>
</div> </div>
</div> </div>
</body> </body>