Add an about page
This commit is contained in:
parent
303fd8b594
commit
30beb7cdaa
4 changed files with 42 additions and 1 deletions
|
@ -72,6 +72,11 @@ async def combineCSSResources(resources: str, response: Response):
|
|||
async def root():
|
||||
template = template_env.get_template("home.html")
|
||||
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)
|
||||
|
|
|
@ -42,6 +42,19 @@
|
|||
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;
|
||||
}
|
||||
|
|
22
iwm_browser/templates/about.html
Normal file
22
iwm_browser/templates/about.html
Normal 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>
|
|
@ -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">Search 🔍</a></div>
|
||||
</div>
|
||||
<footer><a href="/about">About</a><a href="https://git.magmaus3.eu.org/magmaus3/iwm_browser">Source Code</a></footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue