diff --git a/Backend/database.sqlite b/Backend/database.sqlite index f6bd01cd1..27440978b 100644 Binary files a/Backend/database.sqlite and b/Backend/database.sqlite differ diff --git "a/Backend/images/Capture_d'\303\251cran_11708979984508.png" "b/Backend/images/Capture_d'\303\251cran_11708979984508.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11708979984508.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11708980595955.png" "b/Backend/images/Capture_d'\303\251cran_11708980595955.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11708980595955.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11708980653729.png" "b/Backend/images/Capture_d'\303\251cran_11708980653729.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11708980653729.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11709497665828.png" "b/Backend/images/Capture_d'\303\251cran_11709497665828.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11709497665828.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11709497835313.png" "b/Backend/images/Capture_d'\303\251cran_11709497835313.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11709497835313.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11709498038062.png" "b/Backend/images/Capture_d'\303\251cran_11709498038062.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11709498038062.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11709498080520.png" "b/Backend/images/Capture_d'\303\251cran_11709498080520.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11709498080520.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11709498348416.png" "b/Backend/images/Capture_d'\303\251cran_11709498348416.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11709498348416.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11709499398563.png" "b/Backend/images/Capture_d'\303\251cran_11709499398563.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11709499398563.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_11709499484754.png" "b/Backend/images/Capture_d'\303\251cran_11709499484754.png" new file mode 100644 index 000000000..8a0359b5a Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_11709499484754.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_2024-01-04_0154341709498247750.png" "b/Backend/images/Capture_d'\303\251cran_2024-01-04_0154341709498247750.png" new file mode 100644 index 000000000..184ff1bad Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_2024-01-04_0154341709498247750.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_2024-01-31_2324021709070575588.png" "b/Backend/images/Capture_d'\303\251cran_2024-01-31_2324021709070575588.png" new file mode 100644 index 000000000..634b3a34c Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_2024-01-31_2324021709070575588.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_21708963457685.png" "b/Backend/images/Capture_d'\303\251cran_21708963457685.png" new file mode 100644 index 000000000..0f1c807c7 Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_21708963457685.png" differ diff --git "a/Backend/images/Capture_d'\303\251cran_21709498270883.png" "b/Backend/images/Capture_d'\303\251cran_21709498270883.png" new file mode 100644 index 000000000..0f1c807c7 Binary files /dev/null and "b/Backend/images/Capture_d'\303\251cran_21709498270883.png" differ diff --git a/Backend/images/IMG-20240118-WA00021709072940987.jpg b/Backend/images/IMG-20240118-WA00021709072940987.jpg new file mode 100644 index 000000000..7a94ea0ef Binary files /dev/null and b/Backend/images/IMG-20240118-WA00021709072940987.jpg differ diff --git a/Backend/images/IMG-20240118-WA00021709209448253.jpg b/Backend/images/IMG-20240118-WA00021709209448253.jpg new file mode 100644 index 000000000..7a94ea0ef Binary files /dev/null and b/Backend/images/IMG-20240118-WA00021709209448253.jpg differ diff --git a/Backend/images/IMG-20240118-WA00021709496599435.jpg b/Backend/images/IMG-20240118-WA00021709496599435.jpg new file mode 100644 index 000000000..7a94ea0ef Binary files /dev/null and b/Backend/images/IMG-20240118-WA00021709496599435.jpg differ diff --git a/Backend/images/IMG-20240118-WA00021709499223885.jpg b/Backend/images/IMG-20240118-WA00021709499223885.jpg new file mode 100644 index 000000000..7a94ea0ef Binary files /dev/null and b/Backend/images/IMG-20240118-WA00021709499223885.jpg differ diff --git a/Backend/images/Malt_&_Juniper_-_New_York1709215131214.png b/Backend/images/Malt_&_Juniper_-_New_York1709215131214.png new file mode 100644 index 000000000..f1aa6750a Binary files /dev/null and b/Backend/images/Malt_&_Juniper_-_New_York1709215131214.png differ diff --git a/Backend/images/Malt_&_Juniper_-_New_York1709367840579.png b/Backend/images/Malt_&_Juniper_-_New_York1709367840579.png new file mode 100644 index 000000000..f1aa6750a Binary files /dev/null and b/Backend/images/Malt_&_Juniper_-_New_York1709367840579.png differ diff --git a/Backend/images/Malt_&_Juniper_-_New_York1709499575873.png b/Backend/images/Malt_&_Juniper_-_New_York1709499575873.png new file mode 100644 index 000000000..f1aa6750a Binary files /dev/null and b/Backend/images/Malt_&_Juniper_-_New_York1709499575873.png differ diff --git a/Backend/images/Malt_&_Juniper_-_New_York1709673411401.png b/Backend/images/Malt_&_Juniper_-_New_York1709673411401.png new file mode 100644 index 000000000..f1aa6750a Binary files /dev/null and b/Backend/images/Malt_&_Juniper_-_New_York1709673411401.png differ diff --git a/Backend/images/Ohmyfood1708979757241.png b/Backend/images/Ohmyfood1708979757241.png new file mode 100644 index 000000000..c2ba55152 Binary files /dev/null and b/Backend/images/Ohmyfood1708979757241.png differ diff --git a/Backend/images/Ohmyfood1709498197127.png b/Backend/images/Ohmyfood1709498197127.png new file mode 100644 index 000000000..c2ba55152 Binary files /dev/null and b/Backend/images/Ohmyfood1709498197127.png differ diff --git a/Backend/images/Ohmyfood1709499125449.png b/Backend/images/Ohmyfood1709499125449.png new file mode 100644 index 000000000..c2ba55152 Binary files /dev/null and b/Backend/images/Ohmyfood1709499125449.png differ diff --git a/FrontEnd/assets/images/abajour-tahina.png b/Backend/images/abajour-tahina1708963417801.png similarity index 100% rename from FrontEnd/assets/images/abajour-tahina.png rename to Backend/images/abajour-tahina1708963417801.png diff --git a/Backend/images/abajour-tahina1708963552556.png b/Backend/images/abajour-tahina1708963552556.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1708963552556.png differ diff --git a/Backend/images/abajour-tahina1708963685317.png b/Backend/images/abajour-tahina1708963685317.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1708963685317.png differ diff --git a/Backend/images/abajour-tahina1709499354543.png b/Backend/images/abajour-tahina1709499354543.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709499354543.png differ diff --git a/Backend/images/abajour-tahina1709500828515.png b/Backend/images/abajour-tahina1709500828515.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709500828515.png differ diff --git a/Backend/images/abajour-tahina1709501252229.png b/Backend/images/abajour-tahina1709501252229.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709501252229.png differ diff --git a/Backend/images/abajour-tahina1709501623798.png b/Backend/images/abajour-tahina1709501623798.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709501623798.png differ diff --git a/Backend/images/abajour-tahina1709501850973.png b/Backend/images/abajour-tahina1709501850973.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709501850973.png differ diff --git a/Backend/images/abajour-tahina1709502929418.png b/Backend/images/abajour-tahina1709502929418.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709502929418.png differ diff --git a/Backend/images/abajour-tahina1709503059776.png b/Backend/images/abajour-tahina1709503059776.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709503059776.png differ diff --git a/Backend/images/abajour-tahina1709503099674.png b/Backend/images/abajour-tahina1709503099674.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709503099674.png differ diff --git a/Backend/images/abajour-tahina1709503189922.png b/Backend/images/abajour-tahina1709503189922.png new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/Backend/images/abajour-tahina1709503189922.png differ diff --git a/Backend/images/appartement-paris-v1708963871623.png b/Backend/images/appartement-paris-v1708963871623.png new file mode 100644 index 000000000..d5784d495 Binary files /dev/null and b/Backend/images/appartement-paris-v1708963871623.png differ diff --git a/Backend/images/appartement-paris-v1709500836863.png b/Backend/images/appartement-paris-v1709500836863.png new file mode 100644 index 000000000..d5784d495 Binary files /dev/null and b/Backend/images/appartement-paris-v1709500836863.png differ diff --git a/Backend/images/appartement-paris-v1709501108931.png b/Backend/images/appartement-paris-v1709501108931.png new file mode 100644 index 000000000..d5784d495 Binary files /dev/null and b/Backend/images/appartement-paris-v1709501108931.png differ diff --git a/Backend/images/appartement-paris-v1709673875524.png b/Backend/images/appartement-paris-v1709673875524.png new file mode 100644 index 000000000..d5784d495 Binary files /dev/null and b/Backend/images/appartement-paris-v1709673875524.png differ diff --git a/Backend/images/appartement-paris-x1708963747418.png b/Backend/images/appartement-paris-x1708963747418.png new file mode 100644 index 000000000..9d5f5cbde Binary files /dev/null and b/Backend/images/appartement-paris-x1708963747418.png differ diff --git a/Backend/images/appartement-paris-x1708963975367.png b/Backend/images/appartement-paris-x1708963975367.png new file mode 100644 index 000000000..9d5f5cbde Binary files /dev/null and b/Backend/images/appartement-paris-x1708963975367.png differ diff --git a/Backend/images/appartement-paris-x1709499509167.png b/Backend/images/appartement-paris-x1709499509167.png new file mode 100644 index 000000000..9d5f5cbde Binary files /dev/null and b/Backend/images/appartement-paris-x1709499509167.png differ diff --git a/Backend/images/appartement-paris-x1709500846437.png b/Backend/images/appartement-paris-x1709500846437.png new file mode 100644 index 000000000..9d5f5cbde Binary files /dev/null and b/Backend/images/appartement-paris-x1709500846437.png differ diff --git a/Backend/images/appartement-paris-x1709501262589.png b/Backend/images/appartement-paris-x1709501262589.png new file mode 100644 index 000000000..9d5f5cbde Binary files /dev/null and b/Backend/images/appartement-paris-x1709501262589.png differ diff --git a/Backend/images/appartement-paris-x1709501616714.png b/Backend/images/appartement-paris-x1709501616714.png new file mode 100644 index 000000000..9d5f5cbde Binary files /dev/null and b/Backend/images/appartement-paris-x1709501616714.png differ diff --git a/Backend/images/appartement-paris-x1709502939012.png b/Backend/images/appartement-paris-x1709502939012.png new file mode 100644 index 000000000..9d5f5cbde Binary files /dev/null and b/Backend/images/appartement-paris-x1709502939012.png differ diff --git a/Backend/images/appartement-paris-xviii1709499380026.png b/Backend/images/appartement-paris-xviii1709499380026.png new file mode 100644 index 000000000..9d0e54cce Binary files /dev/null and b/Backend/images/appartement-paris-xviii1709499380026.png differ diff --git a/Backend/images/appartement-paris-xviii1709500856352.png b/Backend/images/appartement-paris-xviii1709500856352.png new file mode 100644 index 000000000..9d0e54cce Binary files /dev/null and b/Backend/images/appartement-paris-xviii1709500856352.png differ diff --git a/Backend/images/appartement-paris-xviii1709501117496.png b/Backend/images/appartement-paris-xviii1709501117496.png new file mode 100644 index 000000000..9d0e54cce Binary files /dev/null and b/Backend/images/appartement-paris-xviii1709501117496.png differ diff --git a/Backend/images/bar-lullaby-paris1708963665632.png b/Backend/images/bar-lullaby-paris1708963665632.png new file mode 100644 index 000000000..953b074f8 Binary files /dev/null and b/Backend/images/bar-lullaby-paris1708963665632.png differ diff --git a/Backend/images/bar-lullaby-paris1708963728327.png b/Backend/images/bar-lullaby-paris1708963728327.png new file mode 100644 index 000000000..953b074f8 Binary files /dev/null and b/Backend/images/bar-lullaby-paris1708963728327.png differ diff --git a/Backend/images/bar-lullaby-paris1709499305172.png b/Backend/images/bar-lullaby-paris1709499305172.png new file mode 100644 index 000000000..953b074f8 Binary files /dev/null and b/Backend/images/bar-lullaby-paris1709499305172.png differ diff --git a/Backend/images/finn-QhjgAniliuY-unsplash_11709215048916.png b/Backend/images/finn-QhjgAniliuY-unsplash_11709215048916.png new file mode 100644 index 000000000..f1aa6750a Binary files /dev/null and b/Backend/images/finn-QhjgAniliuY-unsplash_11709215048916.png differ diff --git a/Backend/images/hotel-first-arte-new-delhi1709500866933.png b/Backend/images/hotel-first-arte-new-delhi1709500866933.png new file mode 100644 index 000000000..9040b6598 Binary files /dev/null and b/Backend/images/hotel-first-arte-new-delhi1709500866933.png differ diff --git a/Backend/images/hotel-first-arte-new-delhi1709501276956.png b/Backend/images/hotel-first-arte-new-delhi1709501276956.png new file mode 100644 index 000000000..9040b6598 Binary files /dev/null and b/Backend/images/hotel-first-arte-new-delhi1709501276956.png differ diff --git a/Backend/images/hotel-first-arte-new-delhi1709502813664.png b/Backend/images/hotel-first-arte-new-delhi1709502813664.png new file mode 100644 index 000000000..9040b6598 Binary files /dev/null and b/Backend/images/hotel-first-arte-new-delhi1709502813664.png differ diff --git a/Backend/images/la-balisiere1708963798008.png b/Backend/images/la-balisiere1708963798008.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1708963798008.png differ diff --git a/Backend/images/la-balisiere1709499369952.png b/Backend/images/la-balisiere1709499369952.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709499369952.png differ diff --git a/Backend/images/la-balisiere1709500879174.png b/Backend/images/la-balisiere1709500879174.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709500879174.png differ diff --git a/Backend/images/la-balisiere1709501245756.png b/Backend/images/la-balisiere1709501245756.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709501245756.png differ diff --git a/Backend/images/la-balisiere1709501865919.png b/Backend/images/la-balisiere1709501865919.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709501865919.png differ diff --git a/Backend/images/la-balisiere1709502747310.png b/Backend/images/la-balisiere1709502747310.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709502747310.png differ diff --git a/Backend/images/la-balisiere1709502805265.png b/Backend/images/la-balisiere1709502805265.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709502805265.png differ diff --git a/Backend/images/la-balisiere1709503705323.png b/Backend/images/la-balisiere1709503705323.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709503705323.png differ diff --git a/Backend/images/la-balisiere1709673649251.png b/Backend/images/la-balisiere1709673649251.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709673649251.png differ diff --git a/Backend/images/la-balisiere1709673669173.png b/Backend/images/la-balisiere1709673669173.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709673669173.png differ diff --git a/Backend/images/la-balisiere1709673947177.png b/Backend/images/la-balisiere1709673947177.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709673947177.png differ diff --git a/Backend/images/la-balisiere1709673983979.png b/Backend/images/la-balisiere1709673983979.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709673983979.png differ diff --git a/Backend/images/la-balisiere1709673987773.png b/Backend/images/la-balisiere1709673987773.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709673987773.png differ diff --git a/Backend/images/la-balisiere1709674089343.png b/Backend/images/la-balisiere1709674089343.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709674089343.png differ diff --git a/Backend/images/la-balisiere1709674174587.png b/Backend/images/la-balisiere1709674174587.png new file mode 100644 index 000000000..8848c50ca Binary files /dev/null and b/Backend/images/la-balisiere1709674174587.png differ diff --git a/Backend/images/le-coteau-cassis1709499362801.png b/Backend/images/le-coteau-cassis1709499362801.png new file mode 100644 index 000000000..4b4210985 Binary files /dev/null and b/Backend/images/le-coteau-cassis1709499362801.png differ diff --git a/Backend/images/le-coteau-cassis1709500766511.png b/Backend/images/le-coteau-cassis1709500766511.png new file mode 100644 index 000000000..4b4210985 Binary files /dev/null and b/Backend/images/le-coteau-cassis1709500766511.png differ diff --git a/Backend/images/le-coteau-cassis1709501695660.png b/Backend/images/le-coteau-cassis1709501695660.png new file mode 100644 index 000000000..4b4210985 Binary files /dev/null and b/Backend/images/le-coteau-cassis1709501695660.png differ diff --git a/Backend/images/le-coteau-cassis1709502155511.png b/Backend/images/le-coteau-cassis1709502155511.png new file mode 100644 index 000000000..4b4210985 Binary files /dev/null and b/Backend/images/le-coteau-cassis1709502155511.png differ diff --git a/Backend/images/le-coteau-cassis1709502792986.png b/Backend/images/le-coteau-cassis1709502792986.png new file mode 100644 index 000000000..4b4210985 Binary files /dev/null and b/Backend/images/le-coteau-cassis1709502792986.png differ diff --git a/Backend/images/restaurant-sushisen-londres1708964320915.png b/Backend/images/restaurant-sushisen-londres1708964320915.png new file mode 100644 index 000000000..9ef5faed7 Binary files /dev/null and b/Backend/images/restaurant-sushisen-londres1708964320915.png differ diff --git a/Backend/images/restaurant-sushisen-londres1708997371330.png b/Backend/images/restaurant-sushisen-londres1708997371330.png new file mode 100644 index 000000000..9ef5faed7 Binary files /dev/null and b/Backend/images/restaurant-sushisen-londres1708997371330.png differ diff --git a/Backend/images/restaurant-sushisen-londres1708997483061.png b/Backend/images/restaurant-sushisen-londres1708997483061.png new file mode 100644 index 000000000..9ef5faed7 Binary files /dev/null and b/Backend/images/restaurant-sushisen-londres1708997483061.png differ diff --git a/Backend/images/restaurant-sushisen-londres1708997581729.png b/Backend/images/restaurant-sushisen-londres1708997581729.png new file mode 100644 index 000000000..9ef5faed7 Binary files /dev/null and b/Backend/images/restaurant-sushisen-londres1708997581729.png differ diff --git a/Backend/images/restaurant-sushisen-londres1709049443315.png b/Backend/images/restaurant-sushisen-londres1709049443315.png new file mode 100644 index 000000000..9ef5faed7 Binary files /dev/null and b/Backend/images/restaurant-sushisen-londres1709049443315.png differ diff --git a/Backend/images/restaurant-sushisen-londres1709209529072.png b/Backend/images/restaurant-sushisen-londres1709209529072.png new file mode 100644 index 000000000..9ef5faed7 Binary files /dev/null and b/Backend/images/restaurant-sushisen-londres1709209529072.png differ diff --git a/Backend/images/restaurant-sushisen-londres1709499527751.png b/Backend/images/restaurant-sushisen-londres1709499527751.png new file mode 100644 index 000000000..9ef5faed7 Binary files /dev/null and b/Backend/images/restaurant-sushisen-londres1709499527751.png differ diff --git a/Backend/images/structures-thermopolis1709501291937.png b/Backend/images/structures-thermopolis1709501291937.png new file mode 100644 index 000000000..16510c087 Binary files /dev/null and b/Backend/images/structures-thermopolis1709501291937.png differ diff --git a/Backend/images/structures-thermopolis1709501632939.png b/Backend/images/structures-thermopolis1709501632939.png new file mode 100644 index 000000000..16510c087 Binary files /dev/null and b/Backend/images/structures-thermopolis1709501632939.png differ diff --git a/FrontEnd/assets/icons/picture.svg b/FrontEnd/assets/icons/picture.svg new file mode 100644 index 000000000..270433e91 --- /dev/null +++ b/FrontEnd/assets/icons/picture.svg @@ -0,0 +1,3 @@ + diff --git a/FrontEnd/assets/images/Malt & Juniper - New York.png b/FrontEnd/assets/images/Malt & Juniper - New York.png new file mode 100644 index 000000000..f1aa6750a Binary files /dev/null and b/FrontEnd/assets/images/Malt & Juniper - New York.png differ diff --git a/FrontEnd/assets/images/abajour-tahina.gif b/FrontEnd/assets/images/abajour-tahina.gif new file mode 100644 index 000000000..b5b314e19 Binary files /dev/null and b/FrontEnd/assets/images/abajour-tahina.gif differ diff --git a/FrontEnd/assets/login.js b/FrontEnd/assets/login.js new file mode 100644 index 000000000..691a3779b --- /dev/null +++ b/FrontEnd/assets/login.js @@ -0,0 +1,100 @@ +const emailUser = document.querySelector('#email'); +const passwordUser = document.querySelector('#password'); +const formulaire = document.querySelector('form'); +const message = document.querySelector('form .erreur'); +const loged = window.localStorage.loged; + + + + +async function validateForm() { + formulaire.addEventListener('submit', async (event) => { + + + event.preventDefault(); + //declarer les variables et recuperer la saisi + let email = emailUser.value; + let password = passwordUser.value; + //affichage console + + if (!email || !password) { + // Gérer l'erreur de validation, par exemple, afficher un message à l'utilisateur + console.log('Veuillez remplir tous les champs obligatoires.'); + message.textContent = 'Veuillez remplir tous les champs obligatoires.'; + return; + } + + + try { + //fetch post + + const response = await fetch('http://localhost:5678/api/users/login', { + + method: 'POST', + headers: { + 'Accept': 'application/json', + 'Content-Type': 'application/json' + }, + body: JSON.stringify({ + email: email, + password: password + }) + }) + if (!response.ok) { + console.log(response.status, 'Unauthorized'); + throw new Error('Non autorisé (Unauthorized). Veuillez vous connecter.', response.status); + } + + const data = await response.json(); + console.log(data); + + + + if (data.token) { + console.log(data.token); + //redirection vers la page d'accueil en mode creation + window.sessionStorage.loged = true; + window.sessionStorage.accessToken = data.token; + console.log(data.token); + window.location.href = 'index.html'; + console.log(window.sessionStorage.loged); + + + } else { + + message.textContent = 'Erreur dans l’identifiant ou le mot de passe'; + message.style.color = 'red'; + window.localStorage.removeItem('token'); + window.sessionStorage.removeItem('token'); + + } + } catch (error) { + // console.log('Error:', error.name, 'Message:', error.message); + if (error instanceof TypeError) { + // La requête a échoué car le service n'est pas joignable + console.log('Le service n\'est pas joignable. Veuillez réessayer plus tard.'); + message.textContent = 'Le service n\'est pas joignable. Veuillez réessayer plus tard.' + + } else { + // Une autre erreur s'est produite + console.log('Une erreur inattendue s\'est produite:', error); + message.textContent = 'Une erreur inattendue s\'est produite.' + + + } + + } + + + }) + +} + + +function init() { + + validateForm(); + +} + +init(); diff --git a/FrontEnd/assets/main.js b/FrontEnd/assets/main.js new file mode 100644 index 000000000..8034e0524 --- /dev/null +++ b/FrontEnd/assets/main.js @@ -0,0 +1,444 @@ + +/************************** recuperer les travaux ******************/ +/** + * recuperation des travaux + * @returns + */ +async function getWorks() { + let url = 'http://localhost:5678/api/works'; + try { + let res = await fetch(url); + console.log(res); + return await res.json(); + } catch (error) { + console.log(error); + } +} +/*************************** recuperer les categories */ +async function getCategories() { + let url = 'http://localhost:5678/api/categories'; + try { + let res = await fetch(url); + console.log(res); + + return await res.json(); + } catch (error) { + console.log(error); + } +} +/********************* boutons par category ************************/ +async function boutonsByCategory() { + + let categories = await getCategories(); + let html = ''; + let htmlCat = ''; + categories.forEach(category => { + let htmlSegment = ``; + html += htmlSegment; + let btn = document.querySelector('.btn'); + btn.id = category.id; + + }); + let container = document.querySelector('.btn-container'); + container.innerHTML = html; + +} + +/******************* filtrer les travaux par categorie**************/ +async function filterWorks() { + let html = ''; + let container = document.querySelector('.gallery'); + + //recuperer les travaux + let works = await getWorks(); + works.forEach(work => { + let htmlSegment = ``; + + html += htmlSegment; + //recuperer categoryId + let btnId = work.categoryId; + }); + + container.innerHTML = html; + + //recuperer les boutons + const buttons = document.querySelectorAll('.btn'); + + // //parcourir les boutons + buttons.forEach(button => { + //ajouter un ecouteur d'evenement pour chaque bouton + button.addEventListener("click", (e) => { + + //recuperer la valeur du bouton clique + const idCategory = e.target.id; + console.log("je me base sur cette id " + idCategory); + + if (idCategory !== "") { + + //filtrer les travaux via la fonction filter + const filteredWorks = works.filter(work => work.categoryId == idCategory); + console.log(" resultat " + filteredWorks); + + //boucle pour afficher les travaux filtres par categorie + renderWorks(filteredWorks); + + } + else if (idCategory == "") { + //afficher tous les travaux + renderWorks(works); + + } + + }) + + }) + + + + +} + +/********************************** afficher les travaux **********/ + +function renderWorks(works) { + + let galery = document.querySelector('.gallery'); + galery.innerHTML = " "; + works.forEach(work => { + let figure = document.createElement("figure"); + let img = document.createElement("img"); + let figcaption = document.createElement("figcaption"); + galery.appendChild(figure); + figure.appendChild(img); + figure.appendChild(figcaption); + img.src = work.imageUrl; + figcaption.innerText = work.title; + }) + + +} + + +/*********************************page en mode creation **********/ +function modeCreation() { + const loged = window.sessionStorage.loged; + const logout = document.querySelector('.login'); + let racine = document.querySelector('body'); + let div = document.createElement('div'); + let title = document.querySelector('#portfolio h2'); + let btnsFilter = document.querySelector('.btn-container'); + + if (loged) { + //creer div pour le mode creation + div.classList.add('creation'); + racine.appendChild(div); + div.innerHTML = ` Mode création`; + + //ajouter le lien modifier + title.innerHTML = `
jpg, png : 4mo max
+