diff --git a/index.html b/index.html index f26610331b25042fdb58b0e08d73d990e9670beb..c9d7ca9664f81010f2d1de09aec6b7108733b034 100644 --- a/index.html +++ b/index.html @@ -5,46 +5,88 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Ontologie DQA</title> <style> + :root { + --bg-color: #ffffff; + --text-color: #333; + --btn-bg: #007bff; + --btn-hover: #0056b3; + } + + body.dark-mode { + --bg-color: #1e1e1e; + --text-color: #f1f1f1; + --btn-bg: #17a2b8; + --btn-hover: #117a8b; + } + body { font-family: Arial, sans-serif; + background-color: var(--bg-color); + color: var(--text-color); text-align: center; - background-color: #f4f4f4; - color: #333; - padding: 50px; + padding: 20px; + transition: background 0.3s, color 0.3s; } + h1 { - color: #007bff; + font-size: 2em; } - a { + + p { + font-size: 1.2em; + } + + .button { display: inline-block; margin: 10px; padding: 10px 20px; font-size: 1em; color: white; - background-color: #007bff; - text-decoration: none; + background-color: var(--btn-bg); + border: none; border-radius: 5px; + cursor: pointer; + transition: background 0.3s; } - a:hover { - background-color: #0056b3; + + .button:hover { + background-color: var(--btn-hover); + } + + #toggle-mode { + position: absolute; + top: 10px; + right: 10px; + background: none; + border: none; + cursor: pointer; + font-size: 1.5em; } + .copy-message { + display: none; color: green; font-size: 0.9em; - display: none; margin-top: 10px; } </style> </head> <body> + + <button id="toggle-mode">🌙</button> + <h1>Ontologie DQA</h1> <p>Bienvenue sur la page de l'ontologie <strong>DQA</strong>, dédiée à l'évaluation de la qualité des données.</p> - <p><a href="dqa.rdf" download>📥 Télécharger l'ontologie</a></p> - <p><a href="dqa.rdf">🔗 Accéder à l'ontologie</a></p> - <p><a href="#" onclick="copyToClipboard()">📋 Copier le lien</a></p> + + <p><a href="dqa.rdf" download class="button">📥 Télécharger l'ontologie</a></p> + <p><a href="dqa.rdf" class="button">🔗 Accéder à l'ontologie</a></p> + <button class="button" onclick="copyToClipboard()">📋 Copier le lien</button> + <p class="copy-message" id="copy-message">✅ Lien copié dans le presse-papiers !</p> <script> + + function copyToClipboard() { const url = window.location.href + "dqa.rdf"; navigator.clipboard.writeText(url).then(() => { @@ -54,6 +96,12 @@ }, 2000); }); } + + document.getElementById("toggle-mode").addEventListener("click", function() { + document.body.classList.toggle("dark-mode"); + this.textContent = document.body.classList.contains("dark-mode") ? "☀️" : "🌙"; + }); </script> + </body> </html>