-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3eb0159
commit 5177f0f
Showing
7 changed files
with
249 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.footer { | ||
font-size: 0.8rem; | ||
background-color: black; | ||
color: gray; | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(300px, max-content)); | ||
justify-content: space-around; | ||
margin-top: 5rem; | ||
padding: 1rem; | ||
} | ||
|
||
.footer a { | ||
color: gray; | ||
cursor: pointer; | ||
text-decoration: underline; | ||
} | ||
|
||
.footer-item { | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.footer-contact { | ||
display: inline-flex; | ||
align-items: center; | ||
} | ||
|
||
.footer-contact img { | ||
filter: contrast(0.1); | ||
height: 1.4rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React, { useEffect, useState } from "react" | ||
import './Footer.css' | ||
import contact from '../../../resources/images/contact.svg' | ||
import { UrlService } from "../service/UrlService.ts" | ||
import GeneralTermsAndConditions from "./GeneralTermsAndConditions.tsx" | ||
|
||
export default function Footer() { | ||
const [customerFrontendUrl, setCustomerFrontendUrl] = useState<String | undefined>(undefined) | ||
const [producerFrontendUrl, setProducerFrontendUrl] = useState<String | undefined>(undefined) | ||
const [generalTermsAndConditionsShown, setGeneralTermsAndConditionsShown] = useState<boolean>(false) | ||
|
||
useEffect(() => { | ||
const loadUrls = async () => { | ||
const urlService = new UrlService() | ||
setCustomerFrontendUrl(await urlService.getCustomerFrontentUrl()) | ||
setProducerFrontendUrl(await urlService.getProducerFrontentUrl()) | ||
} | ||
loadUrls() | ||
}) | ||
|
||
function displayGeneralTermsAndConditions() { | ||
if (generalTermsAndConditionsShown) { | ||
return <GeneralTermsAndConditions closeCallback={() => setGeneralTermsAndConditionsShown(false)}/> | ||
} | ||
return <></> | ||
} | ||
|
||
return <> | ||
<div className="footer"> | ||
<div> | ||
<div className="footer-item"><a onClick={() => setGeneralTermsAndConditionsShown(true)}>Conditions générales de vente</a></div> | ||
<div className="footer-item"><a href={customerFrontendUrl}>Espace clients</a></div> | ||
<div className="footer-item"><a href={producerFrontendUrl}>Espace éleveurs</a></div> | ||
</div> | ||
<div className="footer-item"> | ||
<div>SAS ESTEBEN</div> | ||
<div>5 rue des Marronniers 57580 BECHY</div> | ||
<div>Email : <a href="mailto:[email protected]">[email protected]</a></div> | ||
<div className="footer-contact"> | ||
<div>Téléphone : </div> | ||
<img src={contact}/> | ||
</div> | ||
<div>Siren : 901293399</div> | ||
<div>N° TVA : FR6890129339900019</div> | ||
</div> | ||
<div className="footer-item"> | ||
<div>Icones par <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> sur <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div> | ||
</div> | ||
</div> | ||
{displayGeneralTermsAndConditions()} | ||
</> | ||
} |
67 changes: 67 additions & 0 deletions
67
frontend/app/src/domains/commons/components/GeneralTermsAndConditions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import React, { useState } from "react" | ||
import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle } from "@mui/material"; | ||
|
||
export default function GeneralTermsAndConditions({closeCallback: closeCallback}) { | ||
|
||
return <> | ||
<Dialog | ||
fullScreen | ||
open | ||
onClose={closeCallback} | ||
aria-labelledby="responsive-dialog-title" | ||
> | ||
<DialogTitle id="responsive-dialog-title">Conditions générales d'utilisation</DialogTitle> | ||
<DialogContent> | ||
<DialogContentText> | ||
<h2>Description du service</h2> | ||
<div> | ||
ViandeEnDirect.eu est un service de vente et de livraison de produits alimentaires fermiers. | ||
</div> | ||
|
||
<h2>Livraison de la marchandise</h2> | ||
<div> | ||
La livraison de la marchandise est faite au lieu et à la date définie lors de la commande sur le site ViandeEnDirect.eu. | ||
|
||
Le vendeur et client s'engagent à se présenter au rendez-vous de livraison à l'adresse, à la date et aux horaires indiqués lors de la commande. | ||
<ul> | ||
<li> | ||
Si le client ne se présente au rendez-vous de livraison, la marchandise sera acheminée chez le vendeur et congelée. | ||
Le client pourra se rendre à l'adresse du vendeur pour récupérer sa marchandise jusqu'à 48h après le rendez-vous de livraison. | ||
Au delà du délai de 48h, la vente sera annulée, le montant d'achat sera remboursé à hauteur de 50%. | ||
</li> | ||
<li> | ||
Si le vendeur ne se présente pas au rendez-vous de livraison, il s'engage à prévenir le client pour convenir d'un autre rendez-vous de livraison. | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<h2>Réglement</h2> | ||
<div> | ||
Sauf mention explicite sur la présentation du produit, toute commande ne sera validée qu'après le réglement de la commande sur le site ViandeEnDirect.eu. | ||
</div> | ||
|
||
<h2>Respect de la chaîne du froid</h2> | ||
<div> | ||
Pour les produits frais vendus sur ViandeEnDirect.eu : | ||
<ul> | ||
<li>Le vendeur s'engage à respecter la chaîne du froid de la production à la livraison de la marchandise.</li> | ||
<li>Le client s'engage à respecter la chaîne du froid dès réception de la marchandise et jusqu'à sa consommation.</li> | ||
</ul> | ||
</div> | ||
|
||
<h2>Aucun retour de marchandise</h2> | ||
<div> | ||
Après réception de la marchandise par le client, tout retour de la marchandise au vendeur est impossible. | ||
</div> | ||
|
||
|
||
</DialogContentText> | ||
</DialogContent> | ||
<DialogActions> | ||
<Button autoFocus onClick={closeCallback}> | ||
Fermer | ||
</Button> | ||
</DialogActions> | ||
</Dialog> | ||
</> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.