xkcd-retriever/server-implementation/templates/index.html
2024-12-06 20:19:35 +01:00

101 lines
No EOL
1.8 KiB
HTML

<!DOCTYPE html>
<head>
<title>xkcd-finder</title>
</head>
<body>
<div>
<h1 class="head">xkcd-finder</h1>
<h2 class="sub">Find me an xkcd for the topic ...</h2>
<form action="/search" method="POST">
{{form.csrf_token}}
{{form.ids}}
{{form.submit}}
</form>
</div>
</body>
<style>
* {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: #1b1b1b;
margin: 0px;
width: auto;
}
div {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
padding-top: 12.5rem;
}
form {
display: flex;
flex-flow: column;
width: 45%;
height: auto;
align-items: center;
}
form > input[type=text] {
font-weight: 500;
color: #eee;
padding: 0.5rem 0.75rem;
text-decoration: none;
background-color: #333;
border-radius: 10px;
border-style: solid;
border-width: 2px;
border-color: #b86cff;
height: 2rem;
width: 100%;
font-size: 2rem;
text-align: center;
}
form > input[type=submit] {
font-weight: 500;
font-size: 1.5rem;
color: #eee;
margin: 1rem 0px 0px;
padding: 0.5rem 0.75rem;
text-decoration: none;
background-color: #333;
border-radius: 10px;
border-style: solid;
border-width: 2px;
border-color: #333;
text-transform: capitalize;
text-align: center;
width: 50%;
}
form > input[type=submit]:hover {
border-color: #b86cff;
}
.head {
margin: 0 .5rem;
hyphens: auto;
padding-top: 2rem;
font-size: 3.25rem;
font-weight: 700;
}
.sub {
margin: 0 .5rem;
font-size: 1.2rem;
font-weight: 500;
color: #eee;
padding-bottom: 1rem;
}
.head {
color: #b86cff;
}
</style>