From fb0d1c21991e60e555acfbe3c39ff7c3879852f0 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Sat, 22 Mar 2025 18:27:43 +0300 Subject: [PATCH] wip: rewrite to flask --- app.py | 19 +++ de/index.htm | 141 ---------------- en/index.htm | 141 ---------------- locale.ini | 156 +++++++++++++++++ ru/download.htm.template | 159 ------------------ ru/index.htm | 143 ---------------- favicon.ico => static/favicon.ico | Bin {i => static/img}/banners/GSoC_2024.png | Bin {i => static/img}/banners/GSoC_2024.psd | Bin {i => static/img}/banners/banner_ru.psd | Bin {i => static/img}/banners/en.png | Bin {i => static/img}/banners/es.png | Bin {i => static/img}/banners/fr.png | Bin {i => static/img}/banners/it.png | Bin {i => static/img}/banners/ru.png | Bin {i => static/img}/bg.png | Bin {i/fl => static/img/flags}/24/de.png | Bin {i/fl => static/img/flags}/24/en.png | Bin {i/fl => static/img/flags}/24/ru.png | Bin {i/fl => static/img/flags}/24/un.png | Bin {i/fl => static/img/flags}/de.png | Bin {i/fl => static/img/flags}/en.png | Bin {i/fl => static/img/flags}/es.png | Bin {i/fl => static/img/flags}/fr.png | Bin {i/fl => static/img/flags}/it.png | Bin {i/fl => static/img/flags}/nl.png | Bin {i/fl => static/img/flags}/ru.png | Bin {i/banners => static/img/icons}/gitea.png | Bin {i => static/img/icons}/i_cd.png | Bin {i => static/img/icons}/i_discord.png | Bin {i => static/img/icons}/i_facebook.png | Bin {i => static/img/icons}/i_flash.png | Bin {i => static/img/icons}/i_floppy.png | Bin {i => static/img/icons}/i_reddit.png | Bin {i => static/img/icons}/i_telegram.png | Bin {i => static/img/icons}/i_uefi.png | Bin .../img/icons/i_universal.png | Bin {i => static/img}/logo.png | Bin {i => static/img}/outdated/GSoC_2014.png | Bin .../img}/outdated/banner_kickstarter_en.png | Bin {i => static/img}/outdated/banner_ru.png | Bin {i => static/img}/outdated/icons.png | Bin .../img}/outdated/reactos_kickstarter.jpg | Bin {i => static/img}/outdated/ru.png | Bin {i => static/img}/outdated/scroll-left.gif | Bin {i => static/img}/outdated/scroll-right.gif | Bin .../img/screenshots/1.png | Bin .../img/screenshots/2.png | Bin .../img/screenshots/3.png | Bin .../img/screenshots/4.png | Bin .../img/screenshots/5.png | Bin .../img/screenshots/6.png | Bin {i => static/img}/telegram.svg | 0 script.js => static/script.js | 0 style.css => static/style.css | 2 +- templates/de.html | 48 ++++++ templates/en.html | 45 +++++ templates/ru.html | 46 +++++ templates/tmpl/_footer.htm | 7 + templates/tmpl/_git.htm | 20 +++ templates/tmpl/_header.htm | 11 ++ templates/tmpl/_lang-dropdown.htm | 24 +++ templates/tmpl/_menu.htm | 12 ++ templates/tmpl/_socials.htm | 17 ++ templates/tmpl/download.htm | 87 ++++++++++ templates/tmpl/index.htm | 21 +++ 66 files changed, 514 insertions(+), 585 deletions(-) create mode 100644 app.py delete mode 100644 de/index.htm delete mode 100644 en/index.htm create mode 100644 locale.ini delete mode 100644 ru/download.htm.template delete mode 100644 ru/index.htm rename favicon.ico => static/favicon.ico (100%) rename {i => static/img}/banners/GSoC_2024.png (100%) rename {i => static/img}/banners/GSoC_2024.psd (100%) rename {i => static/img}/banners/banner_ru.psd (100%) rename {i => static/img}/banners/en.png (100%) rename {i => static/img}/banners/es.png (100%) rename {i => static/img}/banners/fr.png (100%) rename {i => static/img}/banners/it.png (100%) rename {i => static/img}/banners/ru.png (100%) rename {i => static/img}/bg.png (100%) rename {i/fl => static/img/flags}/24/de.png (100%) rename {i/fl => static/img/flags}/24/en.png (100%) rename {i/fl => static/img/flags}/24/ru.png (100%) rename {i/fl => static/img/flags}/24/un.png (100%) rename {i/fl => static/img/flags}/de.png (100%) rename {i/fl => static/img/flags}/en.png (100%) rename {i/fl => static/img/flags}/es.png (100%) rename {i/fl => static/img/flags}/fr.png (100%) rename {i/fl => static/img/flags}/it.png (100%) rename {i/fl => static/img/flags}/nl.png (100%) rename {i/fl => static/img/flags}/ru.png (100%) rename {i/banners => static/img/icons}/gitea.png (100%) rename {i => static/img/icons}/i_cd.png (100%) rename {i => static/img/icons}/i_discord.png (100%) rename {i => static/img/icons}/i_facebook.png (100%) rename {i => static/img/icons}/i_flash.png (100%) rename {i => static/img/icons}/i_floppy.png (100%) rename {i => static/img/icons}/i_reddit.png (100%) rename {i => static/img/icons}/i_telegram.png (100%) rename {i => static/img/icons}/i_uefi.png (100%) rename i/i_uni.png => static/img/icons/i_universal.png (100%) rename {i => static/img}/logo.png (100%) rename {i => static/img}/outdated/GSoC_2014.png (100%) rename {i => static/img}/outdated/banner_kickstarter_en.png (100%) rename {i => static/img}/outdated/banner_ru.png (100%) mode change 100755 => 100644 rename {i => static/img}/outdated/icons.png (100%) mode change 100755 => 100644 rename {i => static/img}/outdated/reactos_kickstarter.jpg (100%) rename {i => static/img}/outdated/ru.png (100%) rename {i => static/img}/outdated/scroll-left.gif (100%) rename {i => static/img}/outdated/scroll-right.gif (100%) rename i/slaid/slaid1.png => static/img/screenshots/1.png (100%) mode change 100755 => 100644 rename i/slaid/slaid2.png => static/img/screenshots/2.png (100%) mode change 100755 => 100644 rename i/slaid/slaid3.png => static/img/screenshots/3.png (100%) mode change 100755 => 100644 rename i/slaid/slaid4.png => static/img/screenshots/4.png (100%) mode change 100755 => 100644 rename i/slaid/slaid5.png => static/img/screenshots/5.png (100%) mode change 100755 => 100644 rename i/slaid/slaid6.png => static/img/screenshots/6.png (100%) mode change 100755 => 100644 rename {i => static/img}/telegram.svg (100%) rename script.js => static/script.js (100%) rename style.css => static/style.css (99%) create mode 100644 templates/de.html create mode 100644 templates/en.html create mode 100644 templates/ru.html create mode 100644 templates/tmpl/_footer.htm create mode 100644 templates/tmpl/_git.htm create mode 100644 templates/tmpl/_header.htm create mode 100644 templates/tmpl/_lang-dropdown.htm create mode 100644 templates/tmpl/_menu.htm create mode 100644 templates/tmpl/_socials.htm create mode 100644 templates/tmpl/download.htm create mode 100644 templates/tmpl/index.htm diff --git a/app.py b/app.py new file mode 100644 index 0000000..48788ee --- /dev/null +++ b/app.py @@ -0,0 +1,19 @@ +from flask import Flask, render_template, request, url_for +from datetime import date +from configparser import ConfigParser + +locale = ConfigParser() +locale.read('locale.ini') +app = Flask(__name__) + +print(locale) + +@app.route("/") +def index(lang): + return render_template(f'{lang}.html', locale=locale, lang=lang, year=date.today().year) # TODO: Check for vulnerability + +@app.route("//download") +def download_page(lang): + return render_template('tmpl/download.htm', locale=locale, lang=lang) + +app.run(host="0.0.0.0", debug=True) diff --git a/de/index.htm b/de/index.htm deleted file mode 100644 index 4799274..0000000 --- a/de/index.htm +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - KolibriOS - - - - - - - - - - - - - -
- - - -

