Compare commits

..

No commits in common. "59a2c9f7de04a0523f7d1389540043944d30a730" and "ae801566e20f07f025a4691621ee55db0e0d23c0" have entirely different histories.

12 changed files with 12 additions and 297 deletions

View File

@ -12,7 +12,7 @@ const default_html_options: Partial<HTMLOptions> = {
showBottomNavbar: true,
loadHamburgerMenu: true,
loadSearchModal: true,
bodyClasses: ["grid-layout-main"],
classes: ["grid-layout-main"],
};
export default function html({

View File

@ -1,28 +0,0 @@
import { promises as fs } from "fs";
import path from "path";
import _locreq from "locreq";
const locreq = _locreq(import.meta.dirname);
const cache = {} as Record<string, Promise<string> | undefined>;
export const svg_icon_path = "src/icons";
async function getIconUncached(icon_name: string): Promise<string> {
return fs.readFile(
locreq.resolve(path.resolve(svg_icon_path, icon_name + ".svg")),
"utf-8"
);
}
export async function icon(icon_name: string) {
if (!cache[icon_name]) {
cache[icon_name] = getIconUncached(icon_name);
}
try {
return cache[icon_name];
} catch (e) {
console.error(e);
return "";
}
}

View File

@ -24,7 +24,7 @@ footer {
li {
list-style: none;
display: inline-flex;
flex-basis: 50px;
flex-basis: 100px;
justify-content: center;
a {
@ -41,31 +41,9 @@ footer {
}
}
.wrapper {
display: flex;
flex-flow: row wrap;
align-items: center;
gap: 16px;
justify-content: space-between;
.footer__social_media_icons {
display: flex;
flex-flow: row wrap;
gap: 8px;
svg {
width: 24px;
height: 24px;
* {
fill: var(--color-brand-text-on-accent) !important;
}
}
}
.footer__attribution {
text-align: center;
align-self: end;
opacity: 0.6;
}
}
}

View File

@ -1,18 +1,7 @@
import { insert_nbsp } from "@sealcode/jdd";
import type { Context } from "koa";
import { icon } from "src/back/icons.js";
import { TempstreamJSX } from "tempstream";
const icons = [
{ name: "mastodon", url: "https://mastodon.strona-czynna.pl/@czynna" },
{ name: "peertube", url: "https://video.strona-czynna.pl/" },
{ name: "matrix", url: "https://matrix.to/#/#strona-czynna:matriks.chat" },
{ name: "telegram", url: "https://t.me/+JQl6ryW3_Ho5MDY0" },
{ name: "instagram", url: "https://www.instagram.com/strona_czynna" },
{ name: "twitter", url: "https://x.com/strona_czynna" },
{ name: "tiktok", url: "https://www.tiktok.com/@stronaczynna" },
];
export default async function footer(ctx: Context) {
const { items: navbar_items } = await ctx.$app.collections["navbar-links"]
.list(ctx.$context)
@ -34,19 +23,10 @@ export default async function footer(ctx: Context) {
</li>
))}
</ul>
<div class="wrapper">
<div class="footer__social_media_icons">
{icons.map((icon_data) => (
<a href={icon_data.url} title={icon_data.name}>
{icon(icon_data.name)}
</a>
))}
</div>
<div class="footer__attribution">
Implented using open technologies from{" "}
<a href="https://www.sealcode.it/">Sealcode</a>
</div>
</div>
</footer>
);
}

View File

@ -40,6 +40,9 @@ application.register("jdd-table-paste", JddTablePaste);
import { default as JsonEditor } from "./../../node_modules/@sealcode/jdd-editor/src/controllers/json-editor.stimulus.js";
application.register("json-editor", JsonEditor);
import { default as MarkdownTextarea } from "./../../node_modules/@sealcode/jdd-editor/src/controllers/markdown-textarea.stimulus.js";
application.register("markdown-textarea", MarkdownTextarea);
import { default as RefreshOnTsChanges } from "./../../node_modules/@sealcode/jdd-editor/src/controllers/refresh-on-ts-changes.stimulus.js";
application.register("refresh-on-ts-changes", RefreshOnTsChanges);

