Skip to content
Snippets Groups Projects
Commit 1f8dd6de authored by Janis Roth's avatar Janis Roth
Browse files

formatted styles correctly

parent 4d4e95d0
Branches
No related tags found
No related merge requests found
...@@ -599,3 +599,24 @@ body { ...@@ -599,3 +599,24 @@ body {
font-size: 1.8rem; font-size: 1.8rem;
} }
} }
.download-button {
padding: 12px 24px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.download-button:hover {
background-color: #0056b3;
transform: translateY(-2px);
}
.download-button:active {
transform: translateY(1px);
}
...@@ -16,9 +16,8 @@ ...@@ -16,9 +16,8 @@
</a> </a>
<button class="burger-menu" onclick="toggleMenu()">&#9776;</button> <button class="burger-menu" onclick="toggleMenu()">&#9776;</button>
<div class="menu" id="navLinks"> <div class="menu" id="navLinks">
<div class="hidemenu" id="toggleMenu"> <div class="hidemenu">
<a href="index.html" class="active">Home</a> <a href="index.html" class="active">Home</a>
<a href="./html/About_us.html">About us</a> <a href="./html/About_us.html">About us</a>
<a href="./html/Projektinformationen.html">Projektinformationen</a> <a href="./html/Projektinformationen.html">Projektinformationen</a>
...@@ -40,32 +39,11 @@ ...@@ -40,32 +39,11 @@
<div class="hero-text"> <div class="hero-text">
<h1>Coora<br>Die App für Fussballvereine</h1> <br> <h1>Coora<br>Die App für Fussballvereine</h1> <br>
<a href="./html/Download.html"> <a href="./html/Download.html">
<button class="download-button" style=" <button class="download-button">Download</button>
padding: 12px 24px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
">Download</button>
</a> </a>
</div> </div>
</section> </section>
<style>
.download-button:hover {
background-color: #0056b3;
transform: translateY(-2px);
}
.download-button:active {
transform: translateY(1px);
}
</style>
<br><br> <br><br>
<div class="spacer"> <div class="spacer">
......
...@@ -14,18 +14,21 @@ window.addEventListener('scroll', () => { ...@@ -14,18 +14,21 @@ window.addEventListener('scroll', () => {
} }
}); });
const observer = new IntersectionObserver((entries) => { // Überprüfe, ob `observer` bereits deklariert wurde
entries.forEach(entry => { if (typeof observer === 'undefined') {
if (entry.isIntersecting) { const observer = new IntersectionObserver((entries) => {
entry.target.classList.add('visible'); entries.forEach(entry => {
} if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}); });
});
document.querySelectorAll('.slide-in').forEach((element) => { document.querySelectorAll('.slide-in').forEach((element) => {
observer.observe(element); observer.observe(element);
}); });
}
function toggleMenu() { function toggleMenu() {
document.getElementById("navLinks").classList.toggle("show"); document.getElementById("navLinks").classList.toggle("show");
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment