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

Fef #272

Open
wants to merge 51 commits into
base: main
Choose a base branch
from
Open

Fef #272

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
d216dab
appropriation du code
Oct 29, 2023
46705d1
recuperation data
Oct 29, 2023
5418f64
complement data article + attributs aria + evenements + validateur AC…
Oct 29, 2023
adfcc8e
url page detail revue + renommage et ajouts de fichiers.js pour meill…
Oct 29, 2023
aae3a97
affichage photograph header sur page photograph.html
Oct 29, 2023
1e5c718
factory pattern
Oct 30, 2023
c6937c6
simplification factory pattern
Oct 30, 2023
8c5a6aa
ajout des galleries
Oct 30, 2023
731fee5
revue style passage grid a flex + nettoyage css
Oct 30, 2023
cfd194a
creation style listbox
Oct 30, 2023
23f0f26
fin de style lightbox + compartimentation fichier js pour la lightbox
Oct 30, 2023
d18a336
function fetch centralisee + renommage balise div en article pour fic…
Oct 30, 2023
70da80d
fonction recup id url parameter dans dossiers utils
Oct 30, 2023
ed58cd0
renommage function photographerDetailsHeaderTemplate
Oct 30, 2023
1b2d947
renommage fonctions + regroupement fonctions utiles + reagencement or…
Oct 31, 2023
79e3f32
decoupage fichiers css + renommage fichiers js
Oct 31, 2023
313de04
listbox au clavier
Oct 31, 2023
8cb9608
condition ternaire pour listBox pour meilleure lisibilite
Oct 31, 2023
6509254
simplification template photographer
Nov 1, 2023
774f951
remplacement des images
Nov 1, 2023
9491ba0
revue style conforme figma
Nov 1, 2023
84f95d4
style legendes images gallerie + correction erreur nom images dans la…
Nov 1, 2023
525f9d9
implementation video
Nov 1, 2023
50c527d
extraction createMediaElement + controles video enleves
Nov 1, 2023
ff95868
accessibilite clavier terminee pour listbox
Nov 2, 2023
286affb
implementation modal formulaire
Nov 2, 2023
57c56a3
fin du formulaire avec son accessibilite
Nov 2, 2023
344a914
recuperation champs formulaire dans les logs + revue accessibilite form
Nov 2, 2023
89f3a0c
ajout fleche dropdown listbox
Nov 2, 2023
a835fca
logique du tri sans logique modulaire
Nov 3, 2023
8556c2c
renommage fichier tri + ajout tri clavier
Nov 3, 2023
01098f4
reagencement code + revue choix tri listbox
Nov 3, 2023
9eab371
incrementation like souris+clavier
Nov 3, 2023
ca2b6d2
cumul dynamique total likes
Nov 3, 2023
ceb197c
style de la popularity-section + ajout de console.log pour le tri date
Nov 4, 2023
ce29e91
amelioration semantique media
Nov 4, 2023
621280c
layout ligthbox + ouverture-fermeture modale
Nov 4, 2023
621f6f4
logique caroussel 1er jet
Nov 4, 2023
1ecbcee
revue dimensions image gallerie + zone cliquabilite d un media
Nov 4, 2023
a36f7b3
logique caroussel
Nov 4, 2023
2477165
ajout de fonctions utilitaires
Nov 4, 2023
f4c837f
accessibilite lightbox
Nov 5, 2023
693648e
control des champs formulaires + accessibilite
Nov 5, 2023
6e266d9
replacement focus apres fermeture modal
Nov 5, 2023
ea8210e
ajustement confirmation form
Nov 5, 2023
93826bf
navigation lightbox fleches clavier
Nov 5, 2023
72fae30
ameliorations suite wave checking
Nov 6, 2023
26d8cc9
ajout des evenements dans le js et non dans le html
Nov 8, 2023
512c19e
correction erreurs wave sur formulaire et lightbox
Nov 8, 2023
bedabf1
corrections eslint
Nov 8, 2023
19f806c
eslint comma
Nov 8, 2023
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
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": "airbnb-base",
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
}
}
Empty file added assets/captions.vtt
Empty file.
Binary file added assets/galleries/Adventure Door, India.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/galleries/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/galleries/Animals_Puppiness.mp4
Binary file not shown.
Binary file added assets/galleries/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.
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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/Art_Wooden_Horse_Sculpture.mp4
Binary file not shown.
Binary file added assets/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/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/galleries/Event_SeasideWedding.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/galleries/Event_Sparklers.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/galleries/Event_VentureConference.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/galleries/Event_WeddingGazebo.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/galleries/Fashion_Pattern_on_Pattern.jpg
Binary file added assets/galleries/Fashion_Urban_Jungle.jpg
Binary file added assets/galleries/Fashion_Wings.jpg
Binary file added assets/galleries/Fashion_Yellow_Beach.jpg
Binary file added assets/galleries/Portrait_AfternoonBreak.jpg
Binary file added assets/galleries/Portrait_Alexandra.jpg
Binary file added assets/galleries/Portrait_Background.jpg
Binary file added assets/galleries/Portrait_Nora.jpg
Binary file added assets/galleries/Portrait_Shaw.jpg
Binary file added assets/galleries/Portrait_Sunkissed.jpg
Binary file added assets/galleries/Portrait_Wednesday.jpg
Binary file added assets/galleries/Sport_2000_with_8.jpg
Binary file added assets/galleries/Sport_Butterfly.jpg
Binary file added assets/galleries/Sport_Jump.jpg
Binary file added assets/galleries/Sport_Next_Hold.jpg
Binary file added assets/galleries/Sport_Race_End.jpg
Binary file added assets/galleries/Sport_Sky_Cross.jpg
Binary file added assets/galleries/Sport_Tricks_in_the_air.mp4
Binary file not shown.
Binary file added assets/galleries/TracyGalindo.jpg
Binary file added assets/galleries/Travel_Adventure_Door.jpg
Binary file added assets/galleries/Travel_Bike_and_Stair.jpg
Binary file added assets/galleries/Travel_Boat_Wanderer.jpg
Binary file added assets/galleries/Travel_Bridge_into_Forest.jpg
Binary file added assets/galleries/Travel_HillsideColor.jpg
Binary file added assets/galleries/Travel_Lonesome.jpg
Binary file added assets/galleries/Travel_On_the_Road.jpg
Binary file added assets/galleries/Travel_OpenMountain.jpg
Binary file added assets/galleries/Travel_Outdoor_Baths.jpg
Binary file added assets/galleries/Travel_Road_into_Hill.jpg
Binary file added assets/galleries/Travel_Rock_Mountains.mp4
Binary file not shown.
Binary file added assets/galleries/Travel_SunsetonCanals.jpg
Binary file added assets/galleries/Travel_Tower.jpg
Binary file added assets/galleries/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
139 changes: 139 additions & 0 deletions css/contactForm.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/* ****************** START MODAL ****************** */
#contact_modal {
display: none;
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 3;
}