View File

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="32"
height="32"
viewBox="0 0 32 32"
version="1.1"
id="svg1"
sodipodi:docname="instagram.svg"
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="7.590389"
inkscape:cx="-6.9825143"
inkscape:cy="18.246759"
inkscape:window-width="1536"
inkscape:window-height="928"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<path
d="m 15.999998,3.4630405 c 4.083402,0 4.5677,0.015294 6.181179,0.089213 4.144576,0.1886215 6.080496,2.1551286 6.269117,6.2691174 0.07392,1.6122042 0.08794,2.0965032 0.08794,6.1799042 0,4.084677 -0.01529,4.567701 -0.08794,6.179905 -0.189896,4.110165 -2.120717,6.080496 -6.269117,6.269117 -1.613479,0.07392 -2.095228,0.08921 -6.181179,0.08921 -4.083402,0 -4.5677,-0.01529 -6.1799048,-0.08921 -4.1547719,-0.189896 -6.0804959,-2.165324 -6.2691175,-6.270391 -0.073919,-1.612205 -0.089213,-2.095229 -0.089213,-6.179905 0,-4.083402 0.016568,-4.566426 0.089213,-6.1799047 C 3.7408719,5.707382 5.6716937,3.7396004 9.8200933,3.5509789 11.433572,3.4783341 11.916596,3.4630405 15.999998,3.4630405 Z m 0,-2.7566784 c -4.153498,0 -4.673481,0.017842 -6.3048028,0.091762 -5.5541399,0.254894 -8.640906,3.3365622 -8.89579995,8.8957999 -0.075194,1.632596 -0.093036,2.15258 -0.093036,6.306077 0,4.153497 0.017842,4.674756 0.091762,6.306077 0.25489395,5.55414 3.33656215,8.640906 8.89579995,8.8958 1.6325958,0.07392 2.1525798,0.09176 6.3060768,0.09176 4.153497,0 4.674756,-0.01784 6.306077,-0.09176 5.549042,-0.254894 8.643455,-3.336562 8.894526,-8.8958 0.07519,-1.631321 0.09304,-2.15258 0.09304,-6.306077 0,-4.153497 -0.01784,-4.673481 -0.09176,-6.3048025 C 30.952079,4.1461563 27.866587,1.0542923 22.30735,0.7993984 20.674754,0.7242044 20.153495,0.7063624 15.999998,0.7063621 Z m 0,7.4403553 c -4.337021,0 -7.8532837,3.5162626 -7.8532837,7.8532836 0,4.337021 3.5162627,7.854558 7.8532837,7.854558 4.337021,0 7.853284,-3.516262 7.853284,-7.854558 0,-4.337021 -3.516263,-7.8532836 -7.853284,-7.8532836 z m 0,12.9511636 c -2.815304,0 -5.09788,-2.281302 -5.09788,-5.09788 0,-2.815304 2.282576,-5.09788 5.09788,-5.09788 2.815304,0 5.09788,2.282576 5.09788,5.09788 0,2.816578 -2.282576,5.09788 -5.09788,5.09788 z M 24.164252,6.0017845 c -1.014478,0 -1.836511,0.8220331 -1.836511,1.8352367 0,1.0132035 0.822033,1.8352366 1.836511,1.8352366 1.013204,0 1.833962,-0.8220331 1.833962,-1.8352366 0,-1.0132036 -0.820758,-1.8352367 -1.833962,-1.8352367 z"
id="path1"
style="stroke-width:1.27447" />
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="icon" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
<defs>
<style>
.cls-1 {
fill: none;
}
</style>
</defs>
<path d="m29.0581,11.1929c0-6.0742-3.9797-7.8545-3.9797-7.8545-2.0066-.9214-5.4522-1.3091-9.0318-1.3384h-.0879c-3.5798.0293-7.023.417-9.0296,1.3384,0,0-3.98,1.7803-3.98,7.8545,0,1.3911-.0271,3.0537.0171,4.8174.1445,5.9404,1.0889,11.7945,6.5811,13.2481,2.5322.6704,4.7063.8105,6.4573.7144,3.1755-.1758,4.958-1.1333,4.958-1.1333l-.1047-2.3037s-2.269.7153-4.8176.6284c-2.5249-.0869-5.1902-.2725-5.5986-3.3726-.0378-.272-.0566-.563-.0566-.8691,0,0,2.4785.606,5.6196.75,1.9207.0879,3.7219-.1128,5.5515-.3311,3.5083-.4189,6.563-2.5806,6.9468-4.5557.605-3.1113.5552-7.5928.5552-7.5928Zm-4.6943,7.8257h-2.9138v-7.1382c0-1.5049-.6331-2.2686-1.8997-2.2686-1.4002,0-2.1018.9058-2.1018,2.6973v3.9077h-2.8967v-3.9077c0-1.7915-.7019-2.6973-2.1021-2.6973-1.2666,0-1.8997.7637-1.8997,2.2686v7.1382h-2.9138v-7.3545c0-1.5029.3828-2.6978,1.1516-3.5811.7927-.8838,1.8308-1.3369,3.1196-1.3369,1.491,0,2.6204.5732,3.367,1.7192l.7256,1.2168.7261-1.2168c.7463-1.146,1.8755-1.7192,3.3667-1.7192,1.2886,0,2.3267.4531,3.1196,1.3369.7686.8833,1.1514,2.0781,1.1514,3.5811v7.3545Z" fill="__color"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
viewBox="0 0 32 32"
id="svg3"
width="32"
height="32"
>
<defs
id="defs3" />
<title
id="title1">Matrix (protocol) logo</title>
<g
transform="translate(1.982,0.036)"
fill="#040404"
id="g3">
<path
d="M 27.1,31.2 V 0.7 h -2.19 v -0.732 h 3.04 v 32 h -3.04 v -0.732 z"
id="path1" />
<path
d="m 8.23,10.4 v 1.54 h 0.044 c 0.385,-0.564 0.893,-1.03 1.49,-1.37 0.58,-0.323 1.25,-0.485 1.99,-0.485 0.72,0 1.38,0.14 1.97,0.42 0.595,0.279 1.05,0.771 1.36,1.48 0.338,-0.5 0.796,-0.941 1.38,-1.32 0.58,-0.383 1.27,-0.574 2.06,-0.574 0.602,0 1.16,0.074 1.67,0.22 0.514,0.148 0.954,0.383 1.32,0.707 0.366,0.323 0.653,0.746 0.859,1.27 0.205,0.522 0.308,1.15 0.308,1.89 v 7.63 h -3.13 v -6.46 c 0,-0.383 -0.015,-0.743 -0.044,-1.08 -0.0209,-0.307 -0.103,-0.607 -0.242,-0.882 -0.133,-0.251 -0.336,-0.458 -0.584,-0.596 -0.257,-0.146 -0.606,-0.22 -1.05,-0.22 -0.44,0 -0.796,0.085 -1.07,0.253 -0.272,0.17 -0.485,0.39 -0.639,0.662 -0.159,0.287 -0.264,0.602 -0.308,0.927 -0.052,0.347 -0.078,0.697 -0.078,1.05 v 6.35 h -3.13 v -6.4 c 0,-0.338 -0.007,-0.673 -0.021,-1 -0.0114,-0.314 -0.0749,-0.623 -0.188,-0.916 -0.108,-0.277 -0.3,-0.512 -0.55,-0.673 -0.258,-0.168 -0.636,-0.253 -1.14,-0.253 -0.198,0.0083 -0.394,0.042 -0.584,0.1 -0.258,0.0745 -0.498,0.202 -0.705,0.374 -0.228,0.184 -0.422,0.449 -0.584,0.794 -0.161,0.346 -0.242,0.798 -0.242,1.36 v 6.62 h -3.13 v -11.4 z"
id="path2" />
<path
d="m 0.936,0.732 v 30.5 h 2.19 v 0.732 h -3.04 v -32 h 3.03 v 0.732 z"
id="path3" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
fill="#000000"
width="32"
height="32"
viewBox="0 0 0.96 0.96"
role="img"
version="1.1"
>
<path
d="M 0.17882848,0.02791469 V 0.48595566 L 0.5223592,0.25693517 Z m 0,0.45804097 V 0.94399661 L 0.5223592,0.71497613 Z M 0.5223592,0.25693517 V 0.71497613 L 0.86588992,0.48595566 Z"
id="path1"
style="stroke-width:0.0381701" />
</svg>

