coyote/routes/home.cpp

27 lines
1.7 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…\""})}),
2023-11-24 06:37:26 +00:00
Element("li", {Element("a", {{"href", get_origin(req) + "/ruby.social/@CoralineAda/109951421922797743"}}, {"\"My partner just said \"I'm starting to think nostal…\""})}),
2023-11-24 11:43:53 +00:00
Element("li", {Element("a", {{"href", get_origin(req) + "/pawoo.net/tags/OMORIFANART"}}, {"#OMORIFANART"})}),
2023-11-24 04:29:33 +00:00
}),
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));
}