2023-04-03 15:10:08 +00:00
|
|
|
#include "routes.h"
|
|
|
|
|
|
|
|
void css_route(const httplib::Request& req, httplib::Response& res) {
|
|
|
|
res.set_content(R"EOF(
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--background-color: black;
|
|
|
|
--text-color: white;
|
2023-04-03 15:27:07 +00:00
|
|
|
|
|
|
|
--error-background-color: rgb(100, 0, 0);
|
|
|
|
--error-border-color: red;
|
|
|
|
--error-text-color: white;
|
|
|
|
|
2023-04-03 15:10:08 +00:00
|
|
|
--accent-color: #962AC3;
|
|
|
|
--dark-accent-color: #7D3F7D;
|
|
|
|
--bright-accent-color: #DE6DE6;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background-color: var(--background-color);
|
|
|
|
color: var(--text-color);
|
2023-04-03 15:45:05 +00:00
|
|
|
font-family: sans-serif;
|
2023-04-03 15:10:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--accent-color);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
color: var(--bright-accent-color);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2023-04-06 15:28:02 +00:00
|
|
|
img {
|
2023-04-05 16:36:20 +00:00
|
|
|
object-fit: cover;
|
2023-04-06 15:28:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.cover {
|
2023-04-05 16:36:20 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 50vh;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
.profilepicture {
|
|
|
|
width: 5em;
|
|
|
|
height: 5em;
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
|
|
|
.usermetadata {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: .5em;
|
|
|
|
}
|
|
|
|
|
2023-04-07 15:06:31 +00:00
|
|
|
.center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2023-04-03 15:27:07 +00:00
|
|
|
.error {
|
|
|
|
text-align: center;
|
|
|
|
background-color: var(--error-background-color);
|
|
|
|
color: var(--error-text-color);
|
|
|
|
border-style: solid;
|
|
|
|
border-color: var(--error-border-color);
|
|
|
|
}
|
|
|
|
|
2023-04-03 15:10:08 +00:00
|
|
|
)EOF", "text/css");
|
|
|
|
}
|