Improve timeline options and menu bar

FossilOrigin-Name: f1411b974a0626843c76428f683a87b5378ee7520ce96752f966ae370ed33cd9
This commit is contained in:
nekobit 2022-06-10 06:13:34 +00:00
parent 3518f86b2d
commit eb6c8285f7
7 changed files with 55 additions and 8 deletions

26
dist/treebird20.css vendored
View file

@ -1680,11 +1680,37 @@ ul.large-list li a
text-decoration: none;
}
.bullet-separate
{
color: #808080;
margin-left: 5px;
margin-right: 5px;
}
.menubar
{
background: linear-gradient(#fcfcfc, #efefef);
border-bottom: 1px solid #cacaca;
padding: 6px;
/* box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1); */
}
.mini-links
{
margin: 10px 8px;
text-align: center;
color: #909090;
font-size: 10px;
}
.mini-links .bullet-separate
{
color: #909090;
font-size: 10px;
margin: unset;
}
/******************************
* Scrobbles *
******************************/

View file

@ -16,6 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include "base_page.h"
#include "about.h"
@ -26,7 +27,7 @@ void content_about(struct session* ssn, mastodont_t* api, char** data)
{
struct base_page b = {
.category = BASE_CAT_NONE,
.content = data_about,
.content = (char*)data_about,
.sidebar_left = NULL
};
@ -37,13 +38,22 @@ void content_about(struct session* ssn, mastodont_t* api, char** data)
void content_about_license(struct session* ssn, mastodont_t* api, char** data)
{
char* page;
char* referer = getenv("HTTP_REFERER");
struct license_template tdata = {
.back_ref = referer,
.license_str = "License"
};
page = tmpl_gen_license(&tdata, NULL);
struct base_page b = {
.category = BASE_CAT_NONE,
.content = data_license,
.content = page,
.sidebar_left = NULL
};
// Output
render_base_page(&b, ssn, api);
free(page);
}

View file

@ -145,7 +145,10 @@ void render_base_page(struct base_page* page, struct session* ssn, mastodont_t*
.sidebar_leftbar = page->sidebar_left,
.instance_panel = ssn->config.instance_panel ? instance_str : "",
.main = page->content,
.sidebar_rightbar = sidebar_str
.sidebar_rightbar = sidebar_str,
.about_link_str = "About",
.license_link_str = "License",
.source_link_str = "Source code",
};
size_t len;

View file

@ -3,19 +3,19 @@
<h1><img id="about-icon" src="/treebird_logo.png"> <span>Treebird</span></h1>
</div>
<div class="about-content">
<p>Treebird is a Pleroma frontend that tries to be lightweight, efficient, and true to the web. It's written in C for no particular reason, but it has an open base for contributions. It is very tight to the philosophy of how the internet has always worked, while still being simple enough that anyone can use it.</p>
<p>Treebird is a Pleroma frontend that is lightweight, efficient, and true to the web. It's written in C with FCGI making it simple and fast to work with and deploy. It is very tight to the philosophy of how the internet has always worked; Javascript provides extra sugar (or scripting) to improve the experience but not a requirement, while still being simple enough that anyone can use it.</p>
<p>Treebird was created in response to PleromaFE being slow and being buggy. Treebird resembles GNU Social in appearance by default, but keeps the familiarity that many are used to of PleromaFE.</p>
<p>Treebird was created in response to PleromaFE performance issues and ironically a lack of PleromaAPI backend support. Treebird resembles GNU Social in appearance by default, but keeps the familiarity that many are used to of PleromaFE.</p>
<p>Treebird was created by <a href="/@nekobit@rdrama.cc">Nekobit</a>, who created <a href="https://fossil.nekobit.net/mastodont-c/home">mastodont-c</a>, a library that can communicate with Revolver's, Pleroma's, and Mastodon's REST APIs.</p>
<h3>Other contributors</h3>
<ul>
<li><a href="/@pch_xyz@seediqbale.xyz" alt="Chinese (Traditional) translations">Pacific Coast Highway (pch_xyz)</a></li>
<li><a href="/@grumbulon@freecumextremist.com" alt="Helped with the original dark theme, and created the original treebird.dev website">Grumbulon</a></li>
<li><a href="/@coyote@pl.lain.sh" alt="Created Solarized themes for Treebird">Coyote</a></li>
<li><a href="/@grumbulon@freecumextremist.com" alt="Helped with the original dark theme, and created the original treebird.dev website">Grumbulon</a></li>
<li><a href="/@khan@sleepy.cafe" alt="Started idea of treebird">Khan</a></li>
<li><a href="/@sam@froth.zone" alt="Testing with Nginx and documentation">SamTherapy</a></li>
<li><a href="/@pch_xyz@seediqbale.xyz" alt="Chinese (Traditional) translations">Pacific Coast Highway (pch_xyz)</a></li>
</ul>
<p>Treebird is licensed in AGPLv3, and mastodont-c is LGPLv3 licensed. Other licenses apply to libraries as well. <a href="/about/license">View the AGPLv3 license here.</a></p>

View file

@ -41,6 +41,13 @@
</ul>
{{ %s : sidebar_leftbar }}
{{ %s : instance_panel }}
<div class="mini-links">
<a href="{{%s:prefix}}/about">{{ %s : about_link_str }}</a>
<span class="bullet-separate">&bull;</span>
<a href="{{%s:prefix}}/about/license">{{ %s : license_link_str }}</a>
<span class="bullet-separate">&bull;</span>
<a href="https://fossil.nekobit.net/treebird">{{ %s : source_link_str }}</a>
</div>
</td>
<!-- Display for posts -->

View file

@ -1,4 +1,5 @@
<div class="simple-page">
<h1><a href="{{ %s : back_ref }}" class="page-back-btn">&lt;</a> {{ %s : license_str }}</h1>
<h3 style="text-align: center;">GNU AFFERO GENERAL PUBLIC LICENSE</h3>
<p style="text-align: center;">Version 3, 19 November 2007</p>

View file

@ -2,7 +2,7 @@
<form action="." method="post">
{{ %s : only_media }}
<input type="checkbox" name="only_media" value="1" {{ %s : only_media_active }}>
-
<span class="bullet-separate">&bull;</span>
{{ %s : replies }}
<select name="replies_only">
<option value="0">Show replies</option>