This commit is contained in:
Yacine Aden 2024-04-18 12:31:00 +02:00
parent b13fdbdfd7
commit 44c39856f2
7 changed files with 104 additions and 6 deletions

41
contact.html Normal file
View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css"
>
<title>Document</title>
</head>
<body>
<div class="container">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="img/logo.png">
</a>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbaryacine">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbaryacine" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item">
<a href="mario.html">mario</a>
</a>
<a class="navbar-item">
<a href="splatoon.html">splatoon</a>
</a>
<a class="navbar-item">
<a href="rayman.html">rayman</a>
</a>
</div>
<div class="navbar-end">
</body>
</html>

21
css/SCRIPT.JS Normal file
View File

@ -0,0 +1,21 @@
// TO DO
$(document).ready(function() {
// Check for click events on the navbar burger icon
$(".navbar-burger").click(function() {
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
$(".navbar-burger").toggleClass("is-active");
$(".navbar-menu").toggleClass("is-active");
});
}
);
document.addEventListener("DOMContentLoaded", function() {
const switchTheme = document.querySelector("#switch");
switchTheme.addEventListener("click", function () {
document.body.classList.toggle("dark-mode");
});
});

View File

@ -2,6 +2,25 @@
margin: 0;
padding: 0;
}
body{
background-image: url(background.png);
:root{
--bg-color: #fff;
--primary-text-color: #222;
--secondary-text-color: #616060;
}
body {
background: var(--bg-color);
}
.content {
color: var(--primary-text-color);
text-align: center;
}
.content p {
color: var(--secondary-text-color);
}
.dark-mode {
--bg-color: #3e4c59;
--primary-text-color: #fff;
--secondary-text-color: #ddd;
}

View File

@ -8,7 +8,7 @@
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css"
>
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/style.css">
</head>
@ -70,5 +70,22 @@
</nav>
<h1>home page</h1>
</div>
<br>
<div class="switch">
<input type="checkbox" id="switch" /><br>
<label for="switch">
<i class="fas fa-sun"></i>
<i class="fas fa-moon"></i>
<span class="ball"></span>
</label>
</div>
<script>
const switchTheme = document.querySelector("#switch");
switchTheme.addEventListener("click", function () {
document.body.classList.toggle("dark-mode");
});
</script>
</body>
</html>

View File

@ -27,7 +27,7 @@
<div class="navbar-start">
<a class="navbar-item">
<a href="mario.html">mario</a>
<a href="index.html">homecome</a>
</a>
<a class="navbar-item">
<a href="splatoon.html">splatoon</a>

View File

@ -33,7 +33,7 @@ l<!DOCTYPE html>
<a href="splatoon.html">splatoon</a>
</a>
<a class="navbar-item">
<a href="rayman.html">rayman</a>
<a href="index.html">homecome</a>
</a>
</div>
<div class="navbar-end">

View File

@ -31,7 +31,7 @@
<a href="mario.html">mario</a>
</a>
<a class="navbar-item">
<a href="splatoon.html">splatoon</a>
<a href="index.html">splatoon</a>
</a>
<a class="navbar-item">
<a href="rayman.html">rayman</a>