#contact_modal.visible {
display: block;
}

.modal-contact {
width: 669px;
border-radius: 5px;
background-color: #DB8876;
padding: 35px;
margin: auto;
animation: modalopen 400ms ease;
}

#contact_modal.visible {
display: block;
}

.modal-contact .header {
display: flex;
justify-content: space-between;
align-items: baseline;
}

.modal-contact img {
font-size: 72px;
}

.modal-contact .header button {
background-color: transparent;
border: none;
}

.modal-contact h2 {
font-size: 4rem;
font-weight: normal;
margin-block-start: 0;
}

form {
display: flex;
width: 100%;
flex-direction: column;
align-items: flex-start;
}

form label {
color: #312E2E;
font-size: 2.25rem;
}

form div {
display: flex;
flex-direction: column;
width: 100%;
align-items: self-start;
margin-bottom: 26px;
}

form input {
width: 100%;
height: 68px;
border: none;
border-radius: 5px;
margin: 10px 0;
}

form textarea {
width: 100%;
height: 170px;
margin-bottom: 20px;
}

.contact_button,
#contact_button {
font-size: 20px;
font-weight: bold;
color: white;
padding: 11px;
width: 170px;
height: 70px;
border: none;
background-color: var(--primary-color);
border-radius: 5px;
transition: background-color 400ms ease;
}

