diff --git a/js/public/img/categories/arts-small.jpg b/js/public/img/categories/arts-small.jpg deleted file mode 100644 index 93a372aa7..000000000 Binary files a/js/public/img/categories/arts-small.jpg and /dev/null differ diff --git a/js/public/img/categories/arts-small.webp b/js/public/img/categories/arts-small.webp new file mode 100644 index 000000000..2d5f4b411 Binary files /dev/null and b/js/public/img/categories/arts-small.webp differ diff --git a/js/public/img/categories/arts.jpg b/js/public/img/categories/arts.jpg deleted file mode 100644 index 24d0af895..000000000 Binary files a/js/public/img/categories/arts.jpg and /dev/null differ diff --git a/js/public/img/categories/arts.webp b/js/public/img/categories/arts.webp new file mode 100644 index 000000000..a9fab2781 Binary files /dev/null and b/js/public/img/categories/arts.webp differ diff --git a/js/public/img/categories/business-small.jpg b/js/public/img/categories/business-small.jpg deleted file mode 100644 index 17d138cae..000000000 Binary files a/js/public/img/categories/business-small.jpg and /dev/null differ diff --git a/js/public/img/categories/business-small.webp b/js/public/img/categories/business-small.webp new file mode 100644 index 000000000..967246ba0 Binary files /dev/null and b/js/public/img/categories/business-small.webp differ diff --git a/js/public/img/categories/business.jpg b/js/public/img/categories/business.jpg deleted file mode 100644 index c83c72252..000000000 Binary files a/js/public/img/categories/business.jpg and /dev/null differ diff --git a/js/public/img/categories/business.webp b/js/public/img/categories/business.webp new file mode 100644 index 000000000..06d4d2c9d Binary files /dev/null and b/js/public/img/categories/business.webp differ diff --git a/js/public/img/categories/crafts-small.jpg b/js/public/img/categories/crafts-small.jpg deleted file mode 100644 index 5f82df602..000000000 Binary files a/js/public/img/categories/crafts-small.jpg and /dev/null differ diff --git a/js/public/img/categories/crafts-small.webp b/js/public/img/categories/crafts-small.webp new file mode 100644 index 000000000..97c743d60 Binary files /dev/null and b/js/public/img/categories/crafts-small.webp differ diff --git a/js/public/img/categories/crafts.jpg b/js/public/img/categories/crafts.jpg deleted file mode 100644 index 8420dc664..000000000 Binary files a/js/public/img/categories/crafts.jpg and /dev/null differ diff --git a/js/public/img/categories/crafts.webp b/js/public/img/categories/crafts.webp new file mode 100644 index 000000000..6dbe7a670 Binary files /dev/null and b/js/public/img/categories/crafts.webp differ diff --git a/js/public/img/categories/film_media-small.jpg b/js/public/img/categories/film_media-small.jpg deleted file mode 100644 index 9215b8b75..000000000 Binary files a/js/public/img/categories/film_media-small.jpg and /dev/null differ diff --git a/js/public/img/categories/film_media-small.webp b/js/public/img/categories/film_media-small.webp new file mode 100644 index 000000000..deafb6b03 Binary files /dev/null and b/js/public/img/categories/film_media-small.webp differ diff --git a/js/public/img/categories/film_media.jpg b/js/public/img/categories/film_media.jpg deleted file mode 100644 index f0e61bf2a..000000000 Binary files a/js/public/img/categories/film_media.jpg and /dev/null differ diff --git a/js/public/img/categories/film_media.webp b/js/public/img/categories/film_media.webp new file mode 100644 index 000000000..c50ef4338 Binary files /dev/null and b/js/public/img/categories/film_media.webp differ diff --git a/js/public/img/categories/food_drink-small.jpg b/js/public/img/categories/food_drink-small.jpg deleted file mode 100644 index af41469a2..000000000 Binary files a/js/public/img/categories/food_drink-small.jpg and /dev/null differ diff --git a/js/public/img/categories/food_drink-small.webp b/js/public/img/categories/food_drink-small.webp new file mode 100644 index 000000000..71d984907 Binary files /dev/null and b/js/public/img/categories/food_drink-small.webp differ diff --git a/js/public/img/categories/food_drink.jpg b/js/public/img/categories/food_drink.jpg deleted file mode 100644 index 69b3c7d9c..000000000 Binary files a/js/public/img/categories/food_drink.jpg and /dev/null differ diff --git a/js/public/img/categories/food_drink.webp b/js/public/img/categories/food_drink.webp new file mode 100644 index 000000000..0225ca512 Binary files /dev/null and b/js/public/img/categories/food_drink.webp differ diff --git a/js/public/img/categories/games-small.jpg b/js/public/img/categories/games-small.jpg deleted file mode 100644 index ff3bdfc90..000000000 Binary files a/js/public/img/categories/games-small.jpg and /dev/null differ diff --git a/js/public/img/categories/games-small.webp b/js/public/img/categories/games-small.webp new file mode 100644 index 000000000..8095816a1 Binary files /dev/null and b/js/public/img/categories/games-small.webp differ diff --git a/js/public/img/categories/games.jpg b/js/public/img/categories/games.jpg deleted file mode 100644 index 56c502984..000000000 Binary files a/js/public/img/categories/games.jpg and /dev/null differ diff --git a/js/public/img/categories/games.webp b/js/public/img/categories/games.webp new file mode 100644 index 000000000..56a069448 Binary files /dev/null and b/js/public/img/categories/games.webp differ diff --git a/js/public/img/categories/health-small.jpg b/js/public/img/categories/health-small.jpg deleted file mode 100644 index 479dc06a1..000000000 Binary files a/js/public/img/categories/health-small.jpg and /dev/null differ diff --git a/js/public/img/categories/health-small.webp b/js/public/img/categories/health-small.webp new file mode 100644 index 000000000..1514b3ee3 Binary files /dev/null and b/js/public/img/categories/health-small.webp differ diff --git a/js/public/img/categories/health.jpg b/js/public/img/categories/health.jpg deleted file mode 100644 index a09643053..000000000 Binary files a/js/public/img/categories/health.jpg and /dev/null differ diff --git a/js/public/img/categories/health.webp b/js/public/img/categories/health.webp new file mode 100644 index 000000000..fcec8cea3 Binary files /dev/null and b/js/public/img/categories/health.webp differ diff --git a/js/public/img/categories/lgbtq-small.jpg b/js/public/img/categories/lgbtq-small.jpg deleted file mode 100644 index f57049164..000000000 Binary files a/js/public/img/categories/lgbtq-small.jpg and /dev/null differ diff --git a/js/public/img/categories/lgbtq-small.webp b/js/public/img/categories/lgbtq-small.webp new file mode 100644 index 000000000..d3f70c9b3 Binary files /dev/null and b/js/public/img/categories/lgbtq-small.webp differ diff --git a/js/public/img/categories/lgbtq.jpg b/js/public/img/categories/lgbtq.jpg deleted file mode 100644 index e63313166..000000000 Binary files a/js/public/img/categories/lgbtq.jpg and /dev/null differ diff --git a/js/public/img/categories/lgbtq.webp b/js/public/img/categories/lgbtq.webp new file mode 100644 index 000000000..72b460152 Binary files /dev/null and b/js/public/img/categories/lgbtq.webp differ diff --git a/js/public/img/categories/movements_politics-small.jpg b/js/public/img/categories/movements_politics-small.jpg deleted file mode 100644 index b7149b96d..000000000 Binary files a/js/public/img/categories/movements_politics-small.jpg and /dev/null differ diff --git a/js/public/img/categories/movements_politics-small.webp b/js/public/img/categories/movements_politics-small.webp new file mode 100644 index 000000000..e7c47b4cb Binary files /dev/null and b/js/public/img/categories/movements_politics-small.webp differ diff --git a/js/public/img/categories/movements_politics.jpg b/js/public/img/categories/movements_politics.jpg deleted file mode 100644 index 18d1cf92e..000000000 Binary files a/js/public/img/categories/movements_politics.jpg and /dev/null differ diff --git a/js/public/img/categories/movements_politics.webp b/js/public/img/categories/movements_politics.webp new file mode 100644 index 000000000..987dbbddf Binary files /dev/null and b/js/public/img/categories/movements_politics.webp differ diff --git a/js/public/img/categories/music-small.jpg b/js/public/img/categories/music-small.jpg deleted file mode 100644 index e6e9d4b2a..000000000 Binary files a/js/public/img/categories/music-small.jpg and /dev/null differ diff --git a/js/public/img/categories/music-small.webp b/js/public/img/categories/music-small.webp new file mode 100644 index 000000000..856ec7184 Binary files /dev/null and b/js/public/img/categories/music-small.webp differ diff --git a/js/public/img/categories/music.jpg b/js/public/img/categories/music.jpg deleted file mode 100644 index e5b0731c9..000000000 Binary files a/js/public/img/categories/music.jpg and /dev/null differ diff --git a/js/public/img/categories/music.webp b/js/public/img/categories/music.webp new file mode 100644 index 000000000..4efa3fef2 Binary files /dev/null and b/js/public/img/categories/music.webp differ diff --git a/js/public/img/categories/outdoors_adventure-small.jpg b/js/public/img/categories/outdoors_adventure-small.jpg deleted file mode 100644 index 864238aaa..000000000 Binary files a/js/public/img/categories/outdoors_adventure-small.jpg and /dev/null differ diff --git a/js/public/img/categories/outdoors_adventure-small.webp b/js/public/img/categories/outdoors_adventure-small.webp new file mode 100644 index 000000000..79a2027c0 Binary files /dev/null and b/js/public/img/categories/outdoors_adventure-small.webp differ diff --git a/js/public/img/categories/outdoors_adventure.jpg b/js/public/img/categories/outdoors_adventure.jpg deleted file mode 100644 index 0f4d049e7..000000000 Binary files a/js/public/img/categories/outdoors_adventure.jpg and /dev/null differ diff --git a/js/public/img/categories/outdoors_adventure.webp b/js/public/img/categories/outdoors_adventure.webp new file mode 100644 index 000000000..1eac571b7 Binary files /dev/null and b/js/public/img/categories/outdoors_adventure.webp differ diff --git a/js/public/img/categories/party-small.jpg b/js/public/img/categories/party-small.jpg deleted file mode 100644 index 9673af1c0..000000000 Binary files a/js/public/img/categories/party-small.jpg and /dev/null differ diff --git a/js/public/img/categories/party-small.webp b/js/public/img/categories/party-small.webp new file mode 100644 index 000000000..a52d1c406 Binary files /dev/null and b/js/public/img/categories/party-small.webp differ diff --git a/js/public/img/categories/party.jpg b/js/public/img/categories/party.jpg deleted file mode 100644 index 333468cfd..000000000 Binary files a/js/public/img/categories/party.jpg and /dev/null differ diff --git a/js/public/img/categories/party.webp b/js/public/img/categories/party.webp new file mode 100644 index 000000000..8e3bc6b3a Binary files /dev/null and b/js/public/img/categories/party.webp differ diff --git a/js/public/img/categories/photography-small.jpg b/js/public/img/categories/photography-small.jpg deleted file mode 100644 index ef27251f7..000000000 Binary files a/js/public/img/categories/photography-small.jpg and /dev/null differ diff --git a/js/public/img/categories/photography-small.webp b/js/public/img/categories/photography-small.webp new file mode 100644 index 000000000..0ac0863bf Binary files /dev/null and b/js/public/img/categories/photography-small.webp differ diff --git a/js/public/img/categories/photography.jpg b/js/public/img/categories/photography.jpg deleted file mode 100644 index ba0b9a6c2..000000000 Binary files a/js/public/img/categories/photography.jpg and /dev/null differ diff --git a/js/public/img/categories/photography.webp b/js/public/img/categories/photography.webp new file mode 100644 index 000000000..082401eda Binary files /dev/null and b/js/public/img/categories/photography.webp differ diff --git a/js/public/img/categories/spirituality_religion_beliefs-small.jpg b/js/public/img/categories/spirituality_religion_beliefs-small.jpg deleted file mode 100644 index c7532d58f..000000000 Binary files a/js/public/img/categories/spirituality_religion_beliefs-small.jpg and /dev/null differ diff --git a/js/public/img/categories/spirituality_religion_beliefs-small.webp b/js/public/img/categories/spirituality_religion_beliefs-small.webp new file mode 100644 index 000000000..bff9c3798 Binary files /dev/null and b/js/public/img/categories/spirituality_religion_beliefs-small.webp differ diff --git a/js/public/img/categories/spirituality_religion_beliefs.jpg b/js/public/img/categories/spirituality_religion_beliefs.jpg deleted file mode 100644 index f16232341..000000000 Binary files a/js/public/img/categories/spirituality_religion_beliefs.jpg and /dev/null differ diff --git a/js/public/img/categories/spirituality_religion_beliefs.webp b/js/public/img/categories/spirituality_religion_beliefs.webp new file mode 100644 index 000000000..3022135b8 Binary files /dev/null and b/js/public/img/categories/spirituality_religion_beliefs.webp differ diff --git a/js/public/img/categories/sports-small.jpg b/js/public/img/categories/sports-small.jpg deleted file mode 100644 index fcdb70a2e..000000000 Binary files a/js/public/img/categories/sports-small.jpg and /dev/null differ diff --git a/js/public/img/categories/sports-small.webp b/js/public/img/categories/sports-small.webp new file mode 100644 index 000000000..0f6367432 Binary files /dev/null and b/js/public/img/categories/sports-small.webp differ diff --git a/js/public/img/categories/sports.jpg b/js/public/img/categories/sports.jpg deleted file mode 100644 index a77025273..000000000 Binary files a/js/public/img/categories/sports.jpg and /dev/null differ diff --git a/js/public/img/categories/sports.webp b/js/public/img/categories/sports.webp new file mode 100644 index 000000000..304eff1cf Binary files /dev/null and b/js/public/img/categories/sports.webp differ diff --git a/js/public/img/categories/theatre-small.jpg b/js/public/img/categories/theatre-small.jpg deleted file mode 100644 index 0551ca2eb..000000000 Binary files a/js/public/img/categories/theatre-small.jpg and /dev/null differ diff --git a/js/public/img/categories/theatre-small.webp b/js/public/img/categories/theatre-small.webp new file mode 100644 index 000000000..ff0c6575f Binary files /dev/null and b/js/public/img/categories/theatre-small.webp differ diff --git a/js/public/img/categories/theatre.jpg b/js/public/img/categories/theatre.jpg deleted file mode 100644 index d461cde87..000000000 Binary files a/js/public/img/categories/theatre.jpg and /dev/null differ diff --git a/js/public/img/categories/theatre.webp b/js/public/img/categories/theatre.webp new file mode 100644 index 000000000..766e608c7 Binary files /dev/null and b/js/public/img/categories/theatre.webp differ diff --git a/js/public/img/koena-a11y.svg b/js/public/img/koena-a11y.svg deleted file mode 100644 index 4ef920d2f..000000000 --- a/js/public/img/koena-a11y.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/js/public/img/online-event.webp b/js/public/img/online-event.webp new file mode 100644 index 000000000..c20e97658 Binary files /dev/null and b/js/public/img/online-event.webp differ diff --git a/js/public/img/pics/error.jpg b/js/public/img/pics/error.jpg deleted file mode 100644 index 46752640e..000000000 Binary files a/js/public/img/pics/error.jpg and /dev/null differ diff --git a/js/public/img/pics/error.webp b/js/public/img/pics/error.webp new file mode 100644 index 000000000..d807645e5 Binary files /dev/null and b/js/public/img/pics/error.webp differ diff --git a/js/public/img/pics/event_creation-1024w.jpg b/js/public/img/pics/event_creation-1024w.jpg deleted file mode 100644 index 57c879268..000000000 Binary files a/js/public/img/pics/event_creation-1024w.jpg and /dev/null differ diff --git a/js/public/img/pics/event_creation-1024w.webp b/js/public/img/pics/event_creation-1024w.webp index 887137e16..96f31769c 100644 Binary files a/js/public/img/pics/event_creation-1024w.webp and b/js/public/img/pics/event_creation-1024w.webp differ diff --git a/js/public/img/pics/event_creation-480w.jpg b/js/public/img/pics/event_creation-480w.jpg deleted file mode 100644 index 004c872c0..000000000 Binary files a/js/public/img/pics/event_creation-480w.jpg and /dev/null differ diff --git a/js/public/img/pics/event_creation-480w.webp b/js/public/img/pics/event_creation-480w.webp index 7b6c6fda8..15f143247 100644 Binary files a/js/public/img/pics/event_creation-480w.webp and b/js/public/img/pics/event_creation-480w.webp differ diff --git a/js/public/img/pics/event_creation.jpg b/js/public/img/pics/event_creation.jpg deleted file mode 100644 index 227c4affc..000000000 Binary files a/js/public/img/pics/event_creation.jpg and /dev/null differ diff --git a/js/public/img/pics/event_creation.webp b/js/public/img/pics/event_creation.webp new file mode 100644 index 000000000..7406af41d Binary files /dev/null and b/js/public/img/pics/event_creation.webp differ diff --git a/js/public/img/pics/footer_1.jpg b/js/public/img/pics/footer_1.jpg deleted file mode 100644 index 15a7a887e..000000000 Binary files a/js/public/img/pics/footer_1.jpg and /dev/null differ diff --git a/js/public/img/pics/footer_1.webp b/js/public/img/pics/footer_1.webp new file mode 100644 index 000000000..e6685dec6 Binary files /dev/null and b/js/public/img/pics/footer_1.webp differ diff --git a/js/public/img/pics/footer_2.jpg b/js/public/img/pics/footer_2.jpg deleted file mode 100644 index 389a1c88d..000000000 Binary files a/js/public/img/pics/footer_2.jpg and /dev/null differ diff --git a/js/public/img/pics/footer_2.webp b/js/public/img/pics/footer_2.webp new file mode 100644 index 000000000..e438b2cb9 Binary files /dev/null and b/js/public/img/pics/footer_2.webp differ diff --git a/js/public/img/pics/footer_3.jpg b/js/public/img/pics/footer_3.jpg deleted file mode 100644 index d126878b4..000000000 Binary files a/js/public/img/pics/footer_3.jpg and /dev/null differ diff --git a/js/public/img/pics/footer_3.webp b/js/public/img/pics/footer_3.webp new file mode 100644 index 000000000..be647fe19 Binary files /dev/null and b/js/public/img/pics/footer_3.webp differ diff --git a/js/public/img/pics/footer_4.jpg b/js/public/img/pics/footer_4.jpg deleted file mode 100644 index 50a35c9ac..000000000 Binary files a/js/public/img/pics/footer_4.jpg and /dev/null differ diff --git a/js/public/img/pics/footer_4.webp b/js/public/img/pics/footer_4.webp new file mode 100644 index 000000000..1d498275b Binary files /dev/null and b/js/public/img/pics/footer_4.webp differ diff --git a/js/public/img/pics/footer_5.jpg b/js/public/img/pics/footer_5.jpg deleted file mode 100644 index e67a5bf66..000000000 Binary files a/js/public/img/pics/footer_5.jpg and /dev/null differ diff --git a/js/public/img/pics/footer_5.webp b/js/public/img/pics/footer_5.webp new file mode 100644 index 000000000..3fd2a6b90 Binary files /dev/null and b/js/public/img/pics/footer_5.webp differ diff --git a/js/public/img/pics/group-1024w.jpg b/js/public/img/pics/group-1024w.jpg deleted file mode 100644 index 5e7e9c329..000000000 Binary files a/js/public/img/pics/group-1024w.jpg and /dev/null differ diff --git a/js/public/img/pics/group-1024w.webp b/js/public/img/pics/group-1024w.webp index 3e9463f90..fea1fde5d 100644 Binary files a/js/public/img/pics/group-1024w.webp and b/js/public/img/pics/group-1024w.webp differ diff --git a/js/public/img/pics/group-480w.jpg b/js/public/img/pics/group-480w.jpg deleted file mode 100644 index b003dd502..000000000 Binary files a/js/public/img/pics/group-480w.jpg and /dev/null differ diff --git a/js/public/img/pics/group-480w.webp b/js/public/img/pics/group-480w.webp index 8e8380625..319d1257f 100644 Binary files a/js/public/img/pics/group-480w.webp and b/js/public/img/pics/group-480w.webp differ diff --git a/js/public/img/pics/group.jpg b/js/public/img/pics/group.jpg deleted file mode 100644 index 039149cd2..000000000 Binary files a/js/public/img/pics/group.jpg and /dev/null differ diff --git a/js/public/img/pics/group.webp b/js/public/img/pics/group.webp new file mode 100644 index 000000000..26ef07440 Binary files /dev/null and b/js/public/img/pics/group.webp differ diff --git a/js/public/img/pics/homepage.jpg b/js/public/img/pics/homepage.jpg deleted file mode 100644 index 8fd9d5835..000000000 Binary files a/js/public/img/pics/homepage.jpg and /dev/null differ diff --git a/js/public/img/pics/homepage.webp b/js/public/img/pics/homepage.webp new file mode 100644 index 000000000..0d0791a50 Binary files /dev/null and b/js/public/img/pics/homepage.webp differ diff --git a/js/public/img/pics/homepage_background-1024w.webp b/js/public/img/pics/homepage_background-1024w.webp deleted file mode 100644 index 9f63b55e5..000000000 Binary files a/js/public/img/pics/homepage_background-1024w.webp and /dev/null differ diff --git a/js/public/img/pics/realisation.jpg b/js/public/img/pics/realisation.jpg deleted file mode 100644 index ecc4610f0..000000000 Binary files a/js/public/img/pics/realisation.jpg and /dev/null differ diff --git a/js/public/img/pics/realisation.webp b/js/public/img/pics/realisation.webp new file mode 100644 index 000000000..739b6df84 Binary files /dev/null and b/js/public/img/pics/realisation.webp differ diff --git a/js/public/img/pics/rose.jpg b/js/public/img/pics/rose.jpg deleted file mode 100644 index 1689c50ec..000000000 Binary files a/js/public/img/pics/rose.jpg and /dev/null differ diff --git a/js/public/img/pics/rose.webp b/js/public/img/pics/rose.webp new file mode 100644 index 000000000..9d8328860 Binary files /dev/null and b/js/public/img/pics/rose.webp differ diff --git a/js/scripts/build/pictures.sh b/js/scripts/build/pictures.sh index d19fec20a..999d136ef 100755 --- a/js/scripts/build/pictures.sh +++ b/js/scripts/build/pictures.sh @@ -30,11 +30,6 @@ convert_image () { convert -geometry "$resolution"x $file $output } -produce_webp () { - name=$(file_name) - output="$output_dir/$name.webp" - cwebp $file -quiet -o $output -} progress() { local w=80 p=$1; shift @@ -68,23 +63,3 @@ do fi done echo -e "\nDone!" - -echo "Generating optimized versions of the pictures…" - -if ! command -v cwebp &> /dev/null -then - echo "$(tput setaf 1)ERROR: The cwebp command could not be found. You need to install webp.$(tput sgr 0)" - exit 1 -fi - -nb_files=$( shopt -s nullglob ; set -- $output_dir/* ; echo $#) -i=1 -for file in $output_dir/* -do - if [[ -f $file ]]; then - produce_webp - progress $(($i*100/$nb_files)) still working... - i=$((i+1)) - fi -done -echo -e "\nDone!" \ No newline at end of file diff --git a/js/src/components/Categories/CategoryCard.vue b/js/src/components/Categories/CategoryCard.vue index 02bc38042..4ef4242a2 100644 --- a/js/src/components/Categories/CategoryCard.vue +++ b/js/src/components/Categories/CategoryCard.vue @@ -15,17 +15,17 @@ class="brightness-50" > - - - diff --git a/js/src/views/Group/MyGroups.vue b/js/src/views/Group/MyGroups.vue index 9b14f1559..74857c74b 100644 --- a/js/src/views/Group/MyGroups.vue +++ b/js/src/views/Group/MyGroups.vue @@ -205,11 +205,11 @@ section { .not-found { .img-container { - background-image: url("../../../public/img/pics/group-480w.jpg"); + background-image: url("../../../public/img/pics/group-480w.webp"); @media (min-resolution: 2dppx) { & { - background-image: url("../../../public/img/pics/group-1024w.jpg"); + background-image: url("../../../public/img/pics/group-1024w.webp"); } } &.webp { diff --git a/js/src/views/HomeView.vue b/js/src/views/HomeView.vue index b8a45267b..10a59bf38 100644 --- a/js/src/views/HomeView.vue +++ b/js/src/views/HomeView.vue @@ -102,7 +102,7 @@ /> -