diff --git a/.gitignore b/.gitignore index ea8c4bf..f6c0f58 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +/assets/games diff --git a/assets/art/2020.11.07_polo_bateau.jpg b/assets/art/2020.11.07_polo_bateau.jpg new file mode 100755 index 0000000..c5901b0 Binary files /dev/null and b/assets/art/2020.11.07_polo_bateau.jpg differ diff --git a/assets/art/2020.11.22_sweat_smaug.jpg b/assets/art/2020.11.22_sweat_smaug.jpg new file mode 100755 index 0000000..ff76dc3 Binary files /dev/null and b/assets/art/2020.11.22_sweat_smaug.jpg differ diff --git a/assets/art/2020.11.29_pull_tigre.jpg b/assets/art/2020.11.29_pull_tigre.jpg new file mode 100755 index 0000000..64ae69c Binary files /dev/null and b/assets/art/2020.11.29_pull_tigre.jpg differ diff --git a/assets/art/2020.12.04_tableau_fermat.png b/assets/art/2020.12.04_tableau_fermat.png new file mode 100755 index 0000000..24ad373 Binary files /dev/null and b/assets/art/2020.12.04_tableau_fermat.png differ diff --git a/assets/art/2021.01.22_montage_astronaute.png b/assets/art/2021.01.22_montage_astronaute.png new file mode 100755 index 0000000..9f8f75b Binary files /dev/null and b/assets/art/2021.01.22_montage_astronaute.png differ diff --git a/assets/art/2021.02.03_gourde_astronaute.jpg b/assets/art/2021.02.03_gourde_astronaute.jpg new file mode 100755 index 0000000..ec0962a Binary files /dev/null and b/assets/art/2021.02.03_gourde_astronaute.jpg differ diff --git a/assets/art/2021.02.03_gourde_chat.jpg b/assets/art/2021.02.03_gourde_chat.jpg new file mode 100755 index 0000000..382e8db Binary files /dev/null and b/assets/art/2021.02.03_gourde_chat.jpg differ diff --git a/assets/art/2021.02.16_black_pearl_papier.jpg b/assets/art/2021.02.16_black_pearl_papier.jpg new file mode 100755 index 0000000..d4f7a5f Binary files /dev/null and b/assets/art/2021.02.16_black_pearl_papier.jpg differ diff --git a/assets/art/2021.02.24_peinture_mp2_petit.jpg b/assets/art/2021.02.24_peinture_mp2_petit.jpg new file mode 100755 index 0000000..385c646 Binary files /dev/null and b/assets/art/2021.02.24_peinture_mp2_petit.jpg differ diff --git a/assets/art/2021.02.26_black_pearl_papier_2.jpg b/assets/art/2021.02.26_black_pearl_papier_2.jpg new file mode 100755 index 0000000..fb764d0 Binary files /dev/null and b/assets/art/2021.02.26_black_pearl_papier_2.jpg differ diff --git a/assets/art/2021.03.06_peinture_mp2_grande_1.jpg b/assets/art/2021.03.06_peinture_mp2_grande_1.jpg new file mode 100755 index 0000000..917c123 Binary files /dev/null and b/assets/art/2021.03.06_peinture_mp2_grande_1.jpg differ diff --git a/assets/art/2021.03.11_peinture_mp2_grande_2.jpg b/assets/art/2021.03.11_peinture_mp2_grande_2.jpg new file mode 100755 index 0000000..3d1560d Binary files /dev/null and b/assets/art/2021.03.11_peinture_mp2_grande_2.jpg differ diff --git a/assets/art/2021.03.25_peinture_mp2_clean.png b/assets/art/2021.03.25_peinture_mp2_clean.png new file mode 100755 index 0000000..11f1742 Binary files /dev/null and b/assets/art/2021.03.25_peinture_mp2_clean.png differ diff --git a/assets/art/2021.04.06_faux_tag_lofi.png b/assets/art/2021.04.06_faux_tag_lofi.png new file mode 100755 index 0000000..66fce19 Binary files /dev/null and b/assets/art/2021.04.06_faux_tag_lofi.png differ diff --git a/assets/art/2021.04.14_spiderman_pastel.png b/assets/art/2021.04.14_spiderman_pastel.png new file mode 100755 index 0000000..69b55c5 Binary files /dev/null and b/assets/art/2021.04.14_spiderman_pastel.png differ diff --git a/assets/art/2021.04.18_tag_spider.jpg b/assets/art/2021.04.18_tag_spider.jpg new file mode 100755 index 0000000..cafa327 Binary files /dev/null and b/assets/art/2021.04.18_tag_spider.jpg differ diff --git a/assets/art/2021.04.21_peinture_isoka.jpg b/assets/art/2021.04.21_peinture_isoka.jpg new file mode 100755 index 0000000..846870c Binary files /dev/null and b/assets/art/2021.04.21_peinture_isoka.jpg differ diff --git a/assets/art/2021.05.18_pull_deadly_sin.jpg b/assets/art/2021.05.18_pull_deadly_sin.jpg new file mode 100755 index 0000000..1071c58 Binary files /dev/null and b/assets/art/2021.05.18_pull_deadly_sin.jpg differ diff --git a/assets/art/2021.05.23_gourde_pirate.png b/assets/art/2021.05.23_gourde_pirate.png new file mode 100755 index 0000000..9b34ee5 Binary files /dev/null and b/assets/art/2021.05.23_gourde_pirate.png differ diff --git a/assets/art/2021.05.29_necromunda_chef.jpg b/assets/art/2021.05.29_necromunda_chef.jpg new file mode 100755 index 0000000..eb2d827 Binary files /dev/null and b/assets/art/2021.05.29_necromunda_chef.jpg differ diff --git a/assets/art/2021.06.05_necromunda_3.jpg b/assets/art/2021.06.05_necromunda_3.jpg new file mode 100755 index 0000000..5b051bc Binary files /dev/null and b/assets/art/2021.06.05_necromunda_3.jpg differ diff --git a/assets/art/2021.06.16_black_pearl_papier_peint.jpg b/assets/art/2021.06.16_black_pearl_papier_peint.jpg new file mode 100755 index 0000000..c831ef5 Binary files /dev/null and b/assets/art/2021.06.16_black_pearl_papier_peint.jpg differ diff --git a/assets/art/2021.06.23_peinture_bateau.jpg b/assets/art/2021.06.23_peinture_bateau.jpg new file mode 100755 index 0000000..2710747 Binary files /dev/null and b/assets/art/2021.06.23_peinture_bateau.jpg differ diff --git a/assets/art/2021.06.26_necromunda_goon.jpg b/assets/art/2021.06.26_necromunda_goon.jpg new file mode 100755 index 0000000..b88cc91 Binary files /dev/null and b/assets/art/2021.06.26_necromunda_goon.jpg differ diff --git a/assets/art/2021.06.28_necromunda_full_team.jpg b/assets/art/2021.06.28_necromunda_full_team.jpg new file mode 100755 index 0000000..07c28b9 Binary files /dev/null and b/assets/art/2021.06.28_necromunda_full_team.jpg differ diff --git a/assets/art/2021.10.29_tag_crane.jpg b/assets/art/2021.10.29_tag_crane.jpg new file mode 100755 index 0000000..266b354 Binary files /dev/null and b/assets/art/2021.10.29_tag_crane.jpg differ diff --git a/assets/art/2021.10.29_tag_fantome.jpg b/assets/art/2021.10.29_tag_fantome.jpg new file mode 100755 index 0000000..dfa4649 Binary files /dev/null and b/assets/art/2021.10.29_tag_fantome.jpg differ diff --git a/assets/art/2022.01.29_digital_dragon.png b/assets/art/2022.01.29_digital_dragon.png new file mode 100755 index 0000000..2c94d12 Binary files /dev/null and b/assets/art/2022.01.29_digital_dragon.png differ diff --git a/assets/art/2022.03.02_dos_pc_ghibli.jpg b/assets/art/2022.03.02_dos_pc_ghibli.jpg new file mode 100755 index 0000000..67fd53e Binary files /dev/null and b/assets/art/2022.03.02_dos_pc_ghibli.jpg differ diff --git a/assets/art/2022.03.26_amaterasu_2.png b/assets/art/2022.03.26_amaterasu_2.png new file mode 100755 index 0000000..24a90e6 Binary files /dev/null and b/assets/art/2022.03.26_amaterasu_2.png differ diff --git a/assets/art/2022.03.26_amaterasu_papier.jpg b/assets/art/2022.03.26_amaterasu_papier.jpg new file mode 100755 index 0000000..66a3553 Binary files /dev/null and b/assets/art/2022.03.26_amaterasu_papier.jpg differ diff --git a/assets/art/2022.03.27_black_pearl_papier_final.jpg b/assets/art/2022.03.27_black_pearl_papier_final.jpg new file mode 100755 index 0000000..9e6bb41 Binary files /dev/null and b/assets/art/2022.03.27_black_pearl_papier_final.jpg differ diff --git a/assets/art/2022.04.03_blender_loco_lowpoly.png b/assets/art/2022.04.03_blender_loco_lowpoly.png new file mode 100755 index 0000000..65240e3 Binary files /dev/null and b/assets/art/2022.04.03_blender_loco_lowpoly.png differ diff --git a/assets/art/2022.06.13_chauve_souris_crochet.jpg b/assets/art/2022.06.13_chauve_souris_crochet.jpg new file mode 100755 index 0000000..d4eeea5 Binary files /dev/null and b/assets/art/2022.06.13_chauve_souris_crochet.jpg differ diff --git a/assets/art/2022.06.14_pingouin_crochet.jpg b/assets/art/2022.06.14_pingouin_crochet.jpg new file mode 100755 index 0000000..b664187 Binary files /dev/null and b/assets/art/2022.06.14_pingouin_crochet.jpg differ diff --git a/assets/art/2022.08.15_hms_victory.jpg b/assets/art/2022.08.15_hms_victory.jpg new file mode 100755 index 0000000..00c94f7 Binary files /dev/null and b/assets/art/2022.08.15_hms_victory.jpg differ diff --git a/assets/art/2022.10.13_blender_loco_detail.png b/assets/art/2022.10.13_blender_loco_detail.png new file mode 100755 index 0000000..ee59686 Binary files /dev/null and b/assets/art/2022.10.13_blender_loco_detail.png differ diff --git a/assets/art/2022.10.14_blender_avion_rouge.png b/assets/art/2022.10.14_blender_avion_rouge.png new file mode 100755 index 0000000..c14fae0 Binary files /dev/null and b/assets/art/2022.10.14_blender_avion_rouge.png differ diff --git a/assets/art/2022.10.23_blender_lancaster.png b/assets/art/2022.10.23_blender_lancaster.png new file mode 100755 index 0000000..b42c35b Binary files /dev/null and b/assets/art/2022.10.23_blender_lancaster.png differ diff --git a/assets/art/2022.10.30_fantomes_anniv.jpg b/assets/art/2022.10.30_fantomes_anniv.jpg new file mode 100755 index 0000000..0d0927d Binary files /dev/null and b/assets/art/2022.10.30_fantomes_anniv.jpg differ diff --git a/assets/art/2022.10.30_fantomes_anniv2.jpg b/assets/art/2022.10.30_fantomes_anniv2.jpg new file mode 100755 index 0000000..11749af Binary files /dev/null and b/assets/art/2022.10.30_fantomes_anniv2.jpg differ diff --git a/assets/art/2022.11.26_blender_jonque.png b/assets/art/2022.11.26_blender_jonque.png new file mode 100755 index 0000000..2163c57 Binary files /dev/null and b/assets/art/2022.11.26_blender_jonque.png differ diff --git a/assets/art/2022.12.04_totoro_anim.png b/assets/art/2022.12.04_totoro_anim.png new file mode 100755 index 0000000..afac973 Binary files /dev/null and b/assets/art/2022.12.04_totoro_anim.png differ diff --git a/assets/art/2023.01.15_pauline.jpg b/assets/art/2023.01.15_pauline.jpg new file mode 100755 index 0000000..8c96da6 Binary files /dev/null and b/assets/art/2023.01.15_pauline.jpg differ diff --git a/assets/art/2023.01.19_costume.png b/assets/art/2023.01.19_costume.png new file mode 100755 index 0000000..049d022 Binary files /dev/null and b/assets/art/2023.01.19_costume.png differ diff --git a/assets/art/2023.01.19_moi_costume.jpg b/assets/art/2023.01.19_moi_costume.jpg new file mode 100755 index 0000000..776bcfb Binary files /dev/null and b/assets/art/2023.01.19_moi_costume.jpg differ diff --git a/assets/art/2023.08.28_bateau_expe_pont.jpg b/assets/art/2023.08.28_bateau_expe_pont.jpg new file mode 100755 index 0000000..17db34a Binary files /dev/null and b/assets/art/2023.08.28_bateau_expe_pont.jpg differ diff --git a/assets/art/2023.08.28_bateau_expe_structure.jpg b/assets/art/2023.08.28_bateau_expe_structure.jpg new file mode 100755 index 0000000..01ba2d0 Binary files /dev/null and b/assets/art/2023.08.28_bateau_expe_structure.jpg differ diff --git a/assets/art/2023.08.31_bateau_expe_pont_detail.jpg b/assets/art/2023.08.31_bateau_expe_pont_detail.jpg new file mode 100755 index 0000000..8cfa030 Binary files /dev/null and b/assets/art/2023.08.31_bateau_expe_pont_detail.jpg differ diff --git a/assets/art/2023.09.04_bateau_expe_coque_debut.jpg b/assets/art/2023.09.04_bateau_expe_coque_debut.jpg new file mode 100755 index 0000000..51736cc Binary files /dev/null and b/assets/art/2023.09.04_bateau_expe_coque_debut.jpg differ diff --git a/assets/art/2023.09.06_bateau_expe_coque_fin.jpg b/assets/art/2023.09.06_bateau_expe_coque_fin.jpg new file mode 100755 index 0000000..2afa57b Binary files /dev/null and b/assets/art/2023.09.06_bateau_expe_coque_fin.jpg differ diff --git a/assets/art/2023.09.12_bateau_expe_base_fin_1.jpg b/assets/art/2023.09.12_bateau_expe_base_fin_1.jpg new file mode 100755 index 0000000..454297a Binary files /dev/null and b/assets/art/2023.09.12_bateau_expe_base_fin_1.jpg differ diff --git a/assets/art/2023.09.12_bateau_expe_base_fin_2.jpg b/assets/art/2023.09.12_bateau_expe_base_fin_2.jpg new file mode 100755 index 0000000..30ee54b Binary files /dev/null and b/assets/art/2023.09.12_bateau_expe_base_fin_2.jpg differ diff --git a/assets/art/2023.09.14_bateau_expe_mat.jpg b/assets/art/2023.09.14_bateau_expe_mat.jpg new file mode 100755 index 0000000..b56a91e Binary files /dev/null and b/assets/art/2023.09.14_bateau_expe_mat.jpg differ diff --git a/assets/art/2023.09.15_bateau_expe_espars.jpg b/assets/art/2023.09.15_bateau_expe_espars.jpg new file mode 100755 index 0000000..fac9a64 Binary files /dev/null and b/assets/art/2023.09.15_bateau_expe_espars.jpg differ diff --git a/assets/art/2023.09.17_bateau_expe_voile_avant.jpg b/assets/art/2023.09.17_bateau_expe_voile_avant.jpg new file mode 100755 index 0000000..973b8ee Binary files /dev/null and b/assets/art/2023.09.17_bateau_expe_voile_avant.jpg differ diff --git a/assets/art/2023.09.19_bateau_expe_full_voiles_1.jpg b/assets/art/2023.09.19_bateau_expe_full_voiles_1.jpg new file mode 100755 index 0000000..f01bbeb Binary files /dev/null and b/assets/art/2023.09.19_bateau_expe_full_voiles_1.jpg differ diff --git a/assets/art/2023.09.19_bateau_expe_full_voiles_2.jpg b/assets/art/2023.09.19_bateau_expe_full_voiles_2.jpg new file mode 100755 index 0000000..22a22c6 Binary files /dev/null and b/assets/art/2023.09.19_bateau_expe_full_voiles_2.jpg differ diff --git a/assets/art/2023.09.21_bateau_expe_final_1.jpg b/assets/art/2023.09.21_bateau_expe_final_1.jpg new file mode 100755 index 0000000..d8b88f4 Binary files /dev/null and b/assets/art/2023.09.21_bateau_expe_final_1.jpg differ diff --git a/assets/art/2023.09.21_bateau_expe_final_2.jpg b/assets/art/2023.09.21_bateau_expe_final_2.jpg new file mode 100755 index 0000000..5252546 Binary files /dev/null and b/assets/art/2023.09.21_bateau_expe_final_2.jpg differ diff --git a/assets/art/2023.09.21_bateau_expe_final_3.jpg b/assets/art/2023.09.21_bateau_expe_final_3.jpg new file mode 100755 index 0000000..b326e94 Binary files /dev/null and b/assets/art/2023.09.21_bateau_expe_final_3.jpg differ diff --git a/assets/art/2023.09.21_bateau_expe_final_full.jpg b/assets/art/2023.09.21_bateau_expe_final_full.jpg new file mode 100755 index 0000000..17a9744 Binary files /dev/null and b/assets/art/2023.09.21_bateau_expe_final_full.jpg differ diff --git a/assets/art/2024.07.17_dragon_argile_duo_1.jpg b/assets/art/2024.07.17_dragon_argile_duo_1.jpg new file mode 100755 index 0000000..97b8cdb Binary files /dev/null and b/assets/art/2024.07.17_dragon_argile_duo_1.jpg differ diff --git a/assets/art/2024.07.17_dragon_argile_duo_2.jpg b/assets/art/2024.07.17_dragon_argile_duo_2.jpg new file mode 100755 index 0000000..9e24c93 Binary files /dev/null and b/assets/art/2024.07.17_dragon_argile_duo_2.jpg differ diff --git a/assets/art/2024.07.17_dragon_argile_solo_1.jpg b/assets/art/2024.07.17_dragon_argile_solo_1.jpg new file mode 100755 index 0000000..aea004e Binary files /dev/null and b/assets/art/2024.07.17_dragon_argile_solo_1.jpg differ diff --git a/assets/art/2024.07.17_dragon_argile_solo_2.jpg b/assets/art/2024.07.17_dragon_argile_solo_2.jpg new file mode 100755 index 0000000..7fbe3f8 Binary files /dev/null and b/assets/art/2024.07.17_dragon_argile_solo_2.jpg differ diff --git a/assets/art/2024.08.18_dragon_argile_duo_peint_1.jpg b/assets/art/2024.08.18_dragon_argile_duo_peint_1.jpg new file mode 100755 index 0000000..9923af6 Binary files /dev/null and b/assets/art/2024.08.18_dragon_argile_duo_peint_1.jpg differ diff --git a/assets/art/2024.08.18_dragon_argile_duo_peint_2.jpg b/assets/art/2024.08.18_dragon_argile_duo_peint_2.jpg new file mode 100755 index 0000000..088ffda Binary files /dev/null and b/assets/art/2024.08.18_dragon_argile_duo_peint_2.jpg differ diff --git a/assets/style.css b/assets/style.css index 2857d78..85b045a 100644 --- a/assets/style.css +++ b/assets/style.css @@ -37,6 +37,12 @@ h1, h2 { color: #000; } +input { + border: 2px #cccccc; + border-radius: 4px; + font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; +} + /* Dark mode styles */ @media (prefers-color-scheme: dark) { body { @@ -44,6 +50,11 @@ h1, h2 { background: #222222; } + input { + color: #cccccc; + background: #181818; + } + a:link { color: #58a6ff; } diff --git a/pages/common.html b/pages/common.html index 8b8b00d..1321e17 100644 --- a/pages/common.html +++ b/pages/common.html @@ -20,8 +20,8 @@ pdf edit storage -

my Art

-

my Games

+

my Art

+

my Games

Home - diff --git a/pages/games.md b/pages/games.md new file mode 100644 index 0000000..b7a3b96 --- /dev/null +++ b/pages/games.md @@ -0,0 +1,136 @@ +# Yuya - Game exhibition + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+five days with bobby icon + +

Five Days with Bobby (25/02/2024)

+

Survival - How hard could having a baby on board be ?

+

Made by Eliott Jvn and WanderingPenwing, Music by Bears to Bear,

+

Made for the PIZZA JAM using Godot, based around the theme "Baby on Board"

+

play in browser

+
+star gazer icon + +

Star Gazer (05/01/2024)

+

The stellarium that I port on every engine I try (made with godot this time)

+

play in browser

+
+falling rabbits icon + +

Crown Taker (03/01/2024)

+

Definitely not a Watermelon Game

+

Made for my kind little cousin (game made with godot)

+

play in browser

+
+crown taker icon + +

Crown Taker (31/12/2023)

+

Puzzle - They're a filthy little thief! Where is it? They stole it from us, our precious.

+

Music by Beers to Bear, made for the icam secret santa game jam (game made with godot)

+

play in browser

+
+santa gnomes icon + +

Crown Taker (21/12/2023)

+

Action - The Gnomes are rebelling against Santa... You must fight back !

+

Music by Beers to Bear, made for the 2023 itch.io secret santa game jam (game made with godot)

+

play in browser

+
+dash dash revolution icon + +

Dash Dash Revolution (25/11/2023)

+

Puzzle - A 1-button puzzle game

+

Music by meeeee (game made with godot)

+

play in browser

+
+spectral purr-suasion icon + +

Spectral Purr-suasion (25/11/2023)

+

Puzzle - The only way to lose is to try-hard

+

You play as a ghost, looking for his teddy bear... (my first puzzle game, made with godot)

+

play in browser

+
+rock me like a hurricane icon + +

Rock Me Like a Hurricane (18/11/2023)

+

Action - Rocks, Hurricanes, and you in the mix x)

