Skip to content

Commit

Permalink
changement the code
Browse files Browse the repository at this point in the history
  • Loading branch information
IdR3n committed Apr 11, 2024
1 parent 02e90ad commit c60830c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 26 deletions.
35 changes: 27 additions & 8 deletions projet-restorant/src/Compenents/Compenents.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,33 @@
/* Choraire css*/
.footer-container {
display: flex;
justify-content:space-around;
justify-content: space-around;
position: relative; /* Pozisyon ayarı */
padding: 20px;
background-image: url('../image/FooterRestaurant.jpg'); /* Arka plan resminizin yolu */
background-size: 2200px 800px; /* Resmin tam genişlik ve yüksekliği kaplamasını sağlar */
color: rgb(0, 0, 0); /* Metin rengi */
color: rgb(0, 0, 0);
}

/* Yeni arka plan resmi div'i için stil */
.background-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('../image/FooterRestaurant.jpg');
opacity: 0.5;
background-size: cover; /* veya istediğin boyut */
background-repeat: no-repeat;
}

.footer-contact, .footer-hours {
z-index: -1; /* İçeriklerin önünde olmaması için */
}

.footer-content {
z-index: 2; /* Arka planın önünde olmasını sağlar */
display: flex;
justify-content: space-around;
width: 100%;
}

.footer-contact, .footer-hours {
width: 50%;
}
}
31 changes: 17 additions & 14 deletions projet-restorant/src/Compenents/ContactHoraire.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ import "../Compenents/Compenents.css";
const Choraire = () => {
return(
<div className="footer-container">
<div className="footer-contact">
<h2>Contact</h2>
<p> +41 22 000 00 00 </p>
<p>Chef's Restaurant</p>
<p>
Avenue du Projet 11, 1000 Genève
</p>
{/* Arka plan resmi için ayrı bir div */}
<div className="background-image"></div>
{/* İçerik */}
<div className="footer-content">
<div className="footer-contact">
<h2>Contact</h2>
<p> +41 22 000 00 00 </p>
<p>Chef's Restaurant</p>
<p>Avenue du Projet 11, 1000 Genève</p>
</div>
<div className="footer-hours">
<h2>Horaire</h2>
<p>Lundi-Vendredi: 8h30-23h30</p>
<p>Samedi: 10h30-21h30</p>
<p>Dimanche: Fermé</p>
</div>
</div>
</div>
<div className="footer-hours">
<h2>Horaire</h2>
<p>Lundi-Vendredi: 8h30-23h30</p>
<p>Samedi: 10h30-21h30</p>
<p>Dimanche: Fermé</p>
</div>
</div>
);
}
export default Choraire;
8 changes: 4 additions & 4 deletions projet-restorant/src/Compenents/NavBars.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ function Navbars() {
</Navbar>
{/* Sidebar menü */}
<div className={`sidebar ${isOpen ? 'open' : ''}`} style={{zIndex: 1}}><br />
<a href="#">Page D'acceuil</a>
<a href="#">Menu</a>
<a href="#">Reservation</a>
<a href="#">Contact</a>
<a href="/">Page D'acceuil</a>
<a href="/">Menu</a>
<a href="/">Reservation</a>
<a href="/">Contact</a>
</div>
</div>
);
Expand Down

0 comments on commit c60830c

Please sign in to comment.