diff --git a/generate_errors.py b/generate_errors.py index a6101e8..1036ce4 100644 --- a/generate_errors.py +++ b/generate_errors.py @@ -3,6 +3,8 @@ from pathlib import Path from urllib import request import re +urlroot = 'https://www.w3.org/Protocols/rfc2616' + src = Path('src') root = src.joinpath('error') with root.joinpath('root.html').open('r') as root_file: @@ -17,13 +19,13 @@ for x in error.rglob('*'): if x.is_file() or x.is_symlink(): x.unlink() req = request.Request( - 'https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html', + f'{urlroot}/rfc2616-sec10.html', method='GET') with request.urlopen(req) as res: raw = res.read().decode('utf-8') -codes = (re.finditer(r"(?s)

" +codes = (re.finditer(r"(?s)

" r'10\.[0-9]\.[0-9]+' r'\s*([0-9]+)\s([a-zA-Z\s]+)

\s*

(.*?)

', raw)) @@ -31,11 +33,15 @@ nginx_head = '' nginx_body = '' for item in codes: - code, title, desc = item.groups() + sec, code, title, desc = item.groups() if int(code) < 400 or int(code) >= 600: continue + + desc = re.sub(r"()", + lambda x:f'{x[1]}{urlroot}/{x[2]}{x[3]}', desc) + with error.joinpath(f'{code}.html').open('w') as html: content = root_html.format( - code=code, title=title, desc=desc, style=root_css) + code=code, title=title, desc=desc, style=root_css, sec=sec) content = re.sub(r'\s+', ' ', content) content = re.sub(r'>\s<', '><', content) html.write(content) diff --git a/src/error/root.css b/src/error/root.css index 779c4aa..1a4dfec 100644 --- a/src/error/root.css +++ b/src/error/root.css @@ -6,6 +6,7 @@ --gray-30: #cac5c4; --gray-10: #f7f3f2; --red-40: #ff8389; + --blue-40: #78a9ff; } body { @@ -53,3 +54,19 @@ cite { line-height: 1.125rem; letter-spacing: .16px; } + +a { + text-decoration: none; + color: var(--blue-40); +} +a:hover { + text-decoration: underline; + filter: brightness(1.2); +} +a:active { + filter: brightness(1.4); +} +a:focus { + color: var(--gray-100); + background: white; +} diff --git a/src/error/root.html b/src/error/root.html index a1ddf9b..f012ba6 100644 --- a/src/error/root.html +++ b/src/error/root.html @@ -25,7 +25,16 @@
{desc}
-
HTTP/1.1 Status Code Definitions
+
+ HTTP/1.1 Status Code Definitions +
+ diff --git a/src/static/css/index.css b/src/static/css/index.css index add5093..14b2603 100644 --- a/src/static/css/index.css +++ b/src/static/css/index.css @@ -7,7 +7,7 @@ } .biglinks > a, -.biglinks > img { +.biglinks > picture { max-width: calc(100% - 24px); } @@ -22,8 +22,13 @@ display: block; } -.biglinks > img { +.biglinks > picture { + display: inline-block; height: 156px; margin: 12px; +} +.biglinks > picture > img { + height: 100%; + width: 100%; object-fit: cover; } diff --git a/src/static/pic/pic.jxl b/src/static/pic/pic.jxl new file mode 100644 index 0000000..a8f4d3b Binary files /dev/null and b/src/static/pic/pic.jxl differ diff --git a/src/static/pic/pic.webp b/src/static/pic/pic.webp new file mode 100644 index 0000000..4fe0273 Binary files /dev/null and b/src/static/pic/pic.webp differ diff --git a/src/static/pic/pic1.webp b/src/static/pic/pic1.webp deleted file mode 100644 index dd705f7..0000000 Binary files a/src/static/pic/pic1.webp and /dev/null differ diff --git a/src/static/pic/picx2.jxl b/src/static/pic/picx2.jxl new file mode 100644 index 0000000..a842c82 Binary files /dev/null and b/src/static/pic/picx2.jxl differ diff --git a/src/static/pic/picx2.webp b/src/static/pic/picx2.webp new file mode 100644 index 0000000..b2bc65d Binary files /dev/null and b/src/static/pic/picx2.webp differ diff --git a/src/static/pic/picx4.jxl b/src/static/pic/picx4.jxl new file mode 100644 index 0000000..ce6c025 Binary files /dev/null and b/src/static/pic/picx4.jxl differ diff --git a/src/static/pic/picx4.webp b/src/static/pic/picx4.webp new file mode 100644 index 0000000..a6b4823 Binary files /dev/null and b/src/static/pic/picx4.webp differ diff --git a/src/views/template/cv.html b/src/views/template/cv.html index 99c3f67..2d0ec93 100644 --- a/src/views/template/cv.html +++ b/src/views/template/cv.html @@ -2,7 +2,10 @@ CV - Edgar P. Burkhart - + {meta} @@ -29,14 +32,14 @@
-

Stages

+

Stages

  • Optimization of simplified calculation methods for early age cracking assessement - Norwegian University of Science and Technology, ENS Paris-Saclay - 2020
-

Formation

+

Formation

  • Université de Pau et des Pays de l'Adour - Génie Côtier @@ -67,9 +70,9 @@ - Spécialité Informatique et Sciences du Numérique - 2016
-

Compétences

+

Compétences

-

Langues

+

Langues

  • Français (Natif)
  • Anglais @@ -77,7 +80,7 @@
  • Allemand (Niveau B1, Deutsches Sprachdiplom 1)
  • Espagnol (Lu)
-

Informatique

+

Informatique

  • Développement web (HTML, CSS, JS, Django, Symfony, node.js, React)
  • @@ -86,13 +89,13 @@
  • Réseau (routage)
  • Mise en page (LaTeX, Microsoft Office, LibreOffice)
-

Autres

+

Autres

  • Travail d'équipe
  • Électronique (Raspberry Pi, Arduino, brasure, conception de PCB)
-

Loisirs

+

Loisirs

  • VTT, Randonnée
  • Ancien membre du CR@NS (association fournissant internet au campus diff --git a/src/views/template/index.html b/src/views/template/index.html index b9c312a..6cfe94e 100644 --- a/src/views/template/index.html +++ b/src/views/template/index.html @@ -27,7 +27,16 @@ Komoot - Paysage + + + + Ce que j'aime