Footer link + Figtree font (self-hosted from design kit); footer text simplified
This commit is contained in:
1 parent
264f2700b7
commit
a24286cb74
9 files changed
+163
-7
No files matched your search
+21
-5
@@ -1,6 +1,6 @@
|
||||
// Co-op login-page polish.
|
||||
// The auth form is client-rendered (React), so a plain `load` listener runs
|
||||
// too early — a MutationObserver re-checks on every DOM change instead.
|
||||
// Co-op UI polish.
|
||||
// The auth form and footer are client-rendered (React), so a plain `load`
|
||||
// listener runs too early — a MutationObserver re-checks on every DOM change.
|
||||
(function () {
|
||||
function hideSignupPrompt() {
|
||||
document.querySelectorAll('p').forEach(function (p) {
|
||||
@@ -12,9 +12,25 @@
|
||||
});
|
||||
}
|
||||
|
||||
function start() {
|
||||
// Footer: turn the plain co-op text (injected at build time) into the
|
||||
// linked version — "Inference Cooperative" links to the homepage.
|
||||
function fixFooter() {
|
||||
var f = document.querySelector('footer');
|
||||
if (!f || f.dataset.coopFooter) return;
|
||||
f.dataset.coopFooter = '1';
|
||||
f.innerHTML =
|
||||
'<a href="https://inference.coop">Inference Cooperative</a>' +
|
||||
' · Our AI, governed together';
|
||||
}
|
||||
|
||||
function run() {
|
||||
hideSignupPrompt();
|
||||
new MutationObserver(hideSignupPrompt).observe(document.body, {
|
||||
fixFooter();
|
||||
}
|
||||
|
||||
function start() {
|
||||
run();
|
||||
new MutationObserver(run).observe(document.body, {
|
||||
childList: true,
|
||||
subtree: true,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user