+

Submission to the 2 Buttons Jam 2023 (solo, made with godot)
+Theme : Tower, Sleep, Maelstrom
+Constraint : Only 2 buttons for the game

+

download (win)

+

download (linux)

+
+rusty and puffy icon + +

Rusty and Puffy (21/10/2023)

+

Action - An arcade dungeon crawler in a laboratory where you protect the player

+

school hosted a 36h game jam, my first ! (and first game made using godot, solo team)

+

download (win)

+

download (linux)

+
+ +

Unnamed abandonned RPG (09/06/2019)

+

vanilla js game, unfinished

+

play in browser

+
+ +

Unnamed Pirate game (27/05/2019)

+

vanilla js game, made for my dad

+

play in browser

+
diff --git a/pages/wake_failure.html b/pages/wake_failure.html deleted file mode 100644 index d07f3df..0000000 --- a/pages/wake_failure.html +++ /dev/null @@ -1 +0,0 @@ -

Wrong password, try again.

diff --git a/pages/wake_success.html b/pages/wake_success.html deleted file mode 100644 index 930d6f7..0000000 --- a/pages/wake_success.html +++ /dev/null @@ -1 +0,0 @@ -

Successfuly started boiler, please wait a few minutes for the startup process to end.

diff --git a/src/common.html b/src/common.html deleted file mode 100644 index 12f1d8f..0000000 --- a/src/common.html +++ /dev/null @@ -1,46 +0,0 @@ - - - yuya - - - - - - -
-

