From b5dcc96742cc2cbf98e4c0f734e842418e4f4307 Mon Sep 17 00:00:00 2001 From: maike Date: Thu, 3 Sep 2026 10:59:09 +0500 Subject: Restructued a project --- htdocs/css/main.css | 86 +++++++++++++++++++++++++++++++++++++++++++++++ htdocs/img/photo/me.jpg | Bin 0 -> 663485 bytes htdocs/img/pokepi.png | Bin 0 -> 70708 bytes htdocs/img/pokepi.webp | Bin 0 -> 29530 bytes htdocs/img/thumb/me.jpg | Bin 0 -> 39173 bytes htdocs/img/thumb/me.webp | Bin 0 -> 33282 bytes htdocs/index.html | 33 ++++++++++++++++++ htdocs/js/main.js | 10 ++++++ 8 files changed, 129 insertions(+) create mode 100644 htdocs/css/main.css create mode 100644 htdocs/img/photo/me.jpg create mode 100644 htdocs/img/pokepi.png create mode 100644 htdocs/img/pokepi.webp create mode 100644 htdocs/img/thumb/me.jpg create mode 100644 htdocs/img/thumb/me.webp create mode 100644 htdocs/index.html create mode 100644 htdocs/js/main.js (limited to 'htdocs') diff --git a/htdocs/css/main.css b/htdocs/css/main.css new file mode 100644 index 0000000..6800c97 --- /dev/null +++ b/htdocs/css/main.css @@ -0,0 +1,86 @@ +body { + margin: 0; + padding: 0; + color: #424242; + background-color: #f9f9f9; + font-family: 'PT Sans', Arial, Helvetica, sans-serif; + font-size: 16px; +} + +h1, h2, h3, h4, h5, h6 { + color: #ff685b; + font-family: 'PT Sans Narrow', 'Arial Narrow', Arial, Helvetica, sans-serif; +} + +.clearfix::after { + content: ""; + display: table; + clear: both; +} + +.layout { + margin: 0 auto; + width: 100%; + max-width: 640px; + min-width: 240px; + min-height: 100vh; + background-color: #fff; +} + +.header .pokepi { + width: 240px; + height: 240px; + user-select: none; +} + +.header .brand { + float: right; + user-select: none; + margin: 18px; + font-size: 16px; + font-family: 'PT Mono', 'Courier New', Courier, monospace; +} + +.header .brand .letter { + display: block; + margin: 4px 0; +} + +@media (max-width: 480px) { + .header .brand { + display: none; /* hide on tiny screens */ + } +} + +.article { + padding: 0 9px; +} + +.article .title { + margin: 0; +} + +.article .divider { + margin: 9px 0; +} + +.article .section .title, +.article .section .text { + margin: 9px 0; +} + +.article .section .text { + text-align: justify; + text-indent: 12.5mm; +} + +.article .section .figure { + margin: 0 0 0 9px; + width: min-content; + float: right; +} + +.article .section .figure .caption { + font-style: italic; + font-size: 11px; +} diff --git a/htdocs/img/photo/me.jpg b/htdocs/img/photo/me.jpg new file mode 100644 index 0000000..de6f49a Binary files /dev/null and b/htdocs/img/photo/me.jpg differ diff --git a/htdocs/img/pokepi.png b/htdocs/img/pokepi.png new file mode 100644 index 0000000..d62f7ab Binary files /dev/null and b/htdocs/img/pokepi.png differ diff --git a/htdocs/img/pokepi.webp b/htdocs/img/pokepi.webp new file mode 100644 index 0000000..0709ecb Binary files /dev/null and b/htdocs/img/pokepi.webp differ diff --git a/htdocs/img/thumb/me.jpg b/htdocs/img/thumb/me.jpg new file mode 100644 index 0000000..85eda7e Binary files /dev/null and b/htdocs/img/thumb/me.jpg differ diff --git a/htdocs/img/thumb/me.webp b/htdocs/img/thumb/me.webp new file mode 100644 index 0000000..d09cc5b Binary files /dev/null and b/htdocs/img/thumb/me.webp differ diff --git a/htdocs/index.html b/htdocs/index.html new file mode 100644 index 0000000..ba13d03 --- /dev/null +++ b/htdocs/index.html @@ -0,0 +1,33 @@ +@USE +../lib/templates/base.p +../lib/partials/article.p +../lib/partials/section.p +../lib/partials/figure.p + +@main[] +$photo_thumbnails[ + $.[image/webp][/img/thumb/me.webp] + $.[image/jpeg][/img/thumb/me.jpg] +] +^base[михаил «synzr»]{ + ^article[index][Приветствую вас!]{ + ^section[about-me]{ + ^figure[$photo_thumbnails;image/jpeg; + $.caption[Моя фотография у останкинского телецентра в Москве] + $.height[160] + $.href[/img/photo/me.jpg] + ] +

+ Меня зовут Михаил, я платно учусь в частном колледже на IT, + интересуюсь технологиями и коллекционирую музыку на CD-пластинках. + Ну, вроде бы я человек - насколько это возможно. Обожаю лезть, куда не надо. +

+ } +
+ } +}{ +# empty CSS block +}{ +# empty JS block +} +#end @main[] diff --git a/htdocs/js/main.js b/htdocs/js/main.js new file mode 100644 index 0000000..b96513b --- /dev/null +++ b/htdocs/js/main.js @@ -0,0 +1,10 @@ +// brand letters' rotation +function rotate(letter) { + return String.fromCharCode( + letter.charCodeAt(0) + (letter.toLowerCase() <= 'm' ? 13 : -13) + ); +} + +$(".header .brand .letter").hover(function () { + $(this).text(rotate($(this).text())); +}); -- cgit v1.3