diff --git a/.gitignore b/.gitignore index c0fadcd..35f4dc3 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ htmlcov/ .venv/ venv/ *.bak + +# Sauvegardes locales +*.bak* diff --git a/app/static/fonts.css b/app/static/fonts.css new file mode 100644 index 0000000..d24e394 --- /dev/null +++ b/app/static/fonts.css @@ -0,0 +1,6 @@ +/* Polices locales (Atkinson Hyperlegible, licence OFL) : aucune requête externe. */ +@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/next-400.woff2") format("woff2"); } +@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/next-500.woff2") format("woff2"); } +@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/next-600.woff2") format("woff2"); } +@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/mono-500.woff2") format("woff2"); } +@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/mono-600.woff2") format("woff2"); } diff --git a/app/static/fonts/LICENSE-atkinson.txt b/app/static/fonts/LICENSE-atkinson.txt new file mode 100644 index 0000000..9459440 --- /dev/null +++ b/app/static/fonts/LICENSE-atkinson.txt @@ -0,0 +1,93 @@ +Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors (https://github.com/googlefonts/atkinson-hyperlegible-next) AtkinsonHyperlegibleNext-Italic[wght].ttf: Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors (https://github.com/googlefonts/atkinson-hyperlegible-next) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/app/static/fonts/mono-500.woff2 b/app/static/fonts/mono-500.woff2 new file mode 100644 index 0000000..45b552e Binary files /dev/null and b/app/static/fonts/mono-500.woff2 differ diff --git a/app/static/fonts/mono-600.woff2 b/app/static/fonts/mono-600.woff2 new file mode 100644 index 0000000..ed81674 Binary files /dev/null and b/app/static/fonts/mono-600.woff2 differ diff --git a/app/static/fonts/next-400.woff2 b/app/static/fonts/next-400.woff2 new file mode 100644 index 0000000..fee2609 Binary files /dev/null and b/app/static/fonts/next-400.woff2 differ diff --git a/app/static/fonts/next-500.woff2 b/app/static/fonts/next-500.woff2 new file mode 100644 index 0000000..9a69af9 Binary files /dev/null and b/app/static/fonts/next-500.woff2 differ diff --git a/app/static/fonts/next-600.woff2 b/app/static/fonts/next-600.woff2 new file mode 100644 index 0000000..d5aa38e Binary files /dev/null and b/app/static/fonts/next-600.woff2 differ diff --git a/app/static/index.html b/app/static/index.html new file mode 100644 index 0000000..0f170f2 --- /dev/null +++ b/app/static/index.html @@ -0,0 +1,25 @@ + + + + + + +Courrier + + + + + + + + +
+ +
+ +
+
+
+ + + diff --git a/app/static/nyora.css b/app/static/nyora.css new file mode 100644 index 0000000..97ea3d3 --- /dev/null +++ b/app/static/nyora.css @@ -0,0 +1,34 @@ +/* Nyora — jetons. Thème clair uniquement. */ +:root { + --ny-fond: #EDF1F4; --ny-carte: #FFFFFF; --ny-carte-2: #F6F8FA; --ny-trait: #D5DDE4; --ny-trait-controle: #7D8A96; + --ny-encre: #15202B; --ny-encre-2: #3B4856; --ny-encre-3: #56636F; --ny-encre-inverse: #FFFFFF; + --ny-accent: #1D4F7C; --ny-accent-survol: #163F64; --ny-accent-presse: #102F4B; --ny-accent-teinte: #E4EDF6; --ny-accent-teinte-2: #CFDEED; + --ny-erreur: #9E2F1C; --ny-erreur-fond: #FBEDEA; --ny-erreur-trait: #E7B9AE; --ny-erreur-survol: #84271A; --ny-erreur-presse: #6B1F15; + --ny-attention: #7A5208; --ny-attention-fond: #FBF3E2; --ny-attention-trait: #E8CF96; + --ny-info: var(--ny-accent); --ny-info-fond: var(--ny-accent-teinte); + --ny-cat-1: #6E3A82; --ny-cat-1-fond: #F4EDF7; --ny-cat-1-trait: #D9C3E2; + --ny-cat-2: #1E7480; --ny-cat-2-fond: #E6F3F4; --ny-cat-2-trait: #B5DADF; + --ny-cat-3: #4A8FCB; --ny-cat-3-fond: #EAF2FA; --ny-cat-3-trait: #BDD6EE; + --ny-cat-4: #C9962E; --ny-cat-4-fond: #FBF3E1; --ny-cat-4-trait: #EBD39E; + --ny-cat-5: #B9C2CB; --ny-cat-5-fond: #F0F2F4; --ny-cat-5-trait: #D5DBE1; + --ny-cat-6: #33408F; --ny-cat-6-fond: #ECEEF8; --ny-cat-6-trait: #C3C8E6; + --ny-cat-7: #8C5A3A; --ny-cat-7-fond: #F6EFEA; --ny-cat-7-trait: #E0CBBC; + --ny-cat-8: #9A8BC4; --ny-cat-8-fond: #F2F0F9; --ny-cat-8-trait: #D6D0EA; + --ny-cat-vide: #56636F; + --ny-police: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif; + --ny-police-chiffres: "Atkinson Hyperlegible Mono", ui-monospace, monospace; + --ny-t1: 600 28px/34px var(--ny-police); --ny-t2: 600 20px/26px var(--ny-police); + --ny-t3: 400 16px/24px var(--ny-police); --ny-t4: 500 13px/18px var(--ny-police); + --ny-e1: 4px; --ny-e2: 8px; --ny-e3: 12px; --ny-e4: 16px; --ny-e5: 20px; --ny-e6: 24px; --ny-e8: 32px; --ny-e10: 40px; --ny-e12: 48px; + --ny-r-s: 6px; --ny-r-m: 10px; --ny-r-l: 14px; --ny-r-pastille: 999px; + --ny-ombre-1: 0 1px 2px rgba(21, 32, 43, 0.06); --ny-ombre-2: 0 4px 12px rgba(21, 32, 43, 0.08); + --ny-cible: 44px; --ny-duree: 180ms; --ny-courbe: cubic-bezier(0.2, 0.7, 0.2, 1); +} +html { color-scheme: light; } +body { margin: 0; background: var(--ny-fond); color: var(--ny-encre); font: var(--ny-t3); -webkit-font-smoothing: antialiased; } +:focus-visible { outline: 3px solid var(--ny-accent); outline-offset: 2px; } +::selection { background: var(--ny-accent-teinte-2); color: var(--ny-encre); } +a { color: var(--ny-accent); text-underline-offset: 3px; } +a:hover { color: var(--ny-accent-survol); } +@keyframes ny-apparition { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } } +@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }