update
This commit is contained in:
20
DEV.1.1/Allocation_dynamique/2.Palindromes.c
Normal file
20
DEV.1.1/Allocation_dynamique/2.Palindromes.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
long int dividend;
|
||||
long int divisor;
|
||||
ldiv_t result;
|
||||
|
||||
/*printf("Veuillez saisir votre dividende : ");
|
||||
scanf("%ld", ÷nd);
|
||||
|
||||
printf("Veuillez saisir votre diviseur : ");
|
||||
scanf("%ld", &divisor);
|
||||
*/
|
||||
result = ldiv(dividend, divisor);
|
||||
printf("quotient : %ld\n", result.quot);
|
||||
printf("reste : %ld\n", result.rem);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
66
DEV.1.2/test/index.html
Normal file
66
DEV.1.2/test/index.html
Normal file
@@ -0,0 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Recettes et Chefs</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="navbar">
|
||||
<!-- Checkbox pour le menu hamburger -->
|
||||
<input type="checkbox" id="hamburger-toggle">
|
||||
<label for="hamburger-toggle" class="hamburger">☰</label>
|
||||
<nav class="menu">
|
||||
<a href="#chefs">Les Chefs</a>
|
||||
<a href="#recettes">Nos Recettes</a>
|
||||
<a href="#devenir">Devenir Chef</a>
|
||||
<a href="#connexion">S'inscrire / Se connecter</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<aside class="side-menu">
|
||||
<h3>Les Cuisines</h3>
|
||||
<ul>
|
||||
<li>Asiatique</li>
|
||||
<li class="active">Arabe</li>
|
||||
<li>Française</li>
|
||||
<li>Mexicaine</li>
|
||||
<li>Grecque</li>
|
||||
<li>Indienne</li>
|
||||
<li>Turque</li>
|
||||
<li>Tunisienne</li>
|
||||
<li>Japonaise</li>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
<main>
|
||||
<section id="map">
|
||||
<h2>Les Chefs sur la Carte</h2>
|
||||
<div class="map-container">
|
||||
<div class="location">📍</div>
|
||||
<div class="location">📍</div>
|
||||
<div class="location">📍</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="recettes">
|
||||
<h2>Les Recettes Proposées</h2>
|
||||
<div class="card">
|
||||
<h3>Couscous Marocain</h3>
|
||||
<p>Très bon</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3>Plat Mystérieux</h3>
|
||||
<p>Description à venir...</p>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>© 2024 - Tous droits réservés.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
136
DEV.1.2/test/styles.css
Normal file
136
DEV.1.2/test/styles.css
Normal file
@@ -0,0 +1,136 @@
|
||||
/* Réinitialisation */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
header {
|
||||
background-color: #333;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Menu hamburger */
|
||||
.hamburger {
|
||||
font-size: 24px;
|
||||
cursor: pointer;
|
||||
display: none; /* Masqué par défaut, visible sur mobiles */
|
||||
color: white;
|
||||
}
|
||||
|
||||
#hamburger-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.menu a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menu a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Styles pour le menu hamburger (mobile) */
|
||||
#hamburger-toggle:checked ~ .menu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
left: 0;
|
||||
background: #333;
|
||||
width: 100%;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.menu a {
|
||||
padding: 10px 20px;
|
||||
border-bottom: 1px solid #444;
|
||||
}
|
||||
|
||||
/* Cacher le menu principal par défaut en mode mobile */
|
||||
@media (max-width: 768px) {
|
||||
.hamburger {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Styles du menu latéral */
|
||||
.side-menu {
|
||||
background-color: #f8f8f8;
|
||||
padding: 20px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.side-menu ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.side-menu ul li {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.side-menu ul li.active {
|
||||
font-weight: bold;
|
||||
color: #007BFF;
|
||||
}
|
||||
|
||||
/* Contenu principal */
|
||||
main {
|
||||
margin: 20px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.map-container {
|
||||
background-color: #eaeaea;
|
||||
height: 300px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.location {
|
||||
position: absolute;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
background-color: #333;
|
||||
color: white;
|
||||
}
|
Reference in New Issue
Block a user