coyote/routes/home.cpp

25 lines
1.4 KiB
C++
Raw Normal View History

2023-11-24 04:29:33 +00:00
#include "routes.h"
#include "../servehelper.h"
void home_route(const httplib::Request& req, httplib::Response& res) {
Element body("body", {
Element("p", {"Coyote, a Javascript-less Mastodon frontend."}),
Element("h2", {"Example links"}),
Element("ul", {
Element("li", {Element("a", {{"href", get_origin(req) + "/vt.social/@lina"}}, {"Asahi Lina (朝日リナ) // nullptr::live"})}),
Element("li", {Element("a", {{"href", get_origin(req) + "/vt.social/@LucydiaLuminous/111290028216105435"}}, {"\"I love kids and their creativity. So I was explain…\""})}),
}),
Element("hr"),
Element("p", {
"The ", Element("a", {{"href", "https://gitlab.com/blankX/coyote"}}, {"source code"}), " to Coyote is available under the ",
Element("a", {{"href", "https://gitlab.com/blankX/coyote/-/blob/master/LICENSE"}}, {"MIT license"}), ". "
"Some icons are used from ", Element("a", {{"href", "https://fontawesome.com"}}, {"Font Awesome"}), " Free, which are created by Fonticons, Inc. and ",
Element("a", {{"href", "https://fontawesome.com/license/free#icons"}}, {"licensed"}), " under the ",
Element("a", {{"href", "https://creativecommons.org/licenses/by/4.0/"}}, {"CC-BY 4.0"}), ". "
"Icons used are slightly modified for better accessibility."
}),
});
serve(req, res, "Coyote", std::move(body));
}