- KolibriOS ist ein winziges, aber unglaublich leistungsstarkes und - schnelles Betriebssystem. Es benötigt nur wenige Megabyte Festplattenspeicher - und 12 MB RAM zum Laufen, bietet jedoch eine umfangreiche Sammlung von - Anwendungen, darunter Textverarbeitung, Bildbetrachter,grafischer Editor, - Webbrowser und über 30 spannende Spiele. - Es unterstützt zudem vollständig FAT12/16/32 und implementiert - schreibgeschützte Unterstützung für NTFS, exFAT, ISO9660 sowie Ext2/3/4, - und verfügt über eine umfangreiche Sammlung von - Treibern - für beliebte Sound-, Netzwerk- und Grafikkarten. -

- - - -

- Haben Sie schon einmal von einem System geträumt, das in weniger als wenigen - Sekunden vom Einschalten bis zu einer funktionierenden GUI bootet? - Anwendungen, die sofort starten, direkt nach dem Klicken auf ein Symbol, - ohne lästige Sanduhrzeiger? Diese Geschwindigkeit wird erreicht, da die - Kernkomponenten von KolibriOS (Kernel und Treiber) - vollständig in der Assemblersprache - FASM geschrieben - sind! - Probieren Sie KolibriOS aus und vergleichen Sie es mit Schwergewichten - wie Windows und Linux. -

