From d76981975476c561e3164f53d48eea305dd9756a Mon Sep 17 00:00:00 2001 From: Stas Medvedev Date: Thu, 13 Jun 2024 02:39:09 +0300 Subject: =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D1=84=D1=80?= =?UTF-8?q?=D0=BE=D0=BD=D1=82=D0=B0,=20=D0=BD=D0=BE=D0=B2=D0=B0=D1=8F=20?= =?UTF-8?q?=D1=86=D0=B2=D0=B5=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=20=D1=81=D1=85?= =?UTF-8?q?=D0=B5=D0=BC=D0=B0=20(=D1=81=D0=B8=D0=BD=D0=B8=D0=B9,=20=D1=81?= =?UTF-8?q?=D0=B5=D1=80=D1=8B=D0=B9)=20countdown=20executeCode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 21 ++++++++--- templates/partials/about.html | 4 +-- templates/partials/avatars.html | 2 +- templates/partials/code/index.html | 67 +++++++++++++++++++++++++++++++++++ templates/partials/code/textarea.html | 34 ++++++++++++++++++ templates/style.css | 12 +++++-- 6 files changed, 131 insertions(+), 9 deletions(-) create mode 100644 templates/partials/code/index.html create mode 100644 templates/partials/code/textarea.html (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 396c663..066ba9c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -23,8 +23,14 @@ /> + - Document + + + + + + Визитка: Стас Медведев
{% include 'partials/about.html' %} - {% include 'partials/palette.html' %} - {% include 'partials/services.html' %} + {% include 'partials/code/index.html' %} +
-
+
+ {% include 'partials/avatars.html' %} + {% include 'partials/services.html' %}
diff --git a/templates/partials/about.html b/templates/partials/about.html index 238d895..affc786 100644 --- a/templates/partials/about.html +++ b/templates/partials/about.html @@ -3,7 +3,7 @@

Я backend @@ -24,7 +24,7 @@ разработчик

- В основном пишу на + Пишу на языке python

+
{% for url in avatar_urls %} diff --git a/templates/partials/code/index.html b/templates/partials/code/index.html new file mode 100644 index 0000000..9b39e59 --- /dev/null +++ b/templates/partials/code/index.html @@ -0,0 +1,67 @@ +
+
+

Python 3.10 (sandbox)

+ + go to source code (click me) + + +
+ + {% include 'partials/code/textarea.html' %} + +
+

+ + +
+
+

Нажмите "Выполнить"

+
+
+ + diff --git a/templates/partials/code/textarea.html b/templates/partials/code/textarea.html new file mode 100644 index 0000000..a13ba69 --- /dev/null +++ b/templates/partials/code/textarea.html @@ -0,0 +1,34 @@ + + + + diff --git a/templates/style.css b/templates/style.css index 4086c46..418dce1 100644 --- a/templates/style.css +++ b/templates/style.css @@ -33,13 +33,13 @@ div { @apply rounded-md; } .text-interactive { - @apply text-secondary-500 hover:text-fuchsia-600; + @apply underline text-secondary-500 hover:text-primary-600; } .header { @apply w-full md:w-2/3 bg-primary-300 flex p-2; } .about { - @apply border-4 border-fuchsia-200 border-dashed p-2 justify-items-center; + @apply border-4 border-primary-200 border-dashed p-2 justify-items-center bg-white; } .about p { @apply text-2xl; @@ -54,4 +54,12 @@ div { font-style: normal; } +.CodeMirror { + @apply w-full h-auto; +} +.CodeMirror-scroll { + height: auto; + max-height:500px; +} + @tailwind utilities; -- cgit v1.2.3