summaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Dockerfile14
-rw-r--r--go.mod5
-rw-r--r--go.sum6
-rw-r--r--main.go15
-rw-r--r--public/index.html643
-rw-r--r--static/input.css387
-rw-r--r--static/output.css707
-rw-r--r--views/index.html283
9 files changed, 1415 insertions, 646 deletions
diff --git a/.gitignore b/.gitignore
index d1cb3a6..e8f4633 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,4 @@ config*.json
!config*.sample.json
/main
+/sayana-demo
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..20502c2
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+FROM golang:1.24.5-alpine3.22 AS build-stage
+
+WORKDIR /builddir
+COPY . .
+RUN go build -o sayana-demo .
+
+FROM alpine:3.22.1 AS runtime-stage
+
+WORKDIR /app
+COPY --from=build-stage /builddir/sayana-demo /app/sayana-demo
+COPY --from=build-stage /builddir/static /app/static
+COPY --from=build-stage /builddir/views /app/views
+
+ENTRYPOINT [ "/app/sayana-demo" ]
diff --git a/go.mod b/go.mod
index 11f0732..578b61b 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module gitlab.com/SayaAndy/saya-today-web
+module github.com/SayaAndy/saya-today-web
go 1.24.5
@@ -6,6 +6,9 @@ require github.com/gofiber/fiber/v2 v2.52.9
require (
github.com/andybalholm/brotli v1.1.0 // indirect
+ github.com/gofiber/template v1.8.3 // indirect
+ github.com/gofiber/template/html/v2 v2.1.3 // indirect
+ github.com/gofiber/utils v1.1.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
diff --git a/go.sum b/go.sum
index 339ed77..cfc34da 100644
--- a/go.sum
+++ b/go.sum
@@ -2,6 +2,12 @@ github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1
github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY=
github.com/gofiber/fiber/v2 v2.52.9 h1:YjKl5DOiyP3j0mO61u3NTmK7or8GzzWzCFzkboyP5cw=
github.com/gofiber/fiber/v2 v2.52.9/go.mod h1:YEcBbO/FB+5M1IZNBP9FO3J9281zgPAreiI1oqg8nDw=
+github.com/gofiber/template v1.8.3 h1:hzHdvMwMo/T2kouz2pPCA0zGiLCeMnoGsQZBTSYgZxc=
+github.com/gofiber/template v1.8.3/go.mod h1:bs/2n0pSNPOkRa5VJ8zTIvedcI/lEYxzV3+YPXdBvq8=
+github.com/gofiber/template/html/v2 v2.1.3 h1:n1LYBtmr9C0V/k/3qBblXyMxV5B0o/gpb6dFLp8ea+o=
+github.com/gofiber/template/html/v2 v2.1.3/go.mod h1:U5Fxgc5KpyujU9OqKzy6Kn6Qup6Tm7zdsISR+VpnHRE=
+github.com/gofiber/utils v1.1.0 h1:vdEBpn7AzIUJRhe+CiTOJdUcTg4Q9RK+pEa0KPbLdrM=
+github.com/gofiber/utils v1.1.0/go.mod h1:poZpsnhBykfnY1Mc0KeEa6mSHrS3dV0+oBWyeQmb2e0=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA=
diff --git a/main.go b/main.go
index c927dac..b559a48 100644
--- a/main.go
+++ b/main.go
@@ -4,12 +4,23 @@ import (
"log"
"github.com/gofiber/fiber/v2"
+ "github.com/gofiber/template/html/v2"
)
func main() {
- app := fiber.New()
+ engine := html.New("./views", ".html")
- app.Static("/", "./public")
+ app := fiber.New(fiber.Config{
+ Views: engine,
+ })
+
+ app.Get("/", func(c *fiber.Ctx) error {
+ return c.Render("index", fiber.Map{
+ "Title": "Демо-материал после демон-аэропорта",
+ })
+ })
+
+ app.Static("/", "./static")
log.Fatal(app.Listen(":3000"))
}
diff --git a/public/index.html b/public/index.html
deleted file mode 100644
index c1a8fed..0000000
--- a/public/index.html
+++ /dev/null
@@ -1,643 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>SAYA TODAY // Демо-материал после демон-аэропорта</title>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.8.3/css/lightgallery.min.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.8.3/css/lg-zoom.min.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.8.3/css/lg-thumbnail.min.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.8.3/css/lg-fullscreen.min.css">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightgallery@2.8.3/css/lightgallery-bundle.min.css">
- <script src="https://cdn.tailwindcss.com"></script>
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Patua+One&display=swap" rel="stylesheet">
-
- <script>
- tailwind.config = {
- theme: {
- extend: {
- colors: {
- 'olive-dark': '#4b513a',
- 'olive-medium': '#8a9d8a',
- 'olive-light': '#a5b8a5',
- 'cream-dark': '#ffffdd',
- 'cream-light': '#fffff0',
- 'lettuce-dark': '#384a0c',
- 'lettuce-medium': '#9bb665',
- 'lettuce-light': '#bbd095',
- 'sunny-dark': '#f5eee2',
- 'sunny-light': '#fff9ef',
- },
- fontFamily: {
- 'spectral': ['Spectral', 'serif'],
- 'patua': ['Patua One', 'cursive']
- },
- backgroundImage: {
- 'olive-interlocked-hexagons': "url('https://f003.backblazeb2.com/file/sayana-static/themes/olive/interlocked-hexagons.svg')",
- 'olive-squares-and-triangles': "url('https://f003.backblazeb2.com/file/sayana-static/themes/olive/squares-and-triangles.svg')",
- 'lettuce-interlocked-hexagons': "url('https://f003.backblazeb2.com/file/sayana-static/themes/lettuce/interlocked-hexagons.svg')",
- 'lettuce-squares-and-triangles': "url('https://f003.backblazeb2.com/file/sayana-static/themes/lettuce/squares-and-triangles.svg')"
- }
- }
- }
- }
- </script>
-
- <style>
- [data-theme="olive"] {
- --main-dark-color: #4b513a;
- --main-medium-color: #8a9d8a;
- --main-light-color: #a5b8a5;
- --background-dark-color: #ffffdd;
- --background-light-color: #fffff0;
- --sidebar-text-color: var(--background-dark-color);
- --sidebar-stroke-color: var(--main-dark-color);
- --interlocked-hexagons-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/olive/interlocked-hexagons.svg');
- --squares-and-triangles-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/olive/squares-and-triangles.svg');
- --invert-colors-in-sidebar: false;
- }
-
- [data-theme="lettuce"] {
- --main-dark-color: #384a0c;
- --main-medium-color: #9bb665;
- --main-light-color: #bbd095;
- --background-dark-color: #f5eee2;
- --background-light-color: #fff9ef;
- --sidebar-text-color: var(--main-dark-color);
- --sidebar-stroke-color: var(--background-dark-color);
- --interlocked-hexagons-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/lettuce/interlocked-hexagons.svg');
- --squares-and-triangles-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/lettuce/squares-and-triangles.svg');
- --invert-colors-in-sidebar: true;
- }
-
- .bg-interlocked-hexagons {
- background-image: var(--interlocked-hexagons-background);
- }
-
- .bg-squares-and-triangles {
- background-image: var(--squares-and-triangles-background);
- }
-
- .text-sidebar {
- color: var(--sidebar-text-color);
- }
-
- .stroke-sidebar {
- border-color: var(--sidebar-stroke-color);
- }
-
- .text-main-dark {
- color: var(--main-dark-color);
- }
-
- .text-main-medium {
- color: var(--main-medium-color);
- }
-
- .text-main-light {
- color: var(--main-light-color);
- }
-
- .text-background-dark {
- color: var(--background-dark-color);
- }
-
- .text-background-light {
- color: var(--background-light-color);
- }
-
- .bg-main-dark {
- background-color: var(--main-dark-color);
- }
-
- .bg-background-dark {
- background-color: var(--background-dark-color);
- }
-
- .bg-background-light {
- background-color: var(--background-light-color);
- }
-
- .border-main-dark {
- border-color: var(--main-dark-color);
- }
-
- .desktop-sidebar-custom {
- width: 5vw;
- background-size: 10vw;
- }
-
- .mobile-topbar-custom {
- width: 90vw;
- height: 10vh;
- background-size: 20vh;
- margin-left: 5vw;
- }
-
- .logo-custom {
- width: 3.5vw;
- height: 25vw;
- font-size: 2.5vw;
- -webkit-text-stroke: 0.1vw var(--sidebar-stroke-color);
- writing-mode: sideways-lr;
- text-orientation: mixed;
- }
-
- .nav-icon-custom {
- font-size: 3vw !important;
- -webkit-text-stroke: 0.1vw var(--sidebar-stroke-color);
- width: 5vw;
- height: 5vw;
- }
-
- .nav-icon-custom:hover {
- font-size: 4vw;
- }
-
- .content-square {
- width: 100vh;
- }
-
- .border-left-custom {
- width: 0.5vw;
- border-right: 0.3vh dashed var(--main-dark-color);
- }
-
- .border-right-custom {
- width: 0.5vw;
- border-left: 0.5vh dotted var(--main-dark-color);
- }
-
- .bg-pattern-body {
- background-size: 10vw;
- }
-
- .content-tail-text {
- font-size: 1.2vh;
- line-height: 0.9;
- }
-
- .inset-shadow {
- box-shadow: inset 0vh 1vh 1vh -1vh rgba(75,81,58,0.5),
- inset 1vh 0vh 1vh -1vh rgba(75,81,58,0.5),
- inset -1vh 0vh 1vh -1vh rgba(75,81,58,0.5),
- inset 0vh -0.5vh rgba(75,81,58,0.5);
- }
-
- .desktop {
- display: flex;
- }
-
- .mobile {
- display: none;
- }
-
- .lh-0-9 {
- line-height: 0.9;
- }
-
- .lh-1-5 {
- line-height: 1.5;
- }
-
- .lh-2 {
- line-height: 2;
- }
-
- .ls-vw0-03 {
- letter-spacing: 0.03vw;
- }
-
- .timl-vh3 {
- text-indent: 3vh hanging;
- }
-
- .text-vh1-2 {
- font-size: 1.2vh;
- }
-
- .text-vh1-5 {
- font-size: 1.5vh !important;
- }
-
- .text-vh2 {
- font-size: 2vh !important;
- }
-
- .text-vh3 {
- font-size: 3vh;
- }
-
- .w-vw90 {
- width: 90vw;
- }
-
- .h-vh1-5 {
- max-height: 1.5vh;
- }
-
- .h-vh40 {
- height: 40vh;
- }
-
- .h-vh50 {
- height: 50vh;
- }
-
- .h-vh60 {
- height: 60vh;
- }
-
- .h-vh90 {
- height: 90vh;
- }
-
- .w-p70 {
- width: 70%;
- }
-
- .w-p80 {
- width: 80%;
- }
-
- .lg-backdrop {
- background-color: var(--background-light-color);
- }
-
- .lg-thumb-outer {
- background-color: var(--background-light-color) !important;
- }
-
- .lg-prev {
- background-color: var(--background-light-color);
- color: var(--main-dark-color);
- }
-
- .lg-next {
- background-color: var(--background-light-color);
- color: var(--main-dark-color);
- }
-
- .lg-counter {
- color: var(--main-dark-color);
- font-family: 'Spectral';
- font-size: 1.5vh;
- }
-
- .lg-toolbar .lg-icon {
- font-size: 2vh !important;
- padding: 1vh 1vh;
- height: 2vh;
- width: auto;
- color: var(--main-dark-color);
- }
-
- .lg-toolbar .lg-icon:hover {
- color: var(--main-medium-color);
- }
-
- .lg-toolbar .lg-icon {
- font-size: 2vh !important;
- color: var(--main-dark-color);
- }
-
- .lg-content .lg-icon:hover {
- color: var(--main-medium-color);
- }
-
- .light-gallery-captions {
- p {
- transform: translate3d(0, 0, 0px);
- transition-delay: 500ms;
- opacity: 1;
- }
- }
-
- .lg-slide-progress {
- .light-gallery-captions {
- h4 {
- transform: translate3d(-60px, 0, 0px);
- }
- p {
- transform: translate3d(60px, 0, 0px);
- }
- h4,
- p {
- opacity: 0;
- }
- }
- }
-
- .lg-current {
- &.lg-slide-progress {
- .light-gallery-captions {
- h4,
- p {
- transition-delay: 0ms;
- }
- }
- }
- }
-
- /* Mobile responsive styles */
- @media (max-aspect-ratio: 1.1/1) {
- .desktop {
- display: none;
- }
-
- .mobile {
- display: flex;
- }
-
- .desktop-sidebar-custom {
- width: 90%;
- margin-left: 5vw;
- height: 10vh;
- background-size: 20vh;
- }
-
- .logo-custom {
- writing-mode: initial;
- text-orientation: initial;
- font-size: 6vh;
- width: auto;
- }
-
- .nav-icon-custom {
- font-size: 6vh !important;
- -webkit-text-stroke: 0.1vh var(--main-dark-color);
- width: 10vh;
- height: 10vh;
- }
-
- .nav-icon-custom:hover {
- font-size: 8vh;
- }
-
- .bg-pattern-body {
- background-size: 10vh;
- }
-
- .border-left-custom {
- width: 1%;
- border-right: 0.3vw dashed var(--main-dark-color);
- }
-
- .border-right-custom {
- width: 1.5%;
- border-left: 0.5vw dotted var(--main-dark-color);
- }
- }
-
- @media (max-aspect-ratio: 0.8/1) {
- .logo-custom {
- display: none;
- }
- }
-
- @media (max-aspect-ratio: 0.4/1) {
- .desktop-sidebar-custom {
- width: 100%;
- margin-left: 0;
- }
- }
- </style>
-</head>
-
-<body data-theme="olive" class="font-spectral text-main-dark overflow-hidden bg-interlocked-hexagons bg-repeat bg-pattern-body h-screen flex">
-
- <div class="desktop-sidebar-custom fixed bg-squares-and-triangles bg-repeat flex-col items-center shadow-2xl z-20 h-screen desktop">
- <div class="logo-custom text-sidebar font-patua font-extrabold text-center relative z-20">
- demo.saya.today
- </div>
- <div class="flex flex-col gap-0 relative z-20">
- <i class="fas fa-home nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
- <i class="fas fa-search nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
- <i class="fas fa-images nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
- <i onclick="switchTheme()" class="fas fa-swatchbook nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
- </div>
- </div>
-
- <div class="bg-background-dark z-10 h-screen desktop" style="padding-left: 5vw;">
- <div class="border-left-custom bg-background-dark"></div>
-
- <div class="content-square flex flex-col bg-background-dark relative mt-4 mx-4">
- <div class="flex flex-row mb-1">
- <i class="fas fa-circle-left hover:bg-main-dark hover:bg-opacity-10 cursor-pointer transition-colors duration-300 rounded-md text-vh3 mt-auto mb-auto pl-2 pr-2"></i>
- <p class="text-vh3 font-spectral italic font-extrabold select-none mt-auto pl-2 pr-3">//</p>
- <p class="text-vh3 font-spectral italic text-left mt-auto">Демо-материал после демон-аэропорта</p>
- <p class="grow text-vh2 font-spectral text-main-light text-right mt-auto">2025.07.21 20:34:44 UTC+3</p>
- </div>
- <hr class="border-t-4 border-dotted border-main-dark mb-2">
-
- <div class="bg-background-light flex flex-col flex-1 overflow-y-auto inset-shadow p-6">
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left">Ученик однажды попросил мудреца переименовать фотографические файлы формата JPG за 21 июля 2025 на своём телефоне, чтобы структура их имён была идентична. Ученик очень хотел поделиться своими двоякими впечатлениями от современных реалий российского авиатранспорта и хотел сначала загрузить свои фотографии в нужном формате. В ответ мудрец удалил их нахуй</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Мудрец будет удалён к ебеням с телефона и оценён на 1 звезду.</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">В итоге, чтобы собрать материал под эту демо-страницу, я вспомнил про недавно купленную клавиатуру.</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Это Apple Keyboard 1048 из 2003!</p>
- <div class="justify-content-center display-block m-2">
- <hr class="border-t-4 border-dotted border-main-dark mt-2 mb-2 w-p80 ml-auto mr-auto">
- <div class="inline-gallery-container-1 relative w-p70 h-vh50 ml-auto mr-auto"></div>
- <hr class="border-t-4 border-dotted border-main-dark mt-2 mb-2 w-p80 ml-auto mr-auto">
- </div>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left">Мотив был такой -- мне нравится её внешний вид, эта курватура аля склона холма. Ну и USB, ничего не мешает подключить куда угодно. И цена таким на рынке -- 2 тыщи на рынке (~25$).</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Купил -- понравилась и тактильность, хоть это и мембранная клава!</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Но зачем я решил её почистить, ибо она была желтоватая и у неё слипались пробел и клавиша Mac. На выходе действительно она получилась белей, клавиши все нажимаются на ура... но идея опрыскать базу клавы перекисью была ошибкой. Теперь у неё работает только Enter. :(</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Напоследок немного макросъёмки, ибо почему бы и нет:</p>
- <div class="justify-content-center display-block m-2">
- <hr class="border-t-4 border-dotted border-main-dark mt-2 mb-2 w-p80 ml-auto mr-auto">
- <div class="inline-gallery-container-2 relative w-p70 h-vh50 ml-auto mr-auto"></div>
- <hr class="border-t-4 border-dotted border-main-dark mt-2 mb-2 w-p80 ml-auto mr-auto">
- </div>
- </div>
-
- <div class="flex flex-row mt-2 mb-1">
- <p class="grow text-vh1-2 lh-0-9 font-spectral italic text-right text-main-light mr-2">
- <a href="https://demo.saya.today">Демо-материал после демон-аэропорта</a> © 2025 by <a href="https://t.me/EarlInisMona">Saya Andy</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
- </p>
- <img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
- <img src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
- <img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
- </div>
-
- <hr class="border-t-4 border-dotted border-main-dark mb-2">
- </div>
-
- <div class="border-right-custom bg-background-dark shadow-2xl"></div>
- </div>
-
- <div class="mobile-topbar-custom fixed bg-squares-and-triangles bg-repeat flex-row items-center shadow-2xl w-vw90 z-20 mobile">
- <div class="flex flex-row gap-0 relative z-20">
- <i class="fas fa-home nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
- <i class="fas fa-search nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
- <i class="fas fa-images nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
- <i onclick="switchTheme()" class="fas fa-swatchbook nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
- </div>
- <div class="logo-custom text-background-dark font-patua font-extrabold text-center relative grow z-20">
- demo.saya.today
- </div>
- </div>
-
- <div class="bg-background-dark flex-row z-10 w-vw90 h-vh90 mobile" style="margin-left: 5vw; margin-top: 10vh;">
- <div class="border-left-custom bg-background-dark"></div>
-
- <div class="content-square flex flex-col bg-background-dark relative mt-4 mx-4">
- <div class="flex flex-row mb-1">
- <i class="fas fa-circle-left hover:bg-main-dark hover:bg-opacity-10 cursor-pointer transition-colors duration-300 rounded-md text-vh3 mt-auto mb-auto pl-2 pr-2"></i>
- <p class="text-vh3 font-spectral italic font-extrabold select-none mt-auto pl-2 pr-3">//</p>
- <p class="text-vh3 font-spectral italic text-left mt-auto">Демо-материал после демон-аэропорта</p>
- <p class="grow text-vh2 font-spectral text-main-light text-right mt-auto">2025.07.21 20:34:44 UTC+3</p>
- </div>
- <hr class="border-t-4 border-dotted border-main-dark mb-2">
-
- <div class="bg-background-light flex flex-col flex-1 overflow-y-auto inset-shadow p-6">
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left">Ученик однажды попросил мудреца переименовать фотографические файлы формата JPG за 21 июля 2025 на своём телефоне, чтобы структура их имён была идентична. Ученик очень хотел поделиться своими двоякими впечатлениями от современных реалий российского авиатранспорта и хотел сначала загрузить свои фотографии в нужном формате. В ответ мудрец удалил их нахуй</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Мудрец будет удалён к ебеням с телефона и оценён на 1 звезду.</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">В итоге, чтобы собрать материал под эту демо-страницу, я вспомнил про недавно купленную клавиатуру.</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Это Apple Keyboard 1048 из 2003!</p>
- <div class="justify-content-center display-block m-2">
- <hr class="border-t-4 border-dotted border-main-dark mt-2 mb-2 w-p80 ml-auto mr-auto">
- <div class="inline-gallery-container-1 relative w-p70 h-vh50 ml-auto mr-auto"></div>
- <hr class="border-t-4 border-dotted border-main-dark mt-2 mb-2 w-p80 ml-auto mr-auto">
- </div>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left">Мотив был такой -- мне нравится её внешний вид, эта курватура аля склона холма. Ну и USB, ничего не мешает подключить куда угодно. И цена таким на рынке -- 2 тыщи на рынке (~25$).</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Купил -- понравилась и тактильность, хоть это и мембранная клава!</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Но зачем я решил её почистить, ибо она была желтоватая и у неё слипались пробел и клавиша Mac. На выходе действительно она получилась белей, клавиши все нажимаются на ура... но идея опрыскать базу клавы перекисью была ошибкой. Теперь у неё работает только Enter. :(</p>
- <p class="text-vh1-5 font-spectral lh-2 ls-vw0-03 timl-vh3 text-left mt-4">Напоследок немного макросъёмки, ибо почему бы и нет:</p>
- <div class="justify-content-center display-block m-2">
- <hr class="border-t-4 border-dotted border-main-dark mt-2 mb-2 w-p80 ml-auto mr-auto">
- <div class="inline-gallery-container-2 relative w-p70 h-vh50 ml-auto mr-auto"></div>
- <hr class="border-t-4 border-dotted border-main-dark mt-2 mb-2 w-p80 ml-auto mr-auto">
- </div>
- </div>
-
- <div class="flex flex-row mt-2 mb-1">
- <p class="grow text-vh1-2 lh-0-9 font-spectral italic text-right text-main-light mr-2">
- <a href="https://demo.saya.today">Демо-материал после демон-аэропорта</a> © 2025 by <a href="https://t.me/EarlInisMona">Saya Andy</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
- </p>
- <img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
- <img src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
- <img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
- </div>
-
- <hr class="border-t-4 border-dotted border-main-dark mb-2">
- </div>
-
- <div class="border-right-custom bg-background-dark shadow-2xl"></div>
- </div>
-
- <script src="https://f003.backblazeb2.com/file/sayana-static/libs/lightgallery/2.8.3/lightgallery.min.js"></script>
- <script src="https://f003.backblazeb2.com/file/sayana-static/libs/lightgallery/2.8.3/plugins/lg-zoom.min.js"></script>
- <script src="https://f003.backblazeb2.com/file/sayana-static/libs/lightgallery/2.8.3/plugins/lg-thumbnail.min.js"></script>
-
- <script>
- function switchTheme() {
- const currentTheme = document.body.getAttribute('data-theme')
- document.body.setAttribute('data-theme', currentTheme == "olive" ? "lettuce" : "olive");
- localStorage.setItem('theme', currentTheme == "olive" ? "lettuce" : "olive");
- }
- </script>
-
- <script>
- const $lgContainers1 = document.getElementsByClassName("inline-gallery-container-1");
- for (i = 0; i < $lgContainers1.length; i++) {
- const $lgContainer1 = $lgContainers1[i];
- const inlineGallery1 = lightGallery($lgContainer1, {
- container: $lgContainer1,
- dynamic: true,
- width: "70%",
- height: "50vh",
- hash: false,
- closable: false,
- showMaximizeIcon: true,
- appendSubHtmlTo: ".lg-sub-html",
- slideDelay: 0,
- plugins: [lgZoom, lgThumbnail],
- dynamicEl: [
- {
- src:
- "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-191056.jpg",
- responsive:
- "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-191056.webp",
- thumb:
- "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-191056.webp",
- subHtml: `<div class="flex flex-row light-gallery-captions">
- <p class="grow text-vh1-5 text-left lh-0-9 font-spectral text-main-dark">Табло #3</p>
- <p class="text-vh1-5 text-right lh-0-9 font-spectral text-main-light">2025.07.21 19:10:56 UTC+7</p>
- </div>`
- }
- ],
-
- // Completely optional
- // Adding as the codepen preview is usually smaller
- thumbWidth: 160,
- thumbHeight: "8vh",
- thumbMargin: 4
- });
-
- setTimeout(() => {
- inlineGallery1.openGallery();
- }, 200);
- }
- </script>
-
- <script>
- const $lgContainers2 = document.getElementsByClassName("inline-gallery-container-2");
- for (i = 0; i < $lgContainers2.length; i++) {
- const $lgContainer2 = $lgContainers2[i];
- const inlineGallery2 = lightGallery($lgContainer2, {
- container: $lgContainer2,
- dynamic: true,
- width: "70%",
- height: "50vh",
- hash: false,
- closable: false,
- showMaximizeIcon: true,
- appendSubHtmlTo: ".lg-sub-html",
- slideDelay: 0,
- plugins: [lgZoom, lgThumbnail],
- dynamicEl: [
- {
- src:
- "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-185010.jpg",
- responsive:
- "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-185010.webp",
- thumb:
- "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-185010.webp",
- subHtml: `<div class="flex flex-row light-gallery-captions">
- <p class="grow text-vh1-5 text-left lh-0-9 font-spectral text-main-dark">Табло #1</p>
- <p class="text-vh1-5 text-right lh-0-9 font-spectral text-main-light">2025.07.21 18:50:10 UTC+7</p>
- </div>`
- },
- {
- src:
- "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-190655.jpg",
- responsive:
- "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-190655.webp",
- thumb:
- "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-190655.webp",
- subHtml: `<div class="flex flex-row light-gallery-captions">
- <p class="grow text-vh1-5 text-left lh-0-9 font-spectral text-main-dark">Табло #2</p>
- <p class="text-vh1-5 text-right lh-0-9 font-spectral text-main-light">2025.07.21 19:06:55 UTC+7</p>
- </div>`
- }
- ],
-
- // Completely optional
- // Adding as the codepen preview is usually smaller
- thumbWidth: 160,
- thumbHeight: "8vh",
- thumbMargin: 4
- });
-
- setTimeout(() => {
- inlineGallery2.openGallery();
- }, 200);
- }
- </script>
-
-</body>
-</html>
diff --git a/static/input.css b/static/input.css
new file mode 100644
index 0000000..3b90f50
--- /dev/null
+++ b/static/input.css
@@ -0,0 +1,387 @@
+@import "tailwindcss";
+
+@theme {
+ --color-olive-dark: #4b513a;
+ --color-olive-medium: #8a9d8a;
+ --color-olive-light: #a5b8a5;
+ --color-cream-dark: #ffffdd;
+ --color-cream-light: #fffff0;
+ --color-lettuce-dark: #384a0c;
+ --color-lettuce-medium: #9bb665;
+ --color-lettuce-light: #bbd095;
+ --color-sunny-dark: #f5eee2;
+ --color-sunny-light: #fff93f;
+
+ --font-spectral: Spectral, serif;
+ --font-patua: "Patua One", cursive;
+}
+
+[data-theme="olive"] {
+ --main-dark-color: #4b513a;
+ --main-medium-color: #8a9d8a;
+ --main-light-color: #a5b8a5;
+ --background-dark-color: #ffffdd;
+ --background-light-color: #fffff0;
+ --sidebar-text-color: var(--background-dark-color);
+ --sidebar-stroke-color: var(--main-dark-color);
+ --secondary-color: var(--main-light-color);
+ --interlocked-hexagons-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/olive/interlocked-hexagons.svg');
+ --squares-and-triangles-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/olive/squares-and-triangles.svg');
+ --invert-colors-in-sidebar: false;
+}
+
+[data-theme="lettuce"] {
+ --main-dark-color: #384a0c;
+ --main-medium-color: #9bb665;
+ --main-light-color: #bbd095;
+ --background-dark-color: #f5eee2;
+ --background-light-color: #fff9ef;
+ --sidebar-text-color: var(--main-dark-color);
+ --sidebar-stroke-color: var(--background-dark-color);
+ --secondary-color: var(--main-medium-color);
+ --interlocked-hexagons-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/lettuce/interlocked-hexagons.svg');
+ --squares-and-triangles-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/lettuce/squares-and-triangles.svg');
+ --invert-colors-in-sidebar: true;
+}
+
+.bg-interlocked-hexagons {
+ background-image: var(--interlocked-hexagons-background);
+}
+
+.bg-squares-and-triangles {
+ background-image: var(--squares-and-triangles-background);
+}
+
+.text-sidebar {
+ color: var(--sidebar-text-color);
+}
+
+.stroke-sidebar {
+ border-color: var(--sidebar-stroke-color);
+}
+
+.text-main-dark {
+ color: var(--main-dark-color);
+}
+
+.text-background-dark {
+ color: var(--background-dark-color);
+}
+
+.text-secondary {
+ color: var(--secondary-color);
+}
+
+.bg-main-dark {
+ background-color: var(--main-dark-color);
+}
+
+.bg-background-dark {
+ background-color: var(--background-dark-color);
+}
+
+.bg-background-light {
+ background-color: var(--background-light-color);
+}
+
+.border-main-dark {
+ border-color: var(--main-dark-color);
+}
+
+.desktop-sidebar-custom {
+ width: 5vw;
+ background-size: 10vw;
+}
+
+.mobile-topbar-custom {
+ width: 90vw;
+ height: 10vh;
+ background-size: 20vh;
+ margin-left: 5vw;
+}
+
+.logo-custom {
+ width: 3.5vw;
+ height: 25vw;
+ font-size: 2.5vw;
+ -webkit-text-stroke: 0.1vw var(--sidebar-stroke-color);
+ writing-mode: sideways-lr;
+ text-orientation: mixed;
+ display: block;
+}
+
+.nav-icon-custom {
+ font-size: 3vw !important;
+ -webkit-text-stroke: 0.1vw var(--sidebar-stroke-color);
+ width: 5vw;
+ height: 5vw;
+ align-content: center;
+ text-align: center;
+}
+
+.nav-icon-custom:hover {
+ font-size: 4vw;
+}
+
+.content-square {
+ width: 100vh;
+}
+
+.border-left-custom {
+ width: 0.5vw;
+ border-right: 0.3vh dashed var(--main-dark-color);
+}
+
+.border-right-custom {
+ width: 0.5vw;
+ border-left: 0.5vh dotted var(--main-dark-color);
+}
+
+.bg-pattern-body {
+ background-size: 10vw;
+}
+
+.inset-shadow {
+ box-shadow: inset 0vh 1vh 1vh -1vh rgba(75, 81, 58, 0.5),
+ inset 1vh 0vh 1vh -1vh rgba(75, 81, 58, 0.5),
+ inset -1vh 0vh 1vh -1vh rgba(75, 81, 58, 0.5),
+ inset 0vh -0.5vh rgba(75, 81, 58, 0.5);
+}
+
+.desktop {
+ display: flex;
+}
+
+.mobile {
+ display: none;
+}
+
+.lh-0-9 {
+ line-height: 0.9;
+}
+
+.lh-2 {
+ line-height: 2;
+}
+
+.ls-vmin0-04 {
+ letter-spacing: 0.04vmin;
+}
+
+.timl-vmax2 {
+ text-indent: 2vmax hanging;
+}
+
+.text-vmax0-8 {
+ font-size: 0.8vmax;
+}
+
+.text-vmax1 {
+ font-size: 1vmax !important;
+}
+
+.text-vmax1-5 {
+ font-size: 1.5vmax !important;
+}
+
+.text-vmax2 {
+ font-size: 2vmax;
+}
+
+.w-vw90 {
+ width: 90vw;
+}
+
+.h-vh90 {
+ height: 90vh;
+}
+
+.w-p80 {
+ width: 80%;
+}
+
+.mt-vmin0-8 {
+ margin-top: 0.8vmin;
+}
+
+.mt-vmin1-6 {
+ margin-top: 1.6vmin;
+}
+
+.mx-vmin1-6 {
+ margin-left: 1.6vmin;
+ margin-right: 1.6vmin;
+}
+
+.mb-vmin0-4 {
+ margin-bottom: 0.4vmin;
+}
+
+.mb-vmin0-8 {
+ margin-bottom: 0.8vmin;
+}
+
+.pl-vmin0-8 {
+ padding-left: 0.8vmin;
+}
+
+.pr-vmin1-2 {
+ padding-right: 1.2vmin;
+}
+
+.p-vmin2-4 {
+ padding: 2.4vmin;
+}
+
+.lg-backdrop {
+ background-color: var(--background-light-color);
+}
+
+.lg-thumb-outer {
+ background-color: var(--background-light-color) !important;
+}
+
+.lg-prev {
+ background-color: var(--background-light-color);
+ color: var(--main-dark-color);
+}
+
+.lg-next {
+ background-color: var(--background-light-color);
+ color: var(--main-dark-color);
+}
+
+.lg-counter {
+ color: var(--main-dark-color);
+ font-family: 'Spectral';
+ font-size: 1vmax;
+ padding-top: 0;
+ height: 1vmax;
+}
+
+.lg-toolbar .lg-icon {
+ padding: 0 0.7vmax;
+ font-size: 1.5vmax !important;
+ height: 1.5vmax;
+ width: auto;
+ color: var(--main-dark-color);
+}
+
+.lg-toolbar .lg-icon:hover {
+ color: var(--main-medium-color);
+}
+
+.lg-toolbar .lg-icon {
+ font-size: 1.5vmax !important;
+ color: var(--main-dark-color);
+}
+
+.lg-content .lg-icon:hover {
+ color: var(--main-medium-color);
+}
+
+.lg-sub-html {
+ padding: 0.7vmin 1.25vmin !important;
+}
+
+.inline-gallery-container {
+ width: 80%;
+ height: 60vmin;
+}
+
+.light-gallery-captions {
+ p {
+ transform: translate3d(0, 0, 0px);
+ transition-delay: 500ms;
+ opacity: 1;
+ }
+}
+
+.lg-slide-progress {
+ .light-gallery-captions {
+ h4 {
+ transform: translate3d(-60px, 0, 0px);
+ }
+
+ p {
+ transform: translate3d(60px, 0, 0px);
+ }
+
+ h4,
+ p {
+ opacity: 0;
+ }
+ }
+}
+
+.lg-current {
+ &.lg-slide-progress {
+ .light-gallery-captions {
+
+ h4,
+ p {
+ transition-delay: 0ms;
+ }
+ }
+ }
+}
+
+/* Mobile responsive styles */
+@media (max-aspect-ratio: 1.1/1) {
+ .desktop {
+ display: none;
+ }
+
+ .mobile {
+ display: flex;
+ }
+
+ .inline-gallery-container {
+ width: 100%;
+ }
+
+ .desktop-sidebar-custom {
+ width: 90%;
+ margin-left: 5vw;
+ height: 10vh;
+ background-size: 20vh;
+ }
+
+ .logo-custom {
+ display: none;
+ }
+
+ .nav-icon-custom {
+ font-size: 6vh !important;
+ -webkit-text-stroke: 0.1vh var(--sidebar-stroke-color);
+ width: 10vh;
+ height: 10vh;
+ align-content: center;
+ text-align: center;
+ }
+
+ .nav-icon-custom:hover {
+ font-size: 8vh;
+ }
+
+ .bg-pattern-body {
+ background-size: 10vh;
+ }
+
+ .border-left-custom {
+ width: 1%;
+ border-right: 0.3vw dashed var(--main-dark-color);
+ }
+
+ .border-right-custom {
+ width: 1.5%;
+ border-left: 0.5vw dotted var(--main-dark-color);
+ }
+}
+
+@media (max-aspect-ratio: 0.4/1) {
+ .desktop-sidebar-custom {
+ width: 100%;
+ margin-left: 0;
+ }
+} \ No newline at end of file
diff --git a/static/output.css b/static/output.css
new file mode 100644
index 0000000..3b4e05f
--- /dev/null
+++ b/static/output.css
@@ -0,0 +1,707 @@
+/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
+@layer properties;
+@layer theme, base, components, utilities;
+@layer theme {
+ :root, :host {
+ --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
+ 'Noto Color Emoji';
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
+ monospace;
+ --spacing: 0.25rem;
+ --font-weight-extrabold: 800;
+ --radius-md: 0.375rem;
+ --radius-lg: 0.5rem;
+ --default-transition-duration: 150ms;
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ --default-font-family: var(--font-sans);
+ --default-mono-font-family: var(--font-mono);
+ --font-spectral: Spectral, serif;
+ --font-patua: "Patua One", cursive;
+ }
+}
+@layer base {
+ *, ::after, ::before, ::backdrop, ::file-selector-button {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ border: 0 solid;
+ }
+ html, :host {
+ line-height: 1.5;
+ -webkit-text-size-adjust: 100%;
+ tab-size: 4;
+ font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
+ font-feature-settings: var(--default-font-feature-settings, normal);
+ font-variation-settings: var(--default-font-variation-settings, normal);
+ -webkit-tap-highlight-color: transparent;
+ }
+ hr {
+ height: 0;
+ color: inherit;
+ border-top-width: 1px;
+ }
+ abbr:where([title]) {
+ -webkit-text-decoration: underline dotted;
+ text-decoration: underline dotted;
+ }
+ h1, h2, h3, h4, h5, h6 {
+ font-size: inherit;
+ font-weight: inherit;
+ }
+ a {
+ color: inherit;
+ -webkit-text-decoration: inherit;
+ text-decoration: inherit;
+ }
+ b, strong {
+ font-weight: bolder;
+ }
+ code, kbd, samp, pre {
+ font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
+ font-feature-settings: var(--default-mono-font-feature-settings, normal);
+ font-variation-settings: var(--default-mono-font-variation-settings, normal);
+ font-size: 1em;
+ }
+ small {
+ font-size: 80%;
+ }
+ sub, sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+ }
+ sub {
+ bottom: -0.25em;
+ }
+ sup {
+ top: -0.5em;
+ }
+ table {
+ text-indent: 0;
+ border-color: inherit;
+ border-collapse: collapse;
+ }
+ :-moz-focusring {
+ outline: auto;
+ }
+ progress {
+ vertical-align: baseline;
+ }
+ summary {
+ display: list-item;
+ }
+ ol, ul, menu {
+ list-style: none;
+ }
+ img, svg, video, canvas, audio, iframe, embed, object {
+ display: block;
+ vertical-align: middle;
+ }
+ img, video {
+ max-width: 100%;
+ height: auto;
+ }
+ button, input, select, optgroup, textarea, ::file-selector-button {
+ font: inherit;
+ font-feature-settings: inherit;
+ font-variation-settings: inherit;
+ letter-spacing: inherit;
+ color: inherit;
+ border-radius: 0;
+ background-color: transparent;
+ opacity: 1;
+ }
+ :where(select:is([multiple], [size])) optgroup {
+ font-weight: bolder;
+ }
+ :where(select:is([multiple], [size])) optgroup option {
+ padding-inline-start: 20px;
+ }
+ ::file-selector-button {
+ margin-inline-end: 4px;
+ }
+ ::placeholder {
+ opacity: 1;
+ }
+ @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
+ ::placeholder {
+ color: currentcolor;
+ @supports (color: color-mix(in lab, red, red)) {
+ color: color-mix(in oklab, currentcolor 50%, transparent);
+ }
+ }
+ }
+ textarea {
+ resize: vertical;
+ }
+ ::-webkit-search-decoration {
+ -webkit-appearance: none;
+ }
+ ::-webkit-date-and-time-value {
+ min-height: 1lh;
+ text-align: inherit;
+ }
+ ::-webkit-datetime-edit {
+ display: inline-flex;
+ }
+ ::-webkit-datetime-edit-fields-wrapper {
+ padding: 0;
+ }
+ ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
+ padding-block: 0;
+ }
+ :-moz-ui-invalid {
+ box-shadow: none;
+ }
+ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
+ appearance: button;
+ }
+ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
+ height: auto;
+ }
+ [hidden]:where(:not([hidden='until-found'])) {
+ display: none !important;
+ }
+}
+@layer utilities {
+ .fixed {
+ position: fixed;
+ }
+ .relative {
+ position: relative;
+ }
+ .z-10 {
+ z-index: 10;
+ }
+ .z-20 {
+ z-index: 20;
+ }
+ .container {
+ width: 100%;
+ @media (width >= 40rem) {
+ max-width: 40rem;
+ }
+ @media (width >= 48rem) {
+ max-width: 48rem;
+ }
+ @media (width >= 64rem) {
+ max-width: 64rem;
+ }
+ @media (width >= 80rem) {
+ max-width: 80rem;
+ }
+ @media (width >= 96rem) {
+ max-width: 96rem;
+ }
+ }
+ .m-2 {
+ margin: calc(var(--spacing) * 2);
+ }
+ .mt-auto {
+ margin-top: auto;
+ }
+ .mr-2 {
+ margin-right: calc(var(--spacing) * 2);
+ }
+ .mr-auto {
+ margin-right: auto;
+ }
+ .mb-auto {
+ margin-bottom: auto;
+ }
+ .ml-auto {
+ margin-left: auto;
+ }
+ .flex {
+ display: flex;
+ }
+ .h-screen {
+ height: 100vh;
+ }
+ .flex-1 {
+ flex: 1;
+ }
+ .grow {
+ flex-grow: 1;
+ }
+ .cursor-pointer {
+ cursor: pointer;
+ }
+ .resize {
+ resize: both;
+ }
+ .flex-col {
+ flex-direction: column;
+ }
+ .flex-row {
+ flex-direction: row;
+ }
+ .items-center {
+ align-items: center;
+ }
+ .justify-center {
+ justify-content: center;
+ }
+ .gap-0 {
+ gap: calc(var(--spacing) * 0);
+ }
+ .overflow-hidden {
+ overflow: hidden;
+ }
+ .overflow-y-auto {
+ overflow-y: auto;
+ }
+ .rounded-lg {
+ border-radius: var(--radius-lg);
+ }
+ .rounded-md {
+ border-radius: var(--radius-md);
+ }
+ .border-t-4 {
+ border-top-style: var(--tw-border-style);
+ border-top-width: 4px;
+ }
+ .border-dotted {
+ --tw-border-style: dotted;
+ border-style: dotted;
+ }
+ .bg-repeat {
+ background-repeat: repeat;
+ }
+ .pr-2 {
+ padding-right: calc(var(--spacing) * 2);
+ }
+ .text-center {
+ text-align: center;
+ }
+ .text-left {
+ text-align: left;
+ }
+ .text-right {
+ text-align: right;
+ }
+ .font-patua {
+ font-family: var(--font-patua);
+ }
+ .font-spectral {
+ font-family: var(--font-spectral);
+ }
+ .font-extrabold {
+ --tw-font-weight: var(--font-weight-extrabold);
+ font-weight: var(--font-weight-extrabold);
+ }
+ .italic {
+ font-style: italic;
+ }
+ .shadow-2xl {
+ --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
+ }
+ .transition-colors {
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
+ }
+ .duration-300 {
+ --tw-duration: 300ms;
+ transition-duration: 300ms;
+ }
+ .select-none {
+ -webkit-user-select: none;
+ user-select: none;
+ }
+}
+[data-theme="olive"] {
+ --main-dark-color: #4b513a;
+ --main-medium-color: #8a9d8a;
+ --main-light-color: #a5b8a5;
+ --background-dark-color: #ffffdd;
+ --background-light-color: #fffff0;
+ --sidebar-text-color: var(--background-dark-color);
+ --sidebar-stroke-color: var(--main-dark-color);
+ --secondary-color: var(--main-light-color);
+ --interlocked-hexagons-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/olive/interlocked-hexagons.svg');
+ --squares-and-triangles-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/olive/squares-and-triangles.svg');
+ --invert-colors-in-sidebar: false;
+}
+[data-theme="lettuce"] {
+ --main-dark-color: #384a0c;
+ --main-medium-color: #9bb665;
+ --main-light-color: #bbd095;
+ --background-dark-color: #f5eee2;
+ --background-light-color: #fff9ef;
+ --sidebar-text-color: var(--main-dark-color);
+ --sidebar-stroke-color: var(--background-dark-color);
+ --secondary-color: var(--main-medium-color);
+ --interlocked-hexagons-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/lettuce/interlocked-hexagons.svg');
+ --squares-and-triangles-background: url('https://f003.backblazeb2.com/file/sayana-static/themes/lettuce/squares-and-triangles.svg');
+ --invert-colors-in-sidebar: true;
+}
+.bg-interlocked-hexagons {
+ background-image: var(--interlocked-hexagons-background);
+}
+.bg-squares-and-triangles {
+ background-image: var(--squares-and-triangles-background);
+}
+.text-sidebar {
+ color: var(--sidebar-text-color);
+}
+.stroke-sidebar {
+ border-color: var(--sidebar-stroke-color);
+}
+.text-main-dark {
+ color: var(--main-dark-color);
+}
+.text-background-dark {
+ color: var(--background-dark-color);
+}
+.text-secondary {
+ color: var(--secondary-color);
+}
+.bg-main-dark {
+ background-color: var(--main-dark-color);
+}
+.bg-background-dark {
+ background-color: var(--background-dark-color);
+}
+.bg-background-light {
+ background-color: var(--background-light-color);
+}
+.border-main-dark {
+ border-color: var(--main-dark-color);
+}
+.desktop-sidebar-custom {
+ width: 5vw;
+ background-size: 10vw;
+}
+.mobile-topbar-custom {
+ width: 90vw;
+ height: 10vh;
+ background-size: 20vh;
+ margin-left: 5vw;
+}
+.logo-custom {
+ width: 3.5vw;
+ height: 25vw;
+ font-size: 2.5vw;
+ -webkit-text-stroke: 0.1vw var(--sidebar-stroke-color);
+ writing-mode: sideways-lr;
+ text-orientation: mixed;
+ display: block;
+}
+.nav-icon-custom {
+ font-size: 3vw !important;
+ -webkit-text-stroke: 0.1vw var(--sidebar-stroke-color);
+ width: 5vw;
+ height: 5vw;
+ align-content: center;
+ text-align: center;
+}
+.nav-icon-custom:hover {
+ font-size: 4vw;
+}
+.content-square {
+ width: 100vh;
+}
+.border-left-custom {
+ width: 0.5vw;
+ border-right: 0.3vh dashed var(--main-dark-color);
+}
+.border-right-custom {
+ width: 0.5vw;
+ border-left: 0.5vh dotted var(--main-dark-color);
+}
+.bg-pattern-body {
+ background-size: 10vw;
+}
+.inset-shadow {
+ box-shadow: inset 0vh 1vh 1vh -1vh rgba(75, 81, 58, 0.5), inset 1vh 0vh 1vh -1vh rgba(75, 81, 58, 0.5), inset -1vh 0vh 1vh -1vh rgba(75, 81, 58, 0.5), inset 0vh -0.5vh rgba(75, 81, 58, 0.5);
+}
+.desktop {
+ display: flex;
+}
+.mobile {
+ display: none;
+}
+.lh-0-9 {
+ line-height: 0.9;
+}
+.lh-2 {
+ line-height: 2;
+}
+.ls-vmin0-04 {
+ letter-spacing: 0.04vmin;
+}
+.timl-vmax2 {
+ text-indent: 2vmax hanging;
+}
+.text-vmax0-8 {
+ font-size: 0.8vmax;
+}
+.text-vmax1 {
+ font-size: 1vmax !important;
+}
+.text-vmax1-5 {
+ font-size: 1.5vmax !important;
+}
+.text-vmax2 {
+ font-size: 2vmax;
+}
+.w-vw90 {
+ width: 90vw;
+}
+.h-vh90 {
+ height: 90vh;
+}
+.w-p80 {
+ width: 80%;
+}
+.mt-vmin0-8 {
+ margin-top: 0.8vmin;
+}
+.mt-vmin1-6 {
+ margin-top: 1.6vmin;
+}
+.mx-vmin1-6 {
+ margin-left: 1.6vmin;
+ margin-right: 1.6vmin;
+}
+.mb-vmin0-4 {
+ margin-bottom: 0.4vmin;
+}
+.mb-vmin0-8 {
+ margin-bottom: 0.8vmin;
+}
+.pl-vmin0-8 {
+ padding-left: 0.8vmin;
+}
+.pr-vmin1-2 {
+ padding-right: 1.2vmin;
+}
+.p-vmin2-4 {
+ padding: 2.4vmin;
+}
+.lg-backdrop {
+ background-color: var(--background-light-color);
+}
+.lg-thumb-outer {
+ background-color: var(--background-light-color) !important;
+}
+.lg-prev {
+ background-color: var(--background-light-color);
+ color: var(--main-dark-color);
+}
+.lg-next {
+ background-color: var(--background-light-color);
+ color: var(--main-dark-color);
+}
+.lg-counter {
+ color: var(--main-dark-color);
+ font-family: 'Spectral';
+ font-size: 1vmax;
+ padding-top: 0;
+ height: 1vmax;
+}
+.lg-toolbar .lg-icon {
+ padding: 0 0.7vmax;
+ font-size: 1.5vmax !important;
+ height: 1.5vmax;
+ width: auto;
+ color: var(--main-dark-color);
+}
+.lg-toolbar .lg-icon:hover {
+ color: var(--main-medium-color);
+}
+.lg-toolbar .lg-icon {
+ font-size: 1.5vmax !important;
+ color: var(--main-dark-color);
+}
+.lg-content .lg-icon:hover {
+ color: var(--main-medium-color);
+}
+.lg-sub-html {
+ padding: 0.7vmin 1.25vmin !important;
+}
+.inline-gallery-container {
+ width: 80%;
+ height: 60vmin;
+}
+.light-gallery-captions {
+ p {
+ transform: translate3d(0, 0, 0px);
+ transition-delay: 500ms;
+ opacity: 1;
+ }
+}
+.lg-slide-progress {
+ .light-gallery-captions {
+ h4 {
+ transform: translate3d(-60px, 0, 0px);
+ }
+ p {
+ transform: translate3d(60px, 0, 0px);
+ }
+ h4, p {
+ opacity: 0;
+ }
+ }
+}
+.lg-current {
+ &.lg-slide-progress {
+ .light-gallery-captions {
+ h4, p {
+ transition-delay: 0ms;
+ }
+ }
+ }
+}
+@media (max-aspect-ratio: 1.1/1) {
+ .desktop {
+ display: none;
+ }
+ .mobile {
+ display: flex;
+ }
+ .inline-gallery-container {
+ width: 100%;
+ }
+ .desktop-sidebar-custom {
+ width: 90%;
+ margin-left: 5vw;
+ height: 10vh;
+ background-size: 20vh;
+ }
+ .logo-custom {
+ display: none;
+ }
+ .nav-icon-custom {
+ font-size: 6vh !important;
+ -webkit-text-stroke: 0.1vh var(--sidebar-stroke-color);
+ width: 10vh;
+ height: 10vh;
+ align-content: center;
+ text-align: center;
+ }
+ .nav-icon-custom:hover {
+ font-size: 8vh;
+ }
+ .bg-pattern-body {
+ background-size: 10vh;
+ }
+ .border-left-custom {
+ width: 1%;
+ border-right: 0.3vw dashed var(--main-dark-color);
+ }
+ .border-right-custom {
+ width: 1.5%;
+ border-left: 0.5vw dotted var(--main-dark-color);
+ }
+}
+@media (max-aspect-ratio: 0.4/1) {
+ .desktop-sidebar-custom {
+ width: 100%;
+ margin-left: 0;
+ }
+}
+@property --tw-border-style {
+ syntax: "*";
+ inherits: false;
+ initial-value: solid;
+}
+@property --tw-font-weight {
+ syntax: "*";
+ inherits: false;
+}
+@property --tw-shadow {
+ syntax: "*";
+ inherits: false;
+ initial-value: 0 0 #0000;
+}
+@property --tw-shadow-color {
+ syntax: "*";
+ inherits: false;
+}
+@property --tw-shadow-alpha {
+ syntax: "<percentage>";
+ inherits: false;
+ initial-value: 100%;
+}
+@property --tw-inset-shadow {
+ syntax: "*";
+ inherits: false;
+ initial-value: 0 0 #0000;
+}
+@property --tw-inset-shadow-color {
+ syntax: "*";
+ inherits: false;
+}
+@property --tw-inset-shadow-alpha {
+ syntax: "<percentage>";
+ inherits: false;
+ initial-value: 100%;
+}
+@property --tw-ring-color {
+ syntax: "*";
+ inherits: false;
+}
+@property --tw-ring-shadow {
+ syntax: "*";
+ inherits: false;
+ initial-value: 0 0 #0000;
+}
+@property --tw-inset-ring-color {
+ syntax: "*";
+ inherits: false;
+}
+@property --tw-inset-ring-shadow {
+ syntax: "*";
+ inherits: false;
+ initial-value: 0 0 #0000;
+}
+@property --tw-ring-inset {
+ syntax: "*";
+ inherits: false;
+}
+@property --tw-ring-offset-width {
+ syntax: "<length>";
+ inherits: false;
+ initial-value: 0px;
+}
+@property --tw-ring-offset-color {
+ syntax: "*";
+ inherits: false;
+ initial-value: #fff;
+}
+@property --tw-ring-offset-shadow {
+ syntax: "*";
+ inherits: false;
+ initial-value: 0 0 #0000;
+}
+@property --tw-duration {
+ syntax: "*";
+ inherits: false;
+}
+@layer properties {
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
+ *, ::before, ::after, ::backdrop {
+ --tw-border-style: solid;
+ --tw-font-weight: initial;
+ --tw-shadow: 0 0 #0000;
+ --tw-shadow-color: initial;
+ --tw-shadow-alpha: 100%;
+ --tw-inset-shadow: 0 0 #0000;
+ --tw-inset-shadow-color: initial;
+ --tw-inset-shadow-alpha: 100%;
+ --tw-ring-color: initial;
+ --tw-ring-shadow: 0 0 #0000;
+ --tw-inset-ring-color: initial;
+ --tw-inset-ring-shadow: 0 0 #0000;
+ --tw-ring-inset: initial;
+ --tw-ring-offset-width: 0px;
+ --tw-ring-offset-color: #fff;
+ --tw-ring-offset-shadow: 0 0 #0000;
+ --tw-duration: initial;
+ }
+ }
+}
diff --git a/views/index.html b/views/index.html
new file mode 100644
index 0000000..4e52710
--- /dev/null
+++ b/views/index.html
@@ -0,0 +1,283 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>SAYA TODAY // {{ .Title }}</title>
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.8.3/css/lightgallery.min.css">
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.8.3/css/lg-zoom.min.css">
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.8.3/css/lg-thumbnail.min.css">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Patua+One&display=swap" rel="stylesheet">
+ <link href="./output.css" rel="stylesheet">
+</head>
+
+<body data-theme="olive" class="font-spectral text-main-dark overflow-hidden bg-interlocked-hexagons bg-repeat bg-pattern-body h-screen flex">
+
+ <script>
+ function switchTheme(theme) {
+ if (theme == "" || typeof theme == "undefined") {
+ const currentTheme = document.body.getAttribute('data-theme');
+ theme = currentTheme == "olive" ? "lettuce" : "olive";
+ }
+ localStorage.setItem('theme', theme);
+ document.body.setAttribute('data-theme', theme);
+ }
+
+ const savedTheme = localStorage.getItem('theme') || 'olive';
+ switchTheme(savedTheme);
+ </script>
+
+ <div class="desktop-sidebar-custom fixed bg-squares-and-triangles bg-repeat flex-col items-center shadow-2xl z-20 h-screen desktop">
+ <div class="logo-custom text-sidebar font-patua font-extrabold text-center relative z-20">
+ demo.saya.today
+ </div>
+ <div class="flex flex-col gap-0 relative z-20">
+ <i class="fas fa-home nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
+ <i class="fas fa-search nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
+ <i class="fas fa-images nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
+ <i onclick="switchTheme('')" class="fas fa-swatchbook nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
+ </div>
+ </div>
+
+ <div class="bg-background-dark z-10 h-screen desktop" style="padding-left: 5vw;">
+ <div class="border-left-custom bg-background-dark"></div>
+
+ <div class="content-square flex flex-col bg-background-dark relative mt-vmin1-6 mx-vmin1-6">
+ <div class="flex flex-row mb-vmin0-4">
+ <i class="fas fa-circle-left hover:bg-main-dark hover:bg-opacity-10 cursor-pointer transition-colors duration-300 rounded-md text-vmax2 mt-auto mb-auto pl-vmin0-8 pr-2"></i>
+ <p class="text-vmax2 font-spectral italic font-extrabold select-none mt-auto pl-vmin0-8 pr-vmin1-2">//</p>
+ <p class="text-vmax2 font-spectral italic text-left mt-auto">Демо-материал после демон-аэропорта</p>
+ <p class="grow text-vmax1-5 font-spectral text-secondary text-right mt-auto">2025.07.21 20:34:44 UTC+3</p>
+ </div>
+ <hr class="border-t-4 border-dotted border-main-dark mb-vmin0-8">
+
+ <div class="bg-background-light flex flex-col flex-1 overflow-y-auto inset-shadow p-vmin2-4">
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left">Ученик однажды попросил мудреца переименовать фотографические файлы формата JPG за 21 июля 2025 на своём телефоне, чтобы структура их имён была идентична. Ученик очень хотел поделиться своими двоякими впечатлениями от современных реалий российского авиатранспорта и хотел сначала загрузить свои фотографии в нужном формате. В ответ мудрец удалил их нахуй</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Мудрец будет удалён к ебеням с телефона и оценён на 1 звезду.</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">В итоге, чтобы собрать материал под эту демо-страницу, я вспомнил про недавно купленную клавиатуру.</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Это Apple Keyboard 1048 из 2003!</p>
+ <div class="justify-content-center display-block m-2">
+ <hr class="border-t-4 border-dotted border-main-dark mt-vmin0-8 mb-vmin0-8 w-p80 ml-auto mr-auto">
+ <div class="inline-gallery-container inline-gallery-container-1 relative ml-auto mr-auto"></div>
+ <hr class="border-t-4 border-dotted border-main-dark mt-vmin0-8 mb-vmin0-8 w-p80 ml-auto mr-auto">
+ </div>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left">Мотив был такой -- мне нравится её внешний вид, эта курватура аля склона холма. Ну и USB, ничего не мешает подключить куда угодно. И цена таким на рынке -- 2 тыщи на рынке (~25$).</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Купил -- понравилась и тактильность, хоть это и мембранная клава!</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Но затем я решил её почистить, ибо она была желтоватая и у неё слипались пробел и клавиша Mac. На выходе действительно она получилась белей, клавиши все нажимаются на ура... но идея опрыскать базу клавы перекисью была ошибкой. Теперь у неё работает только Enter. :(</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Напоследок немного макросъёмки, ибо почему бы и нет:</p>
+ <div class="justify-content-center display-block m-2">
+ <hr class="border-t-4 border-dotted border-main-dark mt-vmin0-8 mb-vmin0-8 w-p80 ml-auto mr-auto">
+ <div class="inline-gallery-container inline-gallery-container-2 relative ml-auto mr-auto"></div>
+ <hr class="border-t-4 border-dotted border-main-dark mt-vmin0-8 mb-vmin0-8 w-p80 ml-auto mr-auto">
+ </div>
+ </div>
+
+ <div class="flex flex-row mt-vmin0-8 mb-vmin0-4">
+ <p class="grow text-vmax0-8 lh-0-9 font-spectral italic text-right text-secondary mr-2">
+ <a href="https://demo.saya.today">Демо-материал после демон-аэропорта</a> © 2025 by <a href="https://t.me/EarlInisMona">Saya Andy</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
+ </p>
+ <img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
+ <img src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
+ <img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
+ </div>
+
+ <hr class="border-t-4 border-dotted border-main-dark mb-vmin0-8">
+ </div>
+
+ <div class="border-right-custom bg-background-dark shadow-2xl"></div>
+ </div>
+
+ <div class="mobile-topbar-custom fixed bg-squares-and-triangles bg-repeat flex-row items-center shadow-2xl w-vw90 z-20 mobile">
+ <div class="flex flex-row gap-0 relative z-20">
+ <i class="fas fa-home nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
+ <i class="fas fa-search nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
+ <i class="fas fa-images nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
+ <i onclick="switchTheme('')" class="fas fa-swatchbook nav-icon-custom text-sidebar hover:bg-background-dark cursor-pointer transition-colors duration-300 flex justify-center items-center rounded-lg"></i>
+ </div>
+ <div class="logo-custom text-background-dark font-patua font-extrabold text-center relative grow z-20">
+ demo.saya.today
+ </div>
+ </div>
+
+ <div class="bg-background-dark flex-row z-10 w-vw90 h-vh90 mobile" style="margin-left: 5vw; margin-top: 10vh;">
+ <div class="border-left-custom bg-background-dark"></div>
+
+ <div class="content-square flex flex-col bg-background-dark relative mt-vmin1-6 mx-vmin1-6">
+ <div class="flex flex-row mb-vmin0-4">
+ <i class="fas fa-circle-left hover:bg-main-dark hover:bg-opacity-10 cursor-pointer transition-colors duration-300 rounded-md text-vmax2 mt-auto mb-auto pl-vmin0-8 pr-2"></i>
+ <p class="text-vmax2 font-spectral italic font-extrabold select-none mt-auto pl-vmin0-8 pr-vmin1-2">//</p>
+ <p class="text-vmax2 font-spectral italic text-left mt-auto">Демо-материал после демон-аэропорта</p>
+ <p class="grow text-vmax1-5 font-spectral text-secondary text-right mt-auto">2025.07.21 20:34:44 UTC+3</p>
+ </div>
+ <hr class="border-t-4 border-dotted border-main-dark mb-vmin0-8">
+
+ <div class="bg-background-light flex flex-col flex-1 overflow-y-auto inset-shadow p-vmin2-4">
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left">Ученик однажды попросил мудреца переименовать фотографические файлы формата JPG за 21 июля 2025 на своём телефоне, чтобы структура их имён была идентична. Ученик очень хотел поделиться своими двоякими впечатлениями от современных реалий российского авиатранспорта и хотел сначала загрузить свои фотографии в нужном формате. В ответ мудрец удалил их нахуй</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Мудрец будет удалён к ебеням с телефона и оценён на 1 звезду.</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">В итоге, чтобы собрать материал под эту демо-страницу, я вспомнил про недавно купленную клавиатуру.</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Это Apple Keyboard 1048 из 2003!</p>
+ <div class="justify-content-center display-block m-2">
+ <hr class="border-t-4 border-dotted border-main-dark mt-vmin0-8 mb-vmin0-8 w-p80 ml-auto mr-auto">
+ <div class="inline-gallery-container inline-gallery-container-1 relative ml-auto mr-auto"></div>
+ <hr class="border-t-4 border-dotted border-main-dark mt-vmin0-8 mb-vmin0-8 w-p80 ml-auto mr-auto">
+ </div>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left">Мотив был такой -- мне нравится её внешний вид, эта курватура аля склона холма. Ну и USB, ничего не мешает подключить куда угодно. И цена таким на рынке -- 2 тыщи на рынке (~25$).</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Купил -- понравилась и тактильность, хоть это и мембранная клава!</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Но затем я решил её почистить, ибо она была желтоватая и у неё слипались пробел и клавиша Mac. На выходе действительно она получилась белей, клавиши все нажимаются на ура... но идея опрыскать базу клавы перекисью была ошибкой. Теперь у неё работает только Enter. :(</p>
+ <p class="text-vmax1 font-spectral lh-2 ls-vmin0-04 timl-vmax2 text-left mt-vmin1-6">Напоследок немного макросъёмки, ибо почему бы и нет:</p>
+ <div class="justify-content-center display-block m-2">
+ <hr class="border-t-4 border-dotted border-main-dark mt-vmin0-8 mb-vmin0-8 w-p80 ml-auto mr-auto">
+ <div class="inline-gallery-container inline-gallery-container-2 relative ml-auto mr-auto"></div>
+ <hr class="border-t-4 border-dotted border-main-dark mt-vmin0-8 mb-vmin0-8 w-p80 ml-auto mr-auto">
+ </div>
+ </div>
+
+ <div class="flex flex-row mt-vmin0-8 mb-vmin0-4">
+ <p class="grow text-vmax0-8 lh-0-9 font-spectral italic text-right text-secondary mr-2">
+ <a href="https://demo.saya.today">{{ .Title }}</a> © 2025 by <a href="https://t.me/EarlInisMona">Saya Andy</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
+ </p>
+ <img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
+ <img src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
+ <img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="" style="max-width:1.2vh; max-height:1.2vh;">
+ </div>
+
+ <hr class="border-t-4 border-dotted border-main-dark mb-vmin0-8">
+ </div>
+
+ <div class="border-right-custom bg-background-dark shadow-2xl"></div>
+ </div>
+
+ <script src="https://f003.backblazeb2.com/file/sayana-static/libs/lightgallery/2.8.3/lightgallery.min.js"></script>
+ <script src="https://f003.backblazeb2.com/file/sayana-static/libs/lightgallery/2.8.3/plugins/lg-zoom.min.js"></script>
+ <script src="https://f003.backblazeb2.com/file/sayana-static/libs/lightgallery/2.8.3/plugins/lg-thumbnail.min.js"></script>
+
+ <script>
+ function createLightGallery(className, elements) {
+ const $lgContainers = document.getElementsByClassName(className);
+ for (i = 0; i < $lgContainers.length; i++) {
+ const $lgContainer = $lgContainers[i];
+ const inlineGallery = lightGallery($lgContainer, {
+ container: $lgContainer,
+ dynamic: true,
+ width: "100%",
+ height: "50vmin",
+ hash: false,
+ closable: false,
+ showMaximizeIcon: true,
+ appendSubHtmlTo: ".lg-sub-html",
+ isMobile: () => { return false; },
+ slideDelay: 0,
+ plugins: [lgZoom, lgThumbnail],
+ dynamicEl: elements,
+ thumbWidth: 160,
+ thumbHeight: "10vmin",
+ thumbMargin: 4
+ });
+
+ setTimeout(() => {
+ inlineGallery.openGallery();
+ }, 200);
+ }
+ }
+
+ function destroyLightGallery(className) {
+ const $lgContainers = document.getElementsByClassName(className);
+ for (i = 0; i < $lgContainers.length; i++) {
+ const $lgContainer = $lgContainers[i];
+ $lgContainer.innerHTML = "";
+ }
+ }
+ </script>
+
+ <script>
+ createLightLibrary1 = (() => {
+ createLightGallery("inline-gallery-container-1", [
+ {
+ src:
+ "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-191056.jpg",
+ downloadUrl:
+ "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-191056.jpg",
+ alt: "Клава в отливе тусклого вечернего солнца",
+ sources: [{
+ srcset: "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-191056.webp",
+ media: "(max-width: 800px)"
+ }],
+ thumb:
+ "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-191056.webp",
+ subHtml: `<div class="flex flex-row light-gallery-captions">
+ <p class="grow text-vmax1 text-left lh-0-9 font-spectral text-main-dark">Клава в отливе тусклого вечера</p>
+ <p class="text-vmax1 text-right lh-0-9 font-spectral text-secondary">2025.07.21 19:10:56 UTC+7</p>
+ </div>`
+ }
+ ]);
+ });
+
+ createLightLibrary1();
+
+ let resizeTimer1;
+ window.addEventListener("resize", () => {
+ clearTimeout(resizeTimer1);
+ resizeTimer1 = setTimeout(() => {
+ destroyLightGallery("inline-gallery-container-1");
+ createLightLibrary1();
+ }, 1000);
+ });
+ </script>
+
+ <script>
+ createLightLibrary2 = (() => {
+ createLightGallery("inline-gallery-container-2", [
+ {
+ src:
+ "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-185010.jpg",
+ downloadUrl:
+ "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-185010.jpg",
+ alt: "Что можно сделать с F16? Не знаю. Я в принципе F-клавиши редко клацаю.",
+ sources: [{
+ srcset: "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-185010.webp",
+ media: "(max-width: 800px)"
+ }],
+ thumb:
+ "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-185010.webp",
+ subHtml: `<div class="flex flex-row light-gallery-captions">
+ <p class="grow text-vmax1 text-left lh-0-9 font-spectral text-main-dark">Что можно сделать с F16? Не знаю. Я в принципе F-клавиши редко клацаю.</p>
+ <p class="text-vmax1 text-right lh-0-9 font-spectral text-secondary">2025.07.21 18:50:10 UTC+7</p>
+ </div>`
+ },
+ {
+ src:
+ "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-190655.jpg",
+ downloadUrl:
+ "https://f003.backblazeb2.com/file/sayana-photos/full/Novosibirsk-Home-20250721-190655.jpg",
+ alt: "Уход от Enter в задний план",
+ sources: [{
+ srcset: "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-190655.webp",
+ media: "(max-width: 800px)"
+ }],
+ thumb:
+ "https://f003.backblazeb2.com/file/sayana-photos/thumbnails/Novosibirsk-Home-20250721-190655.webp",
+ subHtml: `<div class="flex flex-row light-gallery-captions">
+ <p class="grow text-vmax1 text-left lh-0-9 font-spectral text-main-dark">Уход от Enter в задний план</p>
+ <p class="text-vmax1 text-right lh-0-9 font-spectral text-secondary">2025.07.21 19:06:55 UTC+7</p>
+ </div>`
+ }
+ ]);
+ });
+
+ createLightLibrary2();
+
+ let resizeTimer2;
+ window.addEventListener("resize", () => {
+ clearTimeout(resizeTimer2);
+ resizeTimer2 = setTimeout(() => {
+ destroyLightGallery("inline-gallery-container-2");
+ createLightLibrary2();
+ }, 1000);
+ });
+ </script>
+
+</body>
+</html>