- -

- KolibriOS hat sich 2004 von MenuetOS abgespalten und wird seitdem - unabhängig entwickelt. - Ihr Feedback wird sehr geschätzt, - und Ihre Hilfe - ist noch mehr willkommen. -

- -

- - Wir hoffen, es gefällt Ihnen!
- Ihr KolibriOS-Team -
-

- -

- - Telegram - -
- - Discord - -
- - Facebook - -
- - Reddit - -

- -
- - - - - \ No newline at end of file diff --git a/en/index.htm b/en/index.htm deleted file mode 100644 index 4c335dd..0000000 --- a/en/index.htm +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - KolibriOS - - - - - - - - - - - - - - -
- - - -

- KolibriOS is a tiny yet incredibly powerful and fast operating system. - It requires only a few megabyte disk space and 12 MB of RAM to run, - but features a rich set of applications that include word processor, image - viewer, graphical editor, web browser and over 30 exciting games. - It also has full FAT12/16/32 support is implemented, as well as read-only - support for NTFS, exFAT, ISO9660 and Ext2/3/4 and boasts an extensive set of - drivers - for popular sound, network and graphics cards. -

- - - -

- Have you ever dreamed of a system that boots in less than few seconds from - power-on to working GUI? About applications that start instantly, immediately - after clicking an icon, without annoying hourglass pointers? - This speed is achieved since the core parts of KolibriOS - (kernel and drivers) are written entirely in - FASM - assembly language! - Try KolibriOS and compare it with such heavyweights as Windows and Linux. -

- -

- KolibriOS has forked off from MenuetOS in 2004, and is run under - independent development since then. - Your feedback is very much - appreciated, and your - help - is even more welcome. -

- -

- - We hope you will enjoy it!
- KolibriOS Team -
-

- -

- - Telegram - -
- - Discord - -
- - Facebook - -
- - Reddit - -

- -
- - - - - - \ No newline at end of file diff --git a/locale.ini b/locale.ini new file mode 100644 index 0000000..0dce579 --- /dev/null +++ b/locale.ini @@ -0,0 +1,156 @@ +[ru] +language = Русский + +kolibrios = КолибриОС +download = Скачать +downloading = Загрузка + +forum = Форум +wiki = Вики +description = Официальный сайт KolibriOS +team = Команда КолибриОС + +git[1] = КолибриОС перешла на Git! +git[2] = Ознакомьтесь с нашей новой, удобной для разработчиков инфраструктурой + +img-descr = Образ дискеты +iso-descr = Образ LiveCD +distr-descr = Универсальный образ Flash/Multi-boot +raw-descr = Гибридный UEFI/BIOS образ + +prev_rev = Предыдущие выпуски +all_rev = Все ночные сборки + +screenshots = Скриншоты + +download_choice = Какой выбрать? +download_help = Для новичка лучше всего подойдет LiveCD.\n \ + \n\ + По сравнению с LiveCD преимущество универсального образа в том, что вы можете сохранить изменения, сделанные в KolibriOS.\n\ + \n\ + Гибридный образ включает поддержку технологии UEFI, которая используется для загрузки системы на новых компьютерах и ноутбуках. +download_description[0] = На этой странице вы можете скачать ночные сборки дистрибутива. + Это означает, что они всегда содержат последние изменения в системе и, + следовательно, могут быть нестабильными. Все файлы сжаты с помощью +download_description[1] = распространяется под лицензией +download_description[2] = а исходный код доступен на нашем +download_description[3] = Git-сервере + + +[ru.title] +index = KolibriOS +download_page = KolibriOS - Загрузка + +[ru.screenshots] +1 = Рабочий стол KolibriOS +2 = Демки +3 = Файловые менеджеры +4 = Сетевые приложения +5 = Игры +6 = Инструменты разработчика + + + +[en] +language = English + +kolibrios = KolibriOS +download = Download +downloading = Downloads + +forum = Forum +wiki = Wiki +description = +team = KolibriOS Team + +git[1] = KolibriOS moved to Git! +git[2] = Check our new developers-friendly infrastructure + +img-descr = Floppy disk image +iso-descr = LiveCD image +distr-descr = Universal Flash/Multi-boot image +raw-descr = Hybrid UEFI/BIOS image + +prev_rev = Previous releases +all_rev = All nightly builds + +screenshots = Screenshots + +download_choice = Which to choose? +download_help = For a beginner, the LiveCD is best.\n\ + \n\ + Compared to a LiveCD, the advantage of a universal image is that you can save changes made in KolibriOS.\n\ + \n\ + Hybrid image includes support for UEFI technology, which is used to boot the system on new computers and laptops. +download_description[0] = On this page you can download the nightly builds distribution, which means + that they always contain the most recent changes in the system and can, + therefore, be unstable. All files are compressed with +download_description[1] = is distributed under +download_description[2] = license, its source code is available on our +download_description[3] = Git server + + +[en.title] +index = KolibriOS +download_page = KolibriOS - Download + +[en.screenshots] +1 = KolibriOS desktop +2 = Demos +3 = File managers +4 = Network programs +5 = Games +6 = Developer and debug tools + + + +[de] +language = Deutsch + +kolibrios = KolibriOS +download = Herunterladen +downloading = Herunterladen + +forum = Forum +wiki = Wiki +description = +team = KolibriOS Team + +git[1] = KolibriOS ist zu Git gewechselt! +git[2] = Schau dir unsere neue entwicklerfreundliche Infrastruktur an + +img-descr = Disketten-Image +iso-descr = LiveCD-Abbild +distr-descr = Universal Flash/Multi-Boot-Abbild +raw-descr = Hybrides UEFI/BIOS-Abbild + +prev_rev = Frühere Versionen +all_rev = Alle nächtlichen Builds + +screenshots = Bildschirmfotos + +download_choice = Was soll ich wählen? +download_help = For a beginner, the LiveCD is best.\n\ + \n\ + Compared to a LiveCD, the advantage of a universal image is that you can save changes made in KolibriOS.\n\ + \n\ + Hybrid image includes support for UEFI technology, which is used to boot the system on new computers and laptops. +download_description[0] = Auf dieser Seite können Sie die nächtlichen Build-Distributionen herunterladen, + was bedeutet, dass sie stets die neuesten Änderungen am System enthalten und + daher instabil sein können. Alle Dateien sind mit +download_description[1] = komprimiert. +download_description[2] = wird unter der +download_description[3] = + + +[de.title] +index = KolibriOS +download_page = KolibriOS - Herunterladen + +[de.screenshots] +1 = KolibriOS Arbeitsoberfläche +2 = Demos +3 = Datei-Manager +4 = Netzwerk-Programme +5 = Spiele +6 = Entwickler- und Debug-Tools diff --git a/ru/download.htm.template b/ru/download.htm.template deleted file mode 100644 index 6487257..0000000 --- a/ru/download.htm.template +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - KolibriOS - Загрузка - - - - - - - - - - - - - - -
-

