summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/css/main.css86
-rw-r--r--htdocs/img/photo/me.jpgbin0 -> 663485 bytes
-rw-r--r--htdocs/img/pokepi.pngbin0 -> 70708 bytes
-rw-r--r--htdocs/img/pokepi.webpbin0 -> 29530 bytes
-rw-r--r--htdocs/img/thumb/me.jpgbin0 -> 39173 bytes
-rw-r--r--htdocs/img/thumb/me.webpbin0 -> 33282 bytes
-rw-r--r--htdocs/index.html33
-rw-r--r--htdocs/js/main.js10
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
new file mode 100644
index 0000000..de6f49a
--- /dev/null
+++ b/htdocs/img/photo/me.jpg
Binary files differ
diff --git a/htdocs/img/pokepi.png b/htdocs/img/pokepi.png
new file mode 100644
index 0000000..d62f7ab
--- /dev/null
+++ b/htdocs/img/pokepi.png
Binary files differ
diff --git a/htdocs/img/pokepi.webp b/htdocs/img/pokepi.webp
new file mode 100644
index 0000000..0709ecb
--- /dev/null
+++ b/htdocs/img/pokepi.webp
Binary files differ
diff --git a/htdocs/img/thumb/me.jpg b/htdocs/img/thumb/me.jpg
new file mode 100644
index 0000000..85eda7e
--- /dev/null
+++ b/htdocs/img/thumb/me.jpg
Binary files differ
diff --git a/htdocs/img/thumb/me.webp b/htdocs/img/thumb/me.webp
new file mode 100644
index 0000000..d09cc5b
--- /dev/null
+++ b/htdocs/img/thumb/me.webp
Binary files 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]
+ ]
+ <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()));
+});