From 8c7ab66ad24115c8130e1e33eb549405776c76a0 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Thu, 31 Jul 2025 18:21:10 +0300 Subject: [PATCH] fixup! restyle --- static/scss/main.scss | 43 +++++++++++++++++++++++++++++++++++---- static/sript/copy-mono.js | 7 +++++++ templates/index.html | 2 +- templates/services.tmpl | 12 +++++------ 4 files changed, 53 insertions(+), 11 deletions(-) create mode 100644 static/sript/copy-mono.js diff --git a/static/scss/main.scss b/static/scss/main.scss index 32ce10a..8946bad 100644 --- a/static/scss/main.scss +++ b/static/scss/main.scss @@ -1,13 +1,33 @@ +$base: #1e1e2e; +$text: #cdd6f4; + +$mantle: #181825; +$crust: #11111b; + +$overlay0: #6c7086; +$overlay1: #7f849c; +$overlay2: #9399b2; + +$surface0: #313244; +$surface1: #45475a; +$surface2: #585b70; + +$subtext0: #a6adc8; +$subtext1: #bac2de; + +$blue: #89b4fa; + + body { - background-color: #1e1e2e; + background-color: $base; font-family: Pixeloid; - color: #cdd6f4; + color: $text; } a { color: unset; text-decoration: underline; - text-decoration-color: #89b4fa; + text-decoration-color: $blue; text-underline-offset: 1px; transition: text-underline-offset 0.3s ease; @@ -23,7 +43,22 @@ a { .mono { font-family: "Monocraft", monospace; - color: #9399b2; + background-color: $mantle; + color: $subtext0; + + &:hover { + background-color: $crust; + } +} + +.services { + background-color: $surface0; + border-radius: 8px; + padding: 8px; + + & + & { + margin-top: 16px; + } } @font-face { diff --git a/static/sript/copy-mono.js b/static/sript/copy-mono.js new file mode 100644 index 0000000..37e4692 --- /dev/null +++ b/static/sript/copy-mono.js @@ -0,0 +1,7 @@ +document.addEventListener('DOMContentLoaded', () => { + document.querySelectorAll('.mono').forEach(element => { + element.addEventListener('click', async () => { + await navigator.clipboard.writeText(element.textContent); + }); + }); +}); \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 0c9eb87..166afdb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ Coders Squad - +

Coders Squad

diff --git a/templates/services.tmpl b/templates/services.tmpl index 4345b4f..7d3696e 100644 --- a/templates/services.tmpl +++ b/templates/services.tmpl @@ -1,21 +1,21 @@ -
+
-

Sharkey

+
Sharkey

Федеративная микроблогинговая система поверх протокола ActivityPub

-

Gitea

+
Gitea

Selhosted хранилище git-репозиториев со свободным исходным кодом

-
+

Matrix — федеративный мессанджер

Copyparty — облочное хранилище файлов

4get — прокси-поисковик

-
+
DNS:
    @@ -30,6 +30,6 @@
-
+
Ещё у нас есть GlitchTip и Baikal для участников нашей группы!