From b28f7886e163a6acaacd839e5fd2faa9b1c7ce62 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Sun, 18 Jan 2026 01:25:10 +0300 Subject: [PATCH] wip: update my page --- blueprints/risdeveau/__init__.py | 8 + .../risdeveau/static/style/risdeveau.scss | 47 ++++++ blueprints/risdeveau/templates/base.tmpl | 24 +++ blueprints/risdeveau/templates/contacts.html | 58 ++++++++ blueprints/risdeveau/templates/donate.html | 21 +++ blueprints/risdeveau/templates/header.tmpl | 20 +++ blueprints/risdeveau/templates/index.html | 140 +++++++----------- locale/en.ini | 3 + locale/ru.ini | 3 + 9 files changed, 237 insertions(+), 87 deletions(-) create mode 100644 blueprints/risdeveau/templates/base.tmpl create mode 100644 blueprints/risdeveau/templates/contacts.html create mode 100644 blueprints/risdeveau/templates/donate.html create mode 100644 blueprints/risdeveau/templates/header.tmpl diff --git a/blueprints/risdeveau/__init__.py b/blueprints/risdeveau/__init__.py index af98cae..6282937 100644 --- a/blueprints/risdeveau/__init__.py +++ b/blueprints/risdeveau/__init__.py @@ -29,3 +29,11 @@ def static(filename: str): @bp.route("/") def index(): return render_tmpl('index.html') + +@bp.route("/contacts") +def contacts(): + return render_tmpl('contacts.html') + +@bp.route("/donate") +def donate(): + return render_tmpl('donate.html') diff --git a/blueprints/risdeveau/static/style/risdeveau.scss b/blueprints/risdeveau/static/style/risdeveau.scss index a5c8600..4f8f124 100644 --- a/blueprints/risdeveau/static/style/risdeveau.scss +++ b/blueprints/risdeveau/static/style/risdeveau.scss @@ -1,3 +1,30 @@ +@use "sass:color"; + +// Palette: Catppuccin Mocha +// https://catppuccin.com/palette/ +$base: #1e1e2e; +$text: #cdd6f4; + +$mantle: #181825; +$crust: #11111b; + +$overlay0: #6c7086; +$overlay1: #7f849c; +$overlay2: #9399b2; + +$surface0: #313244; +$surface1: #45475a; +$surface2: #585b70; + +$subtext0: #a6adc8; +$subtext1: #bac2de; + +$red: #f38ba8; +$green: #a6e3a1; +$peach: #fab387; +$blue: #89b4fa; +$mauve: #8839ef; + h3 { margin-block-end: 0; } @@ -31,3 +58,23 @@ h3 { } } +table, tbody { + vertical-align: baseline; + border-collapse: collapse; + + tr { + border-radius: 10px; + + &:hover { + background-color: color.change($surface1, $alpha:75%); + } + + th { + text-align: unset; + } + + th + td, td + td { + padding-left: 2rem; + } + } +} diff --git a/blueprints/risdeveau/templates/base.tmpl b/blueprints/risdeveau/templates/base.tmpl new file mode 100644 index 0000000..28a5fbf --- /dev/null +++ b/blueprints/risdeveau/templates/base.tmpl @@ -0,0 +1,24 @@ + + + + Sweet Bread + + + + + + + {% block head %}{% endblock %} + + + {% include 'risdeveau/templates/header.tmpl' %} + +
+ {% block content %}{% endblock %} +
+ + \ No newline at end of file diff --git a/blueprints/risdeveau/templates/contacts.html b/blueprints/risdeveau/templates/contacts.html new file mode 100644 index 0000000..3f6c66e --- /dev/null +++ b/blueprints/risdeveau/templates/contacts.html @@ -0,0 +1,58 @@ +{% extends 'risdeveau/templates/base.tmpl' %} + +{% block head %} + +{% endblock %} + +{% block content %} +

Development

+
+ + + Gitea + + + + GitHub + + + + KolibriOS Git + +
+ +

Contacts

+
+ + + Matrix + + + + Fediverse + + + + Discord + + + Mail + +
+ +

Game accounts

+
+ + + Steam + + + + GameBanana + +
+{% endblock %} diff --git a/blueprints/risdeveau/templates/donate.html b/blueprints/risdeveau/templates/donate.html new file mode 100644 index 0000000..de7ca5f --- /dev/null +++ b/blueprints/risdeveau/templates/donate.html @@ -0,0 +1,21 @@ +{% extends 'risdeveau/templates/base.tmpl' %} + +{% block content %} +

Wallets

+
+
+

POL, BNB

+ +
+ +
+

TON

+ +
+ +
+

XMR

+ +
+
+{% endblock %} diff --git a/blueprints/risdeveau/templates/header.tmpl b/blueprints/risdeveau/templates/header.tmpl new file mode 100644 index 0000000..5c81ba4 --- /dev/null +++ b/blueprints/risdeveau/templates/header.tmpl @@ -0,0 +1,20 @@ +
+ {%- if request.path != url_for('.index') %} + Main + {%- else %} + Lair + {%- endif %} + + +
\ No newline at end of file diff --git a/blueprints/risdeveau/templates/index.html b/blueprints/risdeveau/templates/index.html index 5ad3f1e..cafbabe 100644 --- a/blueprints/risdeveau/templates/index.html +++ b/blueprints/risdeveau/templates/index.html @@ -1,88 +1,54 @@ - - - - Sweet Bread +{% extends 'risdeveau/templates/base.tmpl' %} - - - - - - - -
- Lair -
- -
-

Development

- - -

Contacts

- - -

Game accounts

- - -

Wallets

-
-
-

POL, BNB

- -
- -
-

TON

- -
- -
-

XMR

- -
-
-
- - \ No newline at end of file +{% block content %} +
+ + + + + + + + + + + + + +
DoB2005-01-13
Languages + + + + + + + + + + + + + + + + + + + + + +
RussianNative
EnglishB2
FrenchA1?
GermanA2?
JapaneseBeginner
+
Student + + + + + + + + + +
Programmer2/4yr.
Translator2/3yr.
+
+
+{% endblock %} \ No newline at end of file diff --git a/locale/en.ini b/locale/en.ini index f6514a0..281d0f9 100644 --- a/locale/en.ini +++ b/locale/en.ini @@ -5,6 +5,9 @@ contact us = Contact us about us = About us about host = About host +contacts = Contacts +donate = Donate + [index] altfronts = Altfronts diff --git a/locale/ru.ini b/locale/ru.ini index f5c8fd0..afef801 100644 --- a/locale/ru.ini +++ b/locale/ru.ini @@ -5,6 +5,9 @@ contact us = Для связи about us = О нас about host = О хосте +contacts = Контакты +donate = Донат + [index] altfronts = Альтфронты