Загрузка

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
floppyОбраз дискеты$autobuild_date_ru - English - Русский - Español -
cdОбраз LiveCD$autobuild_date_ru - English - Русский - Español -
universalУниверсальный образ Flash/Multi-boot$autobuild_date_ru - English - Русский - Español -
uefiГибридный UEFI/BIOS образ БЕТА$autobuild_date_ru - English - Русский - Español -
-
-
-
- Какой выбрать? -
-
- Предыдущие выпуски - - Все ночные сборки -
- -

- На этой странице вы можете скачать ночные сборки дистрибутива. - Это означает, что они всегда содержат последние изменения в системе и, - следовательно, могут быть нестабильными. Все файлы сжаты с помощью - 7zip. - КолибриОС распространяется под лицензией - GPLv2, - а исходный код доступен на нашем - Git-сервере. -

- - -

Скриншоты

- -
-
- Рабочий стол КолибриОС - Демки - Файловые менеджеры - Сетевые приложения - Игры - Инструменты разработчика -
-
- -
-
- - - - - - \ No newline at end of file diff --git a/ru/index.htm b/ru/index.htm deleted file mode 100644 index 3d22718..0000000 --- a/ru/index.htm +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - KolibriOS - - - - - - - - - - - - - - -
- - - -

- КолибриОС — это крошечная, но невероятно мощная и быстрая операционная - система. Для её работы требуется всего несколько мегабайт места на диске и - 12 МБ оперативной памяти, и при этом она содержит богатый набор приложений, - таких как текстовый редактор, просмотрщик изображений, графический редактор, - веб-браузер и более 30 захватывающих игр. - Имеется полная поддержка FAT12/16/32, только на чтение доступны NTFS, exFAT, - ISO9660 и Ext2/3/4, а также присутсвтвует обширный набор - драйверов - для популярных звуковых, сетевых и графических карт. -

- - - -

- Вы когда-нибудь мечтали о системе, которая загружается менее чем за несколько - секунд с момента включения до появления работающего графического интерфейса? - О приложениях, которые запускаются мгновенно, сразу после нажатия на ярлык, - без надоедливых индикаторов загрузки? - Такая скорость достигается благодаря тому, что основные части КолибриОС - (ядро и драйверы) полностью написаны на ассемблере - FASM! - Попробуйте КолибриОС и сравните её с такими тяжеловесами, как - Windows и Linux. -

