Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1 #3

Merged
merged 18 commits into from
Nov 4, 2024
Merged

v1 #3

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
node_modules
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 120,
"endOfLine": "auto"
}
12 changes: 12 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="fr">
<head>
<title>Page non trouvée</title>
<meta charset="utf-8" />
<meta http-equiv="refresh" content="5;url=/" />
</head>
<body>
<h1>Page non trouvée</h1>
<p>Vous serez redirigé vers la page d'accueil dans 5 secondes...</p>
</body>
</html>
47 changes: 44 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,47 @@
# Base de code du projet P6 - Parcours Front-end
![logo-fisheye](assets/images/logo.png "Titre de l'image").

## Démarrer le projet
Ce projet vise à moderniser un site web destiné aux photographes freelances, en le transformant d'un site statique en une plateforme dynamique et interactive pour présenter les portfolios des photographes et faciliter les contacts avec des clients potentiels. Ce site permet aux photographes, de mettre en valeur leur travail et de recevoir des demandes pour des événements ou des tirages.

Rien à installer ici, il suffit d'ouvrir le fichier `index.html`.
## 🔥 Lancer le Projet

1. Cloner le dépôt sur votre machine locale.
2. Ouvrir le projet dans votre éditeur de code.
3. Lancer le fichier `index.html` à l'aide d'un serveur de développement web comme **Live Server**.

## 🎯 Objectif du Projet

Le site actuel, conçu il y a plus de dix ans, est obsolète et nécessite une refonte complète pour :
- Moderniser le design et l'expérience utilisateur.
- Passer d'un site statique à un site dynamique.
- Faciliter la gestion et la présentation des galeries des photographes.


## 📕 Pages et Fonctionnalités

### 1. Page d'Accueil
La page d'accueil propose un aperçu de tous les photographes disponibles :
- **Liste des Photographes** : Chaque photographe est présenté avec son nom, son slogan, sa localisation, son tarif horaire, et une image miniature de son choix.
- **Navigation vers la Page du Photographe** : En cliquant sur la vignette d'un photographe, l'utilisateur est redirigé vers une page individuelle dédiée.

### 2. Page du Photographe
Chaque photographe possède une page dédiée générée dynamiquement contenant :
- **Galerie Multimédia** :
- Une galerie affichant les photos et vidéos du photographe.
- Les vidéos apparaissent avec une image miniature.
- **Interactions avec les Médias** :
- Chaque média dispose d'un titre et d'un compteur de likes.
- Les utilisateurs peuvent liker chaque média, incrémentant ainsi le nombre de likes total du photographe.
- Les médias peuvent être triés par **popularité** ou par **titre**.
- **Affichage en Lightbox** :
- En cliquant sur un média, celui-ci s'ouvre dans une lightbox.
- Une croix permet de fermer la lightbox, et des boutons de navigation permettent de passer d'un média à l'autre.
- La navigation peut également se faire avec les touches fléchées du clavier.
- **Bouton de Contact** :
- Un bouton permettant de contacter le photographe via un formulaire de contact.
- Ce formulaire apparaît dans une modale et comprend des champs pour le nom, l'adresse électronique et le message.
- Actuellement, le contenu du formulaire est affiché dans la console à des fins de test ; l'envoi réel des messages sera implémenté ultérieurement.

## 👩‍💻 Technologies Utilisées