Summary

-

Tools

- proxy - domain - dashboard - adblocker - search - git server - streaming - pdf edit - storage - -

my Art

-

my Games

-
-

-Home - -Tools - -Art - -Games -

-
-#CONTENT# -


-
-


- -

Epilogue

- -

Inspired by the geniuses behind perfectwebsite.com, -because a webpage does not have to be heavier than the code that took us to the moon.

- -

This page is licensed under CC0

- -
- diff --git a/src/main.rs b/src/main.rs index 68e5ecf..4777490 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,10 +80,10 @@ async fn serve_markdown(file_path: &str, query_success: Option) -> impl Re if success { summary_html = fs::read_to_string("pages/summary_on.html").unwrap_or_else(|_| String::from("Error reading summary on html file")); - success_html = fs::read_to_string("pages/wake_success.html").unwrap_or_else(|_| String::from("Error reading success html file")); + success_html = "

Successfuly started boiler, please wait a few minutes for the startup process to end.

".to_string(); } else { summary_html = fs::read_to_string("pages/summary_off.html").unwrap_or_else(|_| String::from("Error reading summary off html file")); - success_html = fs::read_to_string("pages/wake_failure.html").unwrap_or_else(|_| String::from("Error reading failure html file")); + success_html = "

Wrong password, try again.

".to_string(); } html_content = html_content.replace("~SUMMARY~", &summary_html).replace("~SUCCESS~", &success_html); @@ -113,6 +113,10 @@ async fn tools() -> impl Responder { serve_markdown("pages/tools.md", None).await } +async fn games() -> impl Responder { + serve_markdown("pages/games.md", None).await +} + async fn wake(query: web::Query) -> impl Responder { let password = &query.password; @@ -137,6 +141,7 @@ async fn main() -> std::io::Result<()> { .route("/", web::get().to(summary)) // Route for root .route("/tools", web::get().to(tools)) // Route for tools .route("/wake", web::get().to(wake)) + .route("/games", web::get().to(games)) .service(actix_files::Files::new("/assets", "./assets").show_files_listing()) .default_service(web::route().to(summary)) })