- -

- КолибриОС отделилась от MenuetOS в 2004 году и с тех пор развивается - независимым международным сообществом. - Ваши отзывы очень ценится, а ваша - помощь - ценится ещё больше. -

- -

- - Надеемся, вам понравится!
- Команда КолибриОС -
-

- -

- - Telegram - -
- - Discord - -
- - Facebook - -
- - Reddit - -

- -
- - - - - - \ No newline at end of file diff --git a/favicon.ico b/static/favicon.ico similarity index 100% rename from favicon.ico rename to static/favicon.ico diff --git a/i/banners/GSoC_2024.png b/static/img/banners/GSoC_2024.png similarity index 100% rename from i/banners/GSoC_2024.png rename to static/img/banners/GSoC_2024.png diff --git a/i/banners/GSoC_2024.psd b/static/img/banners/GSoC_2024.psd similarity index 100% rename from i/banners/GSoC_2024.psd rename to static/img/banners/GSoC_2024.psd diff --git a/i/banners/banner_ru.psd b/static/img/banners/banner_ru.psd similarity index 100% rename from i/banners/banner_ru.psd rename to static/img/banners/banner_ru.psd diff --git a/i/banners/en.png b/static/img/banners/en.png similarity index 100% rename from i/banners/en.png rename to static/img/banners/en.png diff --git a/i/banners/es.png b/static/img/banners/es.png similarity index 100% rename from i/banners/es.png rename to static/img/banners/es.png diff --git a/i/banners/fr.png b/static/img/banners/fr.png similarity index 100% rename from i/banners/fr.png rename to static/img/banners/fr.png diff --git a/i/banners/it.png b/static/img/banners/it.png similarity index 100% rename from i/banners/it.png rename to static/img/banners/it.png diff --git a/i/banners/ru.png b/static/img/banners/ru.png similarity index 100% rename from i/banners/ru.png rename to static/img/banners/ru.png diff --git a/i/bg.png b/static/img/bg.png similarity index 100% rename from i/bg.png rename to static/img/bg.png diff --git a/i/fl/24/de.png b/static/img/flags/24/de.png similarity index 100% rename from i/fl/24/de.png rename to static/img/flags/24/de.png diff --git a/i/fl/24/en.png b/static/img/flags/24/en.png similarity index 100% rename from i/fl/24/en.png rename to static/img/flags/24/en.png diff --git a/i/fl/24/ru.png b/static/img/flags/24/ru.png similarity index 100% rename from i/fl/24/ru.png rename to static/img/flags/24/ru.png diff --git a/i/fl/24/un.png b/static/img/flags/24/un.png similarity index 100% rename from i/fl/24/un.png rename to static/img/flags/24/un.png diff --git a/i/fl/de.png b/static/img/flags/de.png similarity index 100% rename from i/fl/de.png rename to static/img/flags/de.png diff --git a/i/fl/en.png b/static/img/flags/en.png similarity index 100% rename from i/fl/en.png rename to static/img/flags/en.png diff --git a/i/fl/es.png b/static/img/flags/es.png similarity index 100% rename from i/fl/es.png rename to static/img/flags/es.png diff --git a/i/fl/fr.png b/static/img/flags/fr.png similarity index 100% rename from i/fl/fr.png rename to static/img/flags/fr.png diff --git a/i/fl/it.png b/static/img/flags/it.png similarity index 100% rename from i/fl/it.png rename to static/img/flags/it.png diff --git a/i/fl/nl.png b/static/img/flags/nl.png similarity index 100% rename from i/fl/nl.png rename to static/img/flags/nl.png diff --git a/i/fl/ru.png b/static/img/flags/ru.png similarity index 100% rename from i/fl/ru.png rename to static/img/flags/ru.png diff --git a/i/banners/gitea.png b/static/img/icons/gitea.png similarity index 100% rename from i/banners/gitea.png rename to static/img/icons/gitea.png diff --git a/i/i_cd.png b/static/img/icons/i_cd.png similarity index 100% rename from i/i_cd.png rename to static/img/icons/i_cd.png diff --git a/i/i_discord.png b/static/img/icons/i_discord.png similarity index 100% rename from i/i_discord.png rename to static/img/icons/i_discord.png diff --git a/i/i_facebook.png b/static/img/icons/i_facebook.png similarity index 100% rename from i/i_facebook.png rename to static/img/icons/i_facebook.png diff --git a/i/i_flash.png b/static/img/icons/i_flash.png similarity index 100% rename from i/i_flash.png rename to static/img/icons/i_flash.png diff --git a/i/i_floppy.png b/static/img/icons/i_floppy.png similarity index 100% rename from i/i_floppy.png rename to static/img/icons/i_floppy.png diff --git a/i/i_reddit.png b/static/img/icons/i_reddit.png similarity index 100% rename from i/i_reddit.png rename to static/img/icons/i_reddit.png diff --git a/i/i_telegram.png b/static/img/icons/i_telegram.png similarity index 100% rename from i/i_telegram.png rename to static/img/icons/i_telegram.png diff --git a/i/i_uefi.png b/static/img/icons/i_uefi.png similarity index 100% rename from i/i_uefi.png rename to static/img/icons/i_uefi.png diff --git a/i/i_uni.png b/static/img/icons/i_universal.png similarity index 100% rename from i/i_uni.png rename to static/img/icons/i_universal.png diff --git a/i/logo.png b/static/img/logo.png similarity index 100% rename from i/logo.png rename to static/img/logo.png diff --git a/i/outdated/GSoC_2014.png b/static/img/outdated/GSoC_2014.png similarity index 100% rename from i/outdated/GSoC_2014.png rename to static/img/outdated/GSoC_2014.png diff --git a/i/outdated/banner_kickstarter_en.png b/static/img/outdated/banner_kickstarter_en.png similarity index 100% rename from i/outdated/banner_kickstarter_en.png rename to static/img/outdated/banner_kickstarter_en.png diff --git a/i/outdated/banner_ru.png b/static/img/outdated/banner_ru.png old mode 100755 new mode 100644 similarity index 100% rename from i/outdated/banner_ru.png rename to static/img/outdated/banner_ru.png diff --git a/i/outdated/icons.png b/static/img/outdated/icons.png old mode 100755 new mode 100644 similarity index 100% rename from i/outdated/icons.png rename to static/img/outdated/icons.png diff --git a/i/outdated/reactos_kickstarter.jpg b/static/img/outdated/reactos_kickstarter.jpg similarity index 100% rename from i/outdated/reactos_kickstarter.jpg rename to static/img/outdated/reactos_kickstarter.jpg diff --git a/i/outdated/ru.png b/static/img/outdated/ru.png similarity index 100% rename from i/outdated/ru.png rename to static/img/outdated/ru.png diff --git a/i/outdated/scroll-left.gif b/static/img/outdated/scroll-left.gif similarity index 100% rename from i/outdated/scroll-left.gif rename to static/img/outdated/scroll-left.gif diff --git a/i/outdated/scroll-right.gif b/static/img/outdated/scroll-right.gif similarity index 100% rename from i/outdated/scroll-right.gif rename to static/img/outdated/scroll-right.gif diff --git a/i/slaid/slaid1.png b/static/img/screenshots/1.png old mode 100755 new mode 100644 similarity index 100% rename from i/slaid/slaid1.png rename to static/img/screenshots/1.png diff --git a/i/slaid/slaid2.png b/static/img/screenshots/2.png old mode 100755 new mode 100644 similarity index 100% rename from i/slaid/slaid2.png rename to static/img/screenshots/2.png diff --git a/i/slaid/slaid3.png b/static/img/screenshots/3.png old mode 100755 new mode 100644 similarity index 100% rename from i/slaid/slaid3.png rename to static/img/screenshots/3.png diff --git a/i/slaid/slaid4.png b/static/img/screenshots/4.png old mode 100755 new mode 100644 similarity index 100% rename from i/slaid/slaid4.png rename to static/img/screenshots/4.png diff --git a/i/slaid/slaid5.png b/static/img/screenshots/5.png old mode 100755 new mode 100644 similarity index 100% rename from i/slaid/slaid5.png rename to static/img/screenshots/5.png diff --git a/i/slaid/slaid6.png b/static/img/screenshots/6.png old mode 100755 new mode 100644 similarity index 100% rename from i/slaid/slaid6.png rename to static/img/screenshots/6.png diff --git a/i/telegram.svg b/static/img/telegram.svg similarity index 100% rename from i/telegram.svg rename to static/img/telegram.svg diff --git a/script.js b/static/script.js similarity index 100% rename from script.js rename to static/script.js diff --git a/style.css b/static/style.css similarity index 99% rename from style.css rename to static/style.css index 6fce1e4..c2478c6 100644 --- a/style.css +++ b/static/style.css @@ -1,7 +1,7 @@ body { margin: 0; font-family: "Source Sans Pro", "Open Sans", sans-serif; - background: #e1e2e2 url(i/bg.png) repeat fixed 0 0; + background: #e1e2e2 url(img/bg.png) repeat fixed 0 0; } #menu { diff --git a/templates/de.html b/templates/de.html new file mode 100644 index 0000000..5668fb5 --- /dev/null +++ b/templates/de.html @@ -0,0 +1,48 @@ +{% extends 'tmpl/index.htm' %} + +{% block content %} + {% include 'tmpl/_git.htm' %} + +

+ KolibriOS ist ein winziges, aber unglaublich leistungsstarkes und + schnelles Betriebssystem. Es benötigt nur wenige Megabyte Festplattenspeicher + und 12 MB RAM zum Laufen, bietet jedoch eine umfangreiche Sammlung von + Anwendungen, darunter Textverarbeitung, Bildbetrachter,grafischer Editor, + Webbrowser und über 30 spannende Spiele. + Es unterstützt zudem vollständig FAT12/16/32 und implementiert + schreibgeschützte Unterstützung für NTFS, exFAT, ISO9660 sowie Ext2/3/4, + und verfügt über eine umfangreiche Sammlung von + Treibern + für beliebte Sound-, Netzwerk- und Grafikkarten. +

+ + + +

+ Haben Sie schon einmal von einem System geträumt, das in weniger als wenigen + Sekunden vom Einschalten bis zu einer funktionierenden GUI bootet? + Anwendungen, die sofort starten, direkt nach dem Klicken auf ein Symbol, + ohne lästige Sanduhrzeiger? Diese Geschwindigkeit wird erreicht, da die + Kernkomponenten von KolibriOS (Kernel und Treiber) + vollständig in der Assemblersprache + FASM geschrieben + sind! + Probieren Sie KolibriOS aus und vergleichen Sie es mit Schwergewichten + wie Windows und Linux. +

+ +

+ KolibriOS hat sich 2004 von MenuetOS abgespalten und wird seitdem + unabhängig entwickelt. + Ihr Feedback wird sehr geschätzt, + und Ihre Hilfe + ist noch mehr willkommen. +

+ +

+ + Wir hoffen, es gefällt Ihnen!
+ Ihr KolibriOS-Team +
+

+{% endblock %} diff --git a/templates/en.html b/templates/en.html new file mode 100644 index 0000000..a4ab60d --- /dev/null +++ b/templates/en.html @@ -0,0 +1,45 @@ +{% extends 'tmpl/index.htm' %} + +{% block content %} + {% include 'tmpl/_git.htm' %} + +

+ KolibriOS is a tiny yet incredibly powerful and fast operating system. + It requires only a few megabyte disk space and 12 MB of RAM to run, + but features a rich set of applications that include word processor, image + viewer, graphical editor, web browser and over 30 exciting games. + It also has full FAT12/16/32 support is implemented, as well as read-only + support for NTFS, exFAT, ISO9660 and Ext2/3/4 and boasts an extensive set of + drivers + for popular sound, network and graphics cards. +

+ + + +

+ Have you ever dreamed of a system that boots in less than few seconds from + power-on to working GUI? About applications that start instantly, immediately + after clicking an icon, without annoying hourglass pointers? + This speed is achieved since the core parts of KolibriOS + (kernel and drivers) are written entirely in + FASM + assembly language! + Try KolibriOS and compare it with such heavyweights as Windows and Linux. +

+ +

+ KolibriOS has forked off from MenuetOS in 2004, and is run under + independent development since then. + Your feedback is very much + appreciated, and your + help + is even more welcome. +

+ +

+ + We hope you will enjoy it!
+ KolibriOS Team +
+

+{% endblock %} diff --git a/templates/ru.html b/templates/ru.html new file mode 100644 index 0000000..d1966cc --- /dev/null +++ b/templates/ru.html @@ -0,0 +1,46 @@ +{% extends 'tmpl/index.htm' %} + +{% block content %} + {% include 'tmpl/_git.htm' %} + +

+ КолибриОС — это крошечная, но невероятно мощная и быстрая операционная + система. Для её работы требуется всего несколько мегабайт места на диске и + 12 МБ оперативной памяти, и при этом она содержит богатый набор приложений, + таких как текстовый редактор, просмотрщик изображений, графический редактор, + веб-браузер и более 30 захватывающих игр. + Имеется полная поддержка FAT12/16/32, только на чтение доступны NTFS, exFAT, + ISO9660 и Ext2/3/4, а также присутсвтвует обширный набор + драйверов + для популярных звуковых, сетевых и графических карт. +

+ + + +

+ Вы когда-нибудь мечтали о системе, которая загружается менее чем за несколько + секунд с момента включения до появления работающего графического интерфейса? + О приложениях, которые запускаются мгновенно, сразу после нажатия на ярлык, + без надоедливых индикаторов загрузки? + Такая скорость достигается благодаря тому, что основные части КолибриОС + (ядро и драйверы) полностью написаны на ассемблере + FASM! + Попробуйте КолибриОС и сравните её с такими тяжеловесами, как + Windows и Linux. +

+ +

+ КолибриОС отделилась от MenuetOS в 2004 году и с тех пор развивается + независимым международным сообществом. + Ваши отзывы очень ценится, а ваша + помощь + ценится ещё больше. +

+ +

+ + Надеемся, вам понравится!
+ Команда КолибриОС +
+

+ {% endblock %} diff --git a/templates/tmpl/_footer.htm b/templates/tmpl/_footer.htm new file mode 100644 index 0000000..2cdf691 --- /dev/null +++ b/templates/tmpl/_footer.htm @@ -0,0 +1,7 @@ + diff --git a/templates/tmpl/_git.htm b/templates/tmpl/_git.htm new file mode 100644 index 0000000..4225727 --- /dev/null +++ b/templates/tmpl/_git.htm @@ -0,0 +1,20 @@ + + diff --git a/templates/tmpl/_header.htm b/templates/tmpl/_header.htm new file mode 100644 index 0000000..5e48673 --- /dev/null +++ b/templates/tmpl/_header.htm @@ -0,0 +1,11 @@ + + + {{ locale['%s.title' % lang][request.url_rule.endpoint] }} + + + + + + + diff --git a/templates/tmpl/_lang-dropdown.htm b/templates/tmpl/_lang-dropdown.htm new file mode 100644 index 0000000..1f01ef0 --- /dev/null +++ b/templates/tmpl/_lang-dropdown.htm @@ -0,0 +1,24 @@ +
+
+ {%- for l, lang in ( + ("en", "English"), + ("es", "Español"), + ("de", "Deutsch"), + ("fr", "Français"), + ("nl", "Nederlands"), + ("ru", "Русский") + ) %} + {%- if request.view_args['lang'] == l %} + + + + {{ l }} + {{ lang }} + + + {%- else %} + de{{ lang }} + {%- endif %} + {%- endfor %} +
+
diff --git a/templates/tmpl/_menu.htm b/templates/tmpl/_menu.htm new file mode 100644 index 0000000..bdd6e75 --- /dev/null +++ b/templates/tmpl/_menu.htm @@ -0,0 +1,12 @@ + diff --git a/templates/tmpl/_socials.htm b/templates/tmpl/_socials.htm new file mode 100644 index 0000000..b42eb07 --- /dev/null +++ b/templates/tmpl/_socials.htm @@ -0,0 +1,17 @@ +

+ + Telegram + +
+ + Discord + +
+ + Facebook + +
+ + Reddit + +

diff --git a/templates/tmpl/download.htm b/templates/tmpl/download.htm new file mode 100644 index 0000000..bf63ad1 --- /dev/null +++ b/templates/tmpl/download.htm @@ -0,0 +1,87 @@ + + + +{% include 'tmpl/_header.htm' %} + + + + {% include 'tmpl/_lang-dropdown.htm' %} + + {% include 'tmpl/_menu.htm' %} + +
+

{{ locale[lang]['downloading'] }}

+ + {% for ext, alt in ( + ('img', 'floppy'), + ('iso', 'cd'), + ('distr', 'universal'), + ('raw', 'uefi') + ) %} + + + + + + + {% endfor %} + + + + + + + +
{{ alt }}{{ locale[lang]['%s-descr' % ext] }}$autobuild_date_ru + {% for l, lang in ( + ('en_US', 'English'), + ('ru_RU', 'Русский'), + ('es_ES', 'Español') + ) %} + {{ lang }} + {% endfor %} +
+
+
+
+ {{ locale[lang]['download_choice'] }} +
+
+ {{ locale[lang]['prev_rev'] }} + + {{ locale[lang]['all_rev'] }} +
+ +

+ {{ locale[lang]['download_description[0]'] }} + 7zip. + {{ locale[lang]['kolibrios'] }} {{ locale[lang]['download_description[1]'] }} + GPLv2, + {{ locale[lang]['download_description[2]'] }} + {{ locale[lang]['download_description[3]'] }}. +

+ + +

{{ locale[lang]['screenshots'] }}

+ +
+
+ {% for i in range(1, 7) %} + {{ locale['%s.screenshots' % lang]['%d' % i] }} + {% endfor %} +
+
+ +
+
+ + {% include 'tmpl/_footer.htm' %} + + + \ No newline at end of file diff --git a/templates/tmpl/index.htm b/templates/tmpl/index.htm new file mode 100644 index 0000000..5f7cefd --- /dev/null +++ b/templates/tmpl/index.htm @@ -0,0 +1,21 @@ + + + +{% include 'tmpl/_header.htm' %} + + + + {% include 'tmpl/_lang-dropdown.htm' %} + + {% include 'tmpl/_menu.htm' %} + +
+ {% block content %}{% endblock %} + + {% include 'tmpl/_socials.htm' %} +
+ + {% include 'tmpl/_footer.htm' %} + + + \ No newline at end of file