mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
⚡️ Add LN node IDs to homepage
This commit is contained in:
@@ -59,6 +59,7 @@ h2 {
|
|||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: var(--font-size-l);
|
font-size: var(--font-size-l);
|
||||||
|
color: var(--color-secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
h4, h5, h6 {
|
h4, h5, h6 {
|
||||||
|
|||||||
@@ -57,3 +57,35 @@
|
|||||||
border-radius: var(--space-m);
|
border-radius: var(--space-m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lnNodes {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
@media (--up_to_M) {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .lnNode {
|
||||||
|
@media (--up_to_M) {
|
||||||
|
margin-top: var(--space-xl);
|
||||||
|
}
|
||||||
|
@media (--M_and_up) {
|
||||||
|
margin-top: var(--space-l);
|
||||||
|
margin-right: var(--space-xxl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& img {
|
||||||
|
display: block;
|
||||||
|
width: 240px;
|
||||||
|
height: 240px;
|
||||||
|
border-radius: var(--space-m);
|
||||||
|
margin: var(--space-l) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
& button {
|
||||||
|
display: block;
|
||||||
|
width: 240px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -72,3 +72,22 @@ block main
|
|||||||
Wenn du also einen Shout-Out in unserem Podcast kaufst, unterstützt du damit auch ein Bitcoin Projekt.
|
Wenn du also einen Shout-Out in unserem Podcast kaufst, unterstützt du damit auch ein Bitcoin Projekt.
|
||||||
|
|
||||||
a.button(href=site.meta.shoutoutUrl target="_blank") Shout-Out senden
|
a.button(href=site.meta.shoutoutUrl target="_blank") Shout-Out senden
|
||||||
|
|
||||||
|
section
|
||||||
|
:markdown-it(html linkify typographer)
|
||||||
|
## ⚡️ Unser Lightning Node
|
||||||
|
|
||||||
|
Du kannst einen Kanal zu unserem Lightning Node aufmachen – entweder um im Shop ohne Routinggebühren zu
|
||||||
|
zahlen oder um dich darüber mit anderen Mitgliedern der Community zu verbinden. Der Node ist bereits gut
|
||||||
|
vernetzt und du erhältst durch einen Kanal gute Verbindungen zu weiteren gut vernetzten Nodes.
|
||||||
|
|
||||||
|
.lnNodes
|
||||||
|
.lnNode
|
||||||
|
h3 Clearnet
|
||||||
|
img(src=assetPath("/img/ln/clearnet.svg") alt="Clearnet")
|
||||||
|
button.button(data-clipboard="020d91678bfa7ee9d5e241b244e8eecf3822e6bcedd2426fe97d8de656622285ea@202.61.245.255:9735") Clearnet ID kopieren
|
||||||
|
|
||||||
|
.lnNode
|
||||||
|
h3 Tor
|
||||||
|
img(src=assetPath("/img/ln/tor.svg") alt="Tor")
|
||||||
|
button.button(data-clipboard="020d91678bfa7ee9d5e241b244e8eecf3822e6bcedd2426fe97d8de656622285ea@csgpmpxltdbpvxdwpbv5yzkpicnzhx2k65plksykib2bbzyhzmer5fid.onion:9735") Tor ID kopieren
|
||||||
|
|||||||
1
static/img/ln/clearnet.svg
Normal file
1
static/img/ln/clearnet.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 33 KiB |
1
static/img/ln/tor.svg
Normal file
1
static/img/ln/tor.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 57 KiB |
@@ -17,6 +17,25 @@ const setColorMode = mode => {
|
|||||||
|
|
||||||
setColorMode(initialColorMode)
|
setColorMode(initialColorMode)
|
||||||
|
|
||||||
|
const copyToClipboard = (e, text) => {
|
||||||
|
if (navigator.clipboard) {
|
||||||
|
e.preventDefault()
|
||||||
|
const item = e.currentTarget
|
||||||
|
const data = text || item.getAttribute('data-clipboard')
|
||||||
|
const confirm = item.querySelector('[data-clipboard-confirm]') || item
|
||||||
|
const message = confirm.getAttribute('data-clipboard-confirm') || 'Kopiert ✔'
|
||||||
|
if (!confirm.dataset.clipboardInitialText) {
|
||||||
|
confirm.dataset.clipboardInitialText = confirm.innerText
|
||||||
|
confirm.style.minWidth = confirm.getBoundingClientRect().width + 'px'
|
||||||
|
}
|
||||||
|
navigator.clipboard.writeText(data).then(() => {
|
||||||
|
confirm.innerText = message;
|
||||||
|
setTimeout(() => { confirm.innerText = confirm.dataset.clipboardInitialText; }, 2500)
|
||||||
|
})
|
||||||
|
item.blur()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
// Topbar
|
// Topbar
|
||||||
if (
|
if (
|
||||||
@@ -43,20 +62,26 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
// Player
|
// Player
|
||||||
if (window.Amplitude && window.player) {
|
if (window.Amplitude && window.player) {
|
||||||
window.Amplitude.init(window.player)
|
window.Amplitude.init(window.player)
|
||||||
|
|
||||||
document.querySelector('.player__progress').addEventListener('click', function (e) {
|
document.querySelector('.player__progress').addEventListener('click', function (e) {
|
||||||
var offset = this.getBoundingClientRect()
|
const offset = this.getBoundingClientRect()
|
||||||
var x = e.pageX - offset.left
|
const x = e.pageX - offset.left
|
||||||
window.Amplitude.setSongPlayedPercentage((parseFloat(x) / parseFloat(this.offsetWidth)) * 100)
|
window.Amplitude.setSongPlayedPercentage((parseFloat(x) / parseFloat(this.offsetWidth)) * 100)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Theme Switch
|
// Theme Switch
|
||||||
document.querySelectorAll(".theme").forEach(function (link) {
|
document.querySelectorAll('.theme').forEach(link => {
|
||||||
link.addEventListener("click", function (e) {
|
link.addEventListener('click', e => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
const current = document.documentElement.getAttribute(THEME_ATTR) || COLOR_MODES[0]
|
const current = document.documentElement.getAttribute(THEME_ATTR) || COLOR_MODES[0]
|
||||||
const mode = current === COLOR_MODES[0] ? COLOR_MODES[1] : COLOR_MODES[0]
|
const mode = current === COLOR_MODES[0] ? COLOR_MODES[1] : COLOR_MODES[0]
|
||||||
setColorMode(mode)
|
setColorMode(mode)
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
|
|
||||||
|
// Copy to clipboard
|
||||||
|
document.querySelectorAll('[data-clipboard]').forEach(link => {
|
||||||
|
link.addEventListener('click', copyToClipboard)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user