.contact_button:hover,
.contact_button:focus,
#contact_button :hover,
#contact_button :focus {
background-color: var(--secondary-color);
}

/* Gestion des erreurs */
.text-control {
margin: 0;
padding: 8px;
width: 100%;
border-radius: 8px;
font-size: 20px;
height: 48px;
}

/* Confirmation soumission */
#confirm {
display: none;
}

#confirm.active {
position: absolute;
left: 50%;
transform: translate(-50%, 50%);
display: block;
}

#confirm .closeBtn {
text-align: end;
}

#confirm button {
background-color: transparent;
border: none;
}

.confirmText {
text-align: center;
}

/* ****************** END MODAL ****************** */
7 changes: 7 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@import url("variables.css");
@import url("main.css");
@import url("photographerProfile.css");
@import url("photographersList.css");
@import url("contactForm.css");
@import url("lightbox.css");
@import url("listBox.css");
61 changes: 61 additions & 0 deletions css/lightbox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#lightbox_modal {
display: none;
width: 1253px;
height: auto;
background-color: white;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 3;
}

#lightbox_modal.visible {
display: block;
}

.lightbox-media img,
.lightbox-media video {
width: 1000px;
height: 800px;
display: block;
margin: 0 auto;
object-fit: contain;
}

#prevMedia,
#nextMedia,
#closeLightbox {
position: absolute;
top: 40%;
background-color: transparent;
border: none;
color: var(--primary-color);
font-weight: bold;
font-size: 48px;
}

#prevMedia {
left: 10px;
}

#prevMedia:disabled,
#nextMedia:disabled {
color: gray;
cursor: not-allowed;
}

#nextMedia {
right: 10px;
}

#closeLightbox {
top: 0;
right: 10px;
}
#lightbox_modal figcaption{
font-size: 24px;
color: var(--primary-color);
text-align: center;
padding-top: 10px;
}
45 changes: 45 additions & 0 deletions css/listBox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/* ****************** START DE LA LISTBOX ****************** */
.custom-select {
position: relative;
display: inline-block;
}

#selectOptions {
display: none;
position: absolute;
background-color: var(--primary-color);
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
z-index: 1;
border-radius: 5px;
}

#selectOptions li {
padding: 10px;
cursor: pointer;
color: white;
border-bottom: 1px white solid;
}

#selectOptions li:last-child {
border-bottom: none;
}

#selectOptions li:hover {
background-color: var(--secondary-color);
border-bottom: 1px solid var(--secondary-color);
}

#sortSelect{
background-color: var(--primary-color);
color: aliceblue;
border: none;
border-radius: 5px;
padding: 5px;
font-size: 18px;
}

.custom-select[aria-expanded="true"] #selectOptions {
display: block;
}

/* ****************** END DE LA LISTBOX ****************** */
93 changes: 93 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
body {
font-family: "DM Sans", sans-serif;
padding: 0;
box-sizing: border-box;
max-width: 1440px;
margin: auto;
}

::after,
::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}

ul {
list-style: none;
padding: 0;
margin: 0;
}

.container {
margin: 20px;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
height: 90px;
}

h1 {
color: var(--primary-color);
}

.logo {
height: 50px;
}

button {
cursor: pointer;
}

img,
video {
object-fit: cover;
}

/* ************ Start Affichage modal ************ */
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2;
}

body.modal-open {
overflow: hidden;
}

.overlay.visible {
display: block;
}

@keyframes modalopen {
from {
opacity: 0;
transform: translateY(-150px);
}

to {
opacity: 1;
}
}

/* ************ End Affichage modal ************ */
.required {
color: black;
/* margin-left: 5px; */
}

/* debugg */
/* *:focus{
font-size: 500px;
} */
/* *{
border: 1px red solid;
} */
Loading