- **HTML/CSS/JavaScript** pour la structure de base, le style et l'interactivité du site.
- **JavaScript dynamique** pour la génération de contenu et les interactions (like, lightbox, tri, etc.).
Binary file added assets/icons/back-arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion assets/icons/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/like-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/like.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/next-arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Animals_Majesty.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Animals_Puppiness.mp4
Binary file not shown.
Binary file added assets/medias/Animals_Rainbow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added assets/medias/Architecture_Connected_Curves.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Architecture_Contrast.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Architecture_Corner_Room.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Architecture_Cross_Bar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Architecture_Dome.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Architecture_Horseshoe.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Architecture_On_a_hill.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Architecture_Water_on_Modern.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Architecture_White_Light.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added assets/medias/Art_Mine.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Art_Purple_light.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Art_Triangle_Man.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Art_Wooden_Horse_Sculpture.mp4
Binary file not shown.
Binary file added assets/medias/Event_18thAnniversary.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Event_BenevidesWedding.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Event_Emcee.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Event_KeyboardCheck.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Event_PintoWedding.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Event_ProductPitch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/medias/Event_SeasideWedding.jpg
Binary file added assets/medias/Event_Sparklers.jpg
Binary file added assets/medias/Event_VentureConference.jpg
Binary file added assets/medias/Event_WeddingGazebo.jpg
Binary file added assets/medias/Fashion_Melody_Red_on_Stripes.jpg
Binary file added assets/medias/Fashion_Pattern_on_Pattern.jpg
Binary file added assets/medias/Fashion_Urban_Jungle.jpg
Binary file added assets/medias/Fashion_Wings.jpg
Binary file added assets/medias/Fashion_Yellow_Beach.jpg
Binary file added assets/medias/Portrait_AfternoonBreak.jpg
Binary file added assets/medias/Portrait_Alexandra.jpg
Binary file added assets/medias/Portrait_Background.jpg
Binary file added assets/medias/Portrait_Nora.jpg
Binary file added assets/medias/Portrait_Shaw.jpg
Binary file added assets/medias/Portrait_Sunkissed.jpg
Binary file added assets/medias/Portrait_Wednesday.jpg
Binary file added assets/medias/Sport_2000_with_8.jpg
Binary file added assets/medias/Sport_Butterfly.jpg
Binary file added assets/medias/Sport_Jump.jpg
Binary file added assets/medias/Sport_Next_Hold.jpg
Binary file added assets/medias/Sport_Race_End.jpg
Binary file added assets/medias/Sport_Sky_Cross.jpg
Binary file added assets/medias/Sport_Tricks_in_the_air.mp4
Binary file not shown.
Binary file added assets/medias/Travel_Adventure_Door.jpg
Binary file added assets/medias/Travel_Bike_and_Stair.jpg
Binary file added assets/medias/Travel_Boat_Wanderer.jpg
Binary file added assets/medias/Travel_Bridge_into_Forest.jpg
Binary file added assets/medias/Travel_HillsideColor.jpg
Binary file added assets/medias/Travel_Lonesome.jpg
Binary file added assets/medias/Travel_On_the_Road.jpg
Binary file added assets/medias/Travel_OpenMountain.jpg
Binary file added assets/medias/Travel_Outdoor_Baths.jpg
Binary file added assets/medias/Travel_Road_into_Hill.jpg
Binary file added assets/medias/Travel_Rock_Mountains.mp4
Binary file not shown.
Binary file added assets/medias/Travel_SunsetonCanals.jpg
Binary file added assets/medias/Travel_Tower.jpg
Binary file added assets/medias/sport_water_tunnel.jpg
Binary file added assets/photographers/EllieRoseWilkens.jpg
Binary file added assets/photographers/MarcelNikolic.jpg
Binary file added assets/photographers/MimiKeel.jpg
Binary file added assets/photographers/NabeelBradford.jpg
Binary file added assets/photographers/RhodeDubois.jpg
Binary file added assets/photographers/TracyGalindo.jpg
73 changes: 73 additions & 0 deletions css/lightbox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#light-box {
position: fixed;
display: none;
z-index: 10;
left: 0;
top: 0;
height: 100vh;
width: 100vw;
justify-content: center;
align-items: center;
background-color: #fff;
}

.light-box__modal {
display: flex;
justify-content: center;
align-items: center;
gap: 3em;
overflow: hidden;
height: fit-content;
}

.light-box__right-side {
display: flex;
top: 0;
margin-top: 0;
position: relative;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 83vh;
}

img.light-box__close-button {
filter: invert(17%) sepia(21%) saturate(7440%) hue-rotate(346deg) brightness(98%) contrast(93%);
align-self: flex-start;
position: fixed;
cursor: pointer;
}

img.light-box__next-arrow {
cursor: pointer;
margin: auto 0;
}

img.light-box__back-arrow {
cursor: pointer;
margin: auto 0;
}

.light-box__content img {
max-width: 80vw;
max-height: 80vh;
-webkit-box-shadow: 5px 0 3px 0 rgba(0, 0, 0, 0.61);
box-shadow: 5px 0 3px 0 rgba(0, 0, 0, 0.61);
border-radius: 5px;
}

.light-box__content h3 {
font-size: 24px;
font-weight: 400;
text-align: left;
color: #901c1c;
}

.light-box__content video {
width: 100%;
height: 80vh;
object-fit: cover;
border-radius: 5px;
-webkit-box-shadow: 5px 0 3px 0 rgba(0, 0, 0, 0.61);
box-shadow: 5px 0 3px 0 rgba(0, 0, 0, 0.61);
}
Loading