From ff8345e8d9f57f113b6c5d8770febff07084ec03 Mon Sep 17 00:00:00 2001 From: Emmanuel Srivastava Date: Wed, 4 Dec 2024 10:13:59 +0100 Subject: [PATCH] update --- DEV.1.1/Allocation_dynamique/2.Palindromes.c | 20 +++ DEV.1.2/test/index.html | 66 +++++++++ DEV.1.2/test/styles.css | 136 +++++++++++++++++++ 3 files changed, 222 insertions(+) create mode 100644 DEV.1.1/Allocation_dynamique/2.Palindromes.c create mode 100644 DEV.1.2/test/index.html create mode 100644 DEV.1.2/test/styles.css diff --git a/DEV.1.1/Allocation_dynamique/2.Palindromes.c b/DEV.1.1/Allocation_dynamique/2.Palindromes.c new file mode 100644 index 0000000..03a161f --- /dev/null +++ b/DEV.1.1/Allocation_dynamique/2.Palindromes.c @@ -0,0 +1,20 @@ +#include +#include + +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; +} diff --git a/DEV.1.2/test/index.html b/DEV.1.2/test/index.html new file mode 100644 index 0000000..f4dcd00 --- /dev/null +++ b/DEV.1.2/test/index.html @@ -0,0 +1,66 @@ + + + + + + Recettes et Chefs + + + +
+ +
+ + + +
+
+

Les Chefs sur la Carte

+
+
📍
+
📍
+
📍
+
+
+ +
+

Les Recettes Proposées

+
+

Couscous Marocain

+

Très bon

+
+
+

Plat Mystérieux

+

Description à venir...

+
+
+
+ + + + diff --git a/DEV.1.2/test/styles.css b/DEV.1.2/test/styles.css new file mode 100644 index 0000000..992c474 --- /dev/null +++ b/DEV.1.2/test/styles.css @@ -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; +}