pixwhile/routes/css.cpp

30 lines
623 B
C++
Raw Normal View History

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;
--accent-color: #962AC3;
--dark-accent-color: #7D3F7D;
--bright-accent-color: #DE6DE6;
}
body {
background-color: var(--background-color);
color: var(--text-color);
}
a {
color: var(--accent-color);
text-decoration: none;
}
a:hover {
color: var(--bright-accent-color);
text-decoration: underline;
}
)EOF", "text/css");
}