From 5a4575abf5dd4400933d1e7654c764874eef900b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Tue, 5 Jul 2022 00:05:12 +0200 Subject: [PATCH] Final home page done --- divent/static/css/global.css | 42 +++++++++++++++++++++++++--------- divent/templates/index.html.j2 | 30 ++++++++++++++++++++++++ divent/translations/fr.json | 7 +++++- poetry.lock | 32 +++++++++++++------------- pyproject.toml | 1 + 5 files changed, 84 insertions(+), 28 deletions(-) diff --git a/divent/static/css/global.css b/divent/static/css/global.css index 56e9b8e..ada5494 100644 --- a/divent/static/css/global.css +++ b/divent/static/css/global.css @@ -9,27 +9,17 @@ } body { - background-color: #202225; + background-color: #2f3136; margin: 0; font-family: Whitney, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #b9bbbe; } -#logo { - position: relative; - left: 24px; - top: 24px; -} - #avatars { text-align: center; } #content { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); min-width: 280px; max-width: 400px; min-height: 400px; @@ -52,6 +42,21 @@ body { font-size: 14px; } +#details { + font-size: 12px; + list-style-type: none; + padding: 0; +} + +#details a { + color: #a3a6aa; + text-decoration: none; +} + +#details i { + margin: 8px; +} + .fa-custom-circle { border-radius: 20px; width: 24px; @@ -110,3 +115,18 @@ hr { text-decoration: none; display: inline-block; } + +@media only screen and (min-width: 600px) { + #content { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } + + #logo { + position: relative; + left: 24px; + top: 24px; + } +} diff --git a/divent/templates/index.html.j2 b/divent/templates/index.html.j2 index c9adcb1..6277fb6 100644 --- a/divent/templates/index.html.j2 +++ b/divent/templates/index.html.j2 @@ -22,6 +22,36 @@
+
{{ _("Let's go!") }} diff --git a/divent/translations/fr.json b/divent/translations/fr.json index bd04333..edaca29 100644 --- a/divent/translations/fr.json +++ b/divent/translations/fr.json @@ -5,5 +5,10 @@ "This will allow you to:": "Ceci vous permettra de :", "Subscribe to a calendar on Google, Yahoo, Outlook, Apple or any ICS complient software": "S'abonner à un calendrier sur Google, Yahoo, Outlook, Apple ou tout autre logiciel compatible", "Throwing you to a new isekai world": "Vous envoyer dans un monde fantaisiste armée d'une poile à frire", - "Let's go!": "C'est parti !" + "Let's go!": "C'est parti !", + "Add author on Discord": "Ajoute moi sur Discord :)", + "Read the licence": "Voir la licence", + "View the source code" : "Regarder le code source", + "Host it yourself": "Héberger ça vous-même", + "Next castastrophic life failure in about %days% days": "Prochaine vie de merde dans environ %days% jours" } diff --git a/poetry.lock b/poetry.lock index 634b782..a5116ae 100644 --- a/poetry.lock +++ b/poetry.lock @@ -39,14 +39,14 @@ frozenlist = ">=1.1.0" [[package]] name = "arrow" -version = "0.14.7" +version = "1.2.2" description = "Better dates & times for Python" category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = ">=3.6" [package.dependencies] -python-dateutil = "*" +python-dateutil = ">=2.7.0" [[package]] name = "async-timeout" @@ -110,11 +110,11 @@ python-versions = ">=3.6" [[package]] name = "charset-normalizer" -version = "2.0.12" +version = "2.1.0" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." category = "main" optional = false -python-versions = ">=3.5.0" +python-versions = ">=3.6.0" [package.extras] unicode_backport = ["unicodedata2"] @@ -325,7 +325,7 @@ python-versions = ">=3.5" [[package]] name = "importlib-metadata" -version = "4.11.4" +version = "4.12.0" description = "Read metadata from Python packages" category = "dev" optional = false @@ -337,7 +337,7 @@ zipp = ">=0.5" [package.extras] docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"] perf = ["ipython"] -testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "importlib-resources (>=1.3)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "importlib-resources (>=1.3)"] [[package]] name = "isort" @@ -642,7 +642,7 @@ telegram = ["requests"] [[package]] name = "typing-extensions" -version = "4.2.0" +version = "4.3.0" description = "Backported and Experimental Type Hints for Python 3.7+" category = "dev" optional = false @@ -796,8 +796,8 @@ aiosignal = [ {file = "aiosignal-1.2.0.tar.gz", hash = "sha256:78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"}, ] arrow = [ - {file = "arrow-0.14.7-py2.py3-none-any.whl", hash = "sha256:4bfacea734ead51495dc47df00421ecfd4ca1f2c0fbe58b9a26eaeddedc31caf"}, - {file = "arrow-0.14.7.tar.gz", hash = "sha256:67f8be7c0cf420424bc62d8d7dc40b44e4bb2f7b515f9cc2954fb36e35797656"}, + {file = "arrow-1.2.2-py3-none-any.whl", hash = "sha256:d622c46ca681b5b3e3574fcb60a04e5cc81b9625112d5fb2b44220c36c892177"}, + {file = "arrow-1.2.2.tar.gz", hash = "sha256:05caf1fd3d9a11a1135b2b6f09887421153b94558e5ef4d090b567b47173ac2b"}, ] async-timeout = [ {file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"}, @@ -840,8 +840,8 @@ certifi = [ {file = "certifi-2022.6.15.tar.gz", hash = "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d"}, ] charset-normalizer = [ - {file = "charset-normalizer-2.0.12.tar.gz", hash = "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597"}, - {file = "charset_normalizer-2.0.12-py3-none-any.whl", hash = "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df"}, + {file = "charset-normalizer-2.1.0.tar.gz", hash = "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413"}, + {file = "charset_normalizer-2.1.0-py3-none-any.whl", hash = "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5"}, ] click = [ {file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"}, @@ -970,8 +970,8 @@ idna = [ {file = "idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"}, ] importlib-metadata = [ - {file = "importlib_metadata-4.11.4-py3-none-any.whl", hash = "sha256:c58c8eb8a762858f49e18436ff552e83914778e50e9d2f1660535ffb364552ec"}, - {file = "importlib_metadata-4.11.4.tar.gz", hash = "sha256:5d26852efe48c0a32b0509ffbc583fda1a2266545a78d104a6f4aff3db17d700"}, + {file = "importlib_metadata-4.12.0-py3-none-any.whl", hash = "sha256:7401a975809ea1fdc658c3aa4f78cc2195a0e019c5cbc4c06122884e9ae80c23"}, + {file = "importlib_metadata-4.12.0.tar.gz", hash = "sha256:637245b8bab2b6502fcbc752cc4b7a6f6243bb02b31c5c26156ad103d3d45670"}, ] isort = [ {file = "isort-5.10.1-py3-none-any.whl", hash = "sha256:6f62d78e2f89b4500b080fe3a81690850cd254227f27f75c3a0c491a1f351ba7"}, @@ -1301,8 +1301,8 @@ tqdm = [ {file = "tqdm-4.64.0.tar.gz", hash = "sha256:40be55d30e200777a307a7585aee69e4eabb46b4ec6a4b4a5f2d9f11e7d5408d"}, ] typing-extensions = [ - {file = "typing_extensions-4.2.0-py3-none-any.whl", hash = "sha256:6657594ee297170d19f67d55c05852a874e7eb634f4f753dbd667855e07c1708"}, - {file = "typing_extensions-4.2.0.tar.gz", hash = "sha256:f1c24655a0da0d1b67f07e17a5e6b2a105894e6824b92096378bb3668ef02376"}, + {file = "typing_extensions-4.3.0-py3-none-any.whl", hash = "sha256:25642c956049920a5aa49edcdd6ab1e06d7e5d467fc00e0506c44ac86fbfca02"}, + {file = "typing_extensions-4.3.0.tar.gz", hash = "sha256:e6d2677a32f47fc7eb2795db1dd15c1f34eff616bcaf2cfb5e997f854fa1c4a6"}, ] urllib3 = [ {file = "urllib3-1.26.9-py2.py3-none-any.whl", hash = "sha256:44ece4d53fb1706f667c9bd1c648f5469a2ec925fcf3a776667042d645472c14"}, diff --git a/pyproject.toml b/pyproject.toml index 542ff53..103043d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,3 +33,4 @@ profile = "black" [tool.djlint] extension = "j2" profile = "jinja" +ignore="H022"