From 8414e1013db87f6fc258e0265b452d7047434b6b Mon Sep 17 00:00:00 2001 From: BTCforPlebs Date: Fri, 21 Nov 2025 16:44:51 -0500 Subject: [PATCH] updates --- checklinks.js | 1 + public/assets/css/main.css | 65 ++++++++++++ public/assets/js/scripts.js | 21 ---- public/index.html | 2 + public/learn-cashu/index.html | 188 ++++++++++++++++------------------ public/learn-nostr/index.html | 149 +++++++++++++++++---------- 6 files changed, 254 insertions(+), 172 deletions(-) diff --git a/checklinks.js b/checklinks.js index fef91ff..9036854 100644 --- a/checklinks.js +++ b/checklinks.js @@ -15,6 +15,7 @@ const links = [ "https://cashu.btcforplebs.com", "https://fevela.btcforplebs.com", "https://coracle.btcforplebs.com", + "https://shipyard.btcforplebs.com", "https://live.btcforplebs.com", "https://nsec.btcforplebs.com", "https://ncryptdesec.btcforplebs.com", diff --git a/public/assets/css/main.css b/public/assets/css/main.css index 0491b21..eead4fe 100644 --- a/public/assets/css/main.css +++ b/public/assets/css/main.css @@ -611,3 +611,68 @@ footer { opacity: 0.5; } } + +/* Navbar Styles */ +.navbar { + background: linear-gradient(to bottom, var(--button-bg-top), var(--button-bg-bottom)); + border-bottom: 1px solid var(--button-border); + padding: 10px 20px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); + margin-bottom: 20px; +} + +.navbar-container { + display: flex; + justify-content: space-between; + align-items: center; + max-width: 1200px; + margin: 0 auto; +} + +.navbar-logo { + display: flex; + align-items: center; + text-decoration: none; + color: var(--text-color); + font-weight: bold; + font-size: 1.2rem; +} + +.navbar-logo img { + height: 40px; + margin-right: 10px; + border-radius: 6px; +} + +.navbar-menu { + display: flex; + gap: 20px; +} + +.navbar-item { + text-decoration: none; + color: var(--text-color); + font-weight: 500; + padding: 8px 12px; + border-radius: 6px; + transition: background-color 0.2s, color 0.2s; +} + +.navbar-item:hover { + background-color: rgba(0, 0, 0, 0.05); + color: #F7931A; /* Bitcoin Orange */ +} + +/* Mobile Navbar */ +@media (max-width: 768px) { + .navbar-container { + flex-direction: column; + gap: 10px; + } + + .navbar-menu { + flex-wrap: wrap; + justify-content: center; + gap: 10px; + } +} diff --git a/public/assets/js/scripts.js b/public/assets/js/scripts.js index ce4b1a0..657fe5e 100644 --- a/public/assets/js/scripts.js +++ b/public/assets/js/scripts.js @@ -62,25 +62,4 @@ document.addEventListener('DOMContentLoaded', () => { } }) .catch(error => console.error('Error loading footer:', error)); - - // --- 5. Fetch and Display Last Update from Gitea ----------------------- - fetch('https://gitea.btcforplebs.com/api/v1/repos/btcforplebs/BTCforPlebs.com') - .then(response => response.json()) - .then(data => { - const lastUpdate = new Date(data.updated_at); - const formattedDate = lastUpdate.toLocaleDateString(); - const formattedTime = lastUpdate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }); - - const updateText = document.getElementById('last-updated-text'); - if (updateText) { - updateText.textContent = `Website last updated: ${formattedDate} ${formattedTime}`; - } - }) - .catch(error => { - console.error('Error fetching last update:', error); - const updateText = document.getElementById('last-updated-text'); - if (updateText) { - updateText.textContent = 'Last update: Error fetching data.'; - } - }); }); \ No newline at end of file diff --git a/public/index.html b/public/index.html index 0042fa6..827ef0a 100644 --- a/public/index.html +++ b/public/index.html @@ -77,6 +77,8 @@ data-url="https://jumble.btcforplebs.com">⏳ Fevela + Shipyard Nostr Community (add community.btcforplebs.com) diff --git a/public/learn-cashu/index.html b/public/learn-cashu/index.html index 8d9d24a..db40c57 100644 --- a/public/learn-cashu/index.html +++ b/public/learn-cashu/index.html @@ -1,121 +1,113 @@ + Cashu – BTCforPlebs - + +
This page is under construction
-
- - - -
-
-

Cashu – Chaumian Ecash on Bitcoin

-

Cashu is a lightweight, privacy‑preserving ecash system that runs on top of the Lightning Network and settles on‑chain. It uses zero‑knowledge proofs to hide the value of a transfer while remaining fully traceable when required.

- - -