Before

Width:  |  Height:  |  Size: 505 B

View File

@ -1,44 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="32"
height="32"
viewBox="-20 0 7.6 7.6"
fill="none"
version="1.1"
id="svg1"
sodipodi:docname="telegram-svgrepo-com.svg"
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="12.969093"
inkscape:cx="13.416513"
inkscape:cy="19.238045"
inkscape:window-width="1536"
inkscape:window-height="928"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="m -16.081798,5.3610042 -0.74291,0.6225835 -0.210035,0.028471 -0.470026,-1.6195761 -1.653418,-0.5430823 5.09025,-1.9402741 0.240116,0.00537 -0.801999,4.3623862 z m 1.2731,-2.6321523 -2.332405,1.3982663 0.268587,1.1457894 0.07359,-0.016649 0.280404,-0.8841866 1.86399,-1.6249532 z"
fill="#000000"
id="path1"
style="stroke-width:0.0537173" />
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,43 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
width="32"
height="32"
viewBox="0 0 32 32"
xml:space="preserve"
id="svg1"
sodipodi:docname="tiktok.svg"
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs1" /><sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="7.5665168"
inkscape:cx="36.872977"
inkscape:cy="29.273708"
inkscape:window-width="1536"
inkscape:window-height="928"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<g
style="opacity:1;fill:none;fill-rule:nonzero;stroke:none;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none"
transform="matrix(0.31638027,0,0,0.31638027,1.7631713,1.7628878)"
id="g1">
<path
d="m 84.494,22.535 c -5.144,0 -9.891,-1.704 -13.702,-4.579 C 66.421,14.66 63.28,9.826 62.171,4.254 61.895,2.877 61.748,1.456 61.733,0 H 47.038 V 40.154 L 47.02,62.148 c 0,5.88 -3.829,10.866 -9.137,12.619 -1.54,0.509 -3.204,0.75 -4.937,0.655 -2.211,-0.121 -4.283,-0.789 -6.084,-1.866 -3.833,-2.292 -6.431,-6.451 -6.502,-11.208 -0.111,-7.435 5.9,-13.496 13.329,-13.496 1.467,0 2.875,0.239 4.194,0.674 V 38.552 34.607 c -1.391,-0.206 -2.806,-0.313 -4.238,-0.313 -8.132,0 -15.737,3.38 -21.174,9.47 -4.109,4.602 -6.574,10.473 -6.954,16.63 -0.498,8.088 2.461,15.776 8.201,21.449 0.843,0.833 1.729,1.606 2.655,2.319 C 21.294,87.947 27.31,90 33.646,90 c 1.431,0 2.847,-0.106 4.238,-0.312 5.919,-0.877 11.38,-3.586 15.69,-7.847 5.296,-5.234 8.222,-12.183 8.253,-19.579 L 61.751,29.418 c 2.526,1.949 5.289,3.562 8.253,4.813 4.611,1.945 9.5,2.931 14.531,2.93 v -10.67 -3.959 c 0.004,0.003 -0.038,0.003 -0.041,0.003 z"
style="opacity:1;fill:#000000;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none"
stroke-linecap="round"
id="path1" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xml:space="preserve"
viewBox="0 0 32 32"
version="1.1"
id="svg1"
sodipodi:docname="twitter.svg"
width="32"
height="32"
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs1" /><sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="12.969515"
inkscape:cx="14.803946"
inkscape:cy="19.237419"
inkscape:window-width="1536"
inkscape:window-height="928"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<path
fill="#1d9bf0"
d="m 27.367222,10.168172 c 0.01742,0.252024 0.01742,0.504048 0.01742,0.758395 0,7.750036 -5.899922,16.688186 -16.688185,16.688186 v -0.0046 c -3.1868861,0.0046 -6.3075732,-0.908262 -8.9904118,-2.62946 0.4633994,0.05575 0.9291216,0.08362 1.3960052,0.08478 2.6410281,0.0023 5.2065651,-0.883828 7.2843136,-2.515598 C 7.8765739,22.502265 5.6757172,20.865845 4.906869,18.476842 5.7860503,18.646407 6.691944,18.611565 7.5548656,18.3758 4.8186026,17.822972 2.8500262,15.41887 2.8500262,12.62686 v -0.07433 c 0.8153042,0.45411 1.7281661,0.706134 2.6619333,0.734008 C 2.9348085,11.564177 2.1404095,8.1357185 3.6966882,5.4552027 6.6745229,9.119426 11.068107,11.346995 15.78456,11.58276 15.311869,9.545661 15.957609,7.4110036 17.481368,5.978995 19.84366,3.7583944 23.558985,3.8722118 25.779585,6.2333421 27.093131,5.9743494 28.352091,5.4923676 29.504202,4.8094632 29.066353,6.1671422 28.150007,7.3204143 26.925889,8.053259 28.088453,7.9162135 29.224304,7.6049578 30.293955,7.1299444 29.506524,8.3099288 28.514687,9.33777 27.367222,10.168172 Z"
id="path1"
style="stroke-width:0.11614" />
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB