diff options
| author | maike <maike@synzr.tw> | 2026-09-03 10:59:09 +0500 |
|---|---|---|
| committer | maike <maike@synzr.tw> | 2026-09-03 10:59:09 +0500 |
| commit | b5dcc96742cc2cbf98e4c0f734e842418e4f4307 (patch) | |
| tree | b45c6a5498a2c0c974cbb216ea5d0d7186e33f97 /htdocs | |
| parent | e176c0f0709bd17a46d943b96e631a3f2b1320fb (diff) | |
| download | hamster-b5dcc96742cc2cbf98e4c0f734e842418e4f4307.tar.gz hamster-b5dcc96742cc2cbf98e4c0f734e842418e4f4307.tar.bz2 hamster-b5dcc96742cc2cbf98e4c0f734e842418e4f4307.zip | |
Restructued a project
Diffstat (limited to 'htdocs')
| -rw-r--r-- | htdocs/css/main.css | 86 | ||||
| -rw-r--r-- | htdocs/img/photo/me.jpg | bin | 0 -> 663485 bytes | |||
| -rw-r--r-- | htdocs/img/pokepi.png | bin | 0 -> 70708 bytes | |||
| -rw-r--r-- | htdocs/img/pokepi.webp | bin | 0 -> 29530 bytes | |||
| -rw-r--r-- | htdocs/img/thumb/me.jpg | bin | 0 -> 39173 bytes | |||
| -rw-r--r-- | htdocs/img/thumb/me.webp | bin | 0 -> 33282 bytes | |||
| -rw-r--r-- | htdocs/index.html | 33 | ||||
| -rw-r--r-- | htdocs/js/main.js | 10 |
8 files changed, 129 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 0000000..de6f49a --- /dev/null +++ b/htdocs/img/photo/me.jpg diff --git a/htdocs/img/pokepi.png b/htdocs/img/pokepi.png Binary files differnew file mode 100644 index 0000000..d62f7ab --- /dev/null +++ b/htdocs/img/pokepi.png diff --git a/htdocs/img/pokepi.webp b/htdocs/img/pokepi.webp Binary files differnew file mode 100644 index 0000000..0709ecb --- /dev/null +++ b/htdocs/img/pokepi.webp diff --git a/htdocs/img/thumb/me.jpg b/htdocs/img/thumb/me.jpg Binary files differnew file mode 100644 index 0000000..85eda7e --- /dev/null +++ b/htdocs/img/thumb/me.jpg diff --git a/htdocs/img/thumb/me.webp b/htdocs/img/thumb/me.webp Binary files differnew file mode 100644 index 0000000..d09cc5b --- /dev/null +++ b/htdocs/img/thumb/me.webp 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] + ] + <p class="text"> + Меня зовут Михаил, я платно учусь в частном колледже на IT, + интересуюсь технологиями и коллекционирую музыку на CD-пластинках. + Ну, вроде бы я человек - насколько это возможно. Обожаю лезть, куда не надо. + </p> + } + <hr class="divider"> + } +}{ +# 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())); +}); |
