Compare commits
53 Commits
5cdad1e18e
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
032d40ef47 | ||
![]() |
3fceb2490a | ||
![]() |
9d862eea57 | ||
f41c7b1589 | |||
![]() |
b2b7cfaef7 | ||
a76bf5fb2b | |||
![]() |
1e61ee7223 | ||
![]() |
3b4a2a1218 | ||
0fa9a37b3a | |||
4dda6c16f0 | |||
b28f043fc3 | |||
901be6fde6 | |||
![]() |
d19fd1e1c6 | ||
![]() |
8462f72479 | ||
a35efe4c16 | |||
![]() |
a90941491a | ||
40c80456dd | |||
8e8d68c61c | |||
![]() |
f2f41f6ecb | ||
12ab5c9c29 | |||
668297a1a4 | |||
0e68257a64 | |||
![]() |
3153b437ea | ||
![]() |
e17aab4e00 | ||
![]() |
04b00f38f8 | ||
![]() |
239204677c | ||
![]() |
a2fa71799e | ||
![]() |
bd9dfaa3f5 | ||
![]() |
08bfdea57a | ||
![]() |
b6709c537a | ||
![]() |
7d7e130af3 | ||
![]() |
0d2a9cfb41 | ||
![]() |
3639416d57 | ||
![]() |
0edc084b36 | ||
071343fa20 | |||
![]() |
086c1cd54e | ||
![]() |
0a7b1664be | ||
![]() |
1bfa4322d0 | ||
![]() |
999582ce20 | ||
![]() |
8cc113b643 | ||
![]() |
1323796469 | ||
![]() |
6d64f3a475 | ||
![]() |
7feff18799 | ||
9f664b41f9 | |||
![]() |
5d952e5cd5 | ||
![]() |
90cf15405c | ||
03c0a0feba | |||
![]() |
06d350de21 | ||
e6bacfec3f | |||
f416d86d43 | |||
4e65276c7b | |||
39dba8f0ac | |||
a12612fbe4 |
BIN
Dokumentation/Pflichtenheft.docx
Normal file
BIN
Dokumentation/ProjektDefinition.docx
Normal file
BIN
Dokumentation/ProjektIteration1.docx
Normal file
BIN
Dokumentation/ProjektIteration2.docx
Normal file
44
Javascript/app.js
Normal file
@@ -0,0 +1,44 @@
|
||||
const swiper = new Swiper('.swiper', {
|
||||
direction: 'vertical',
|
||||
loop: true,
|
||||
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
},
|
||||
});
|
||||
|
||||
// Für die Links in der Navbar, dass die Striche beim aktuell geklickten bleiben
|
||||
var navLinks = document.querySelectorAll('.navbar .nav-link');
|
||||
var initialSelected = document.querySelector('.navbar .nav-link[aria-current="page"]');
|
||||
if (initialSelected) {
|
||||
initialSelected.classList.add('selected');
|
||||
}
|
||||
|
||||
navLinks.forEach(function(link) {
|
||||
link.addEventListener('click', function() {
|
||||
// Alle anderen Links zurücksetzen
|
||||
navLinks.forEach(l => l.classList.remove('selected'));
|
||||
// Die 'selected' Klasse zum angeklickten Link hinzufügen
|
||||
link.classList.add('selected');
|
||||
});
|
||||
});
|
||||
|
||||
// Für Preis
|
||||
updatePrice();
|
||||
|
||||
function updatePrice() {
|
||||
const fresserchenSelect = document.getElementById('Fresserchen');
|
||||
const mengeSelect = document.getElementById('Menge');
|
||||
const priceInput = document.getElementById('Preis');
|
||||
const selectedFood = fresserchenSelect.options[fresserchenSelect.selectedIndex];
|
||||
const pricePerUnit = selectedFood.getAttribute('data-price');
|
||||
const quantity = mengeSelect.value;
|
||||
const total = pricePerUnit * quantity;
|
||||
priceInput.value = total.toFixed(2);
|
||||
}
|
||||
|
||||
function showDonationAmount() {
|
||||
const priceInput = document.getElementById('Preis').value;
|
||||
alert('Danke für deine Spende von €' + priceInput + '!');
|
||||
window.location.reload();
|
||||
}
|
BIN
Src/elefant.jpg
Normal file
After Width: | Height: | Size: 271 KiB |
BIN
Src/giraffe.jpg
Normal file
After Width: | Height: | Size: 243 KiB |
BIN
Src/gorilla.jpg
Normal file
After Width: | Height: | Size: 375 KiB |
BIN
Src/loewe.jpg
Normal file
After Width: | Height: | Size: 746 KiB |
BIN
Src/zebra.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
Src/zoowebseite-high-resolution-logo-transparent.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
Src/zoowebseite-high-resolution-logo.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
Src/zoowebseite-transparent.png
Normal file
After Width: | Height: | Size: 78 KiB |
111
Styles/style.css
Normal file
@@ -0,0 +1,111 @@
|
||||
/* Navigation*/
|
||||
.navbar {
|
||||
background-color: #212121 !important;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.navbar .navbar-nav .nav-link {
|
||||
color: #FFFFFF;
|
||||
font-size: 13pt;
|
||||
}
|
||||
|
||||
.navbar-expand-lg .navbar-nav .nav-link {
|
||||
padding-right: 20px !important;
|
||||
}
|
||||
|
||||
.navbar-brand img {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.nav-link.selected::after {
|
||||
visibility: visible;
|
||||
transform: scaleX(1);
|
||||
}
|
||||
|
||||
.nav-link.active, .nav-link:hover, .nav-link:focus {
|
||||
color: #4CAF50;
|
||||
transition: color 0.5s ease;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
position: relative;
|
||||
transition: all 0.3s ease-out;
|
||||
}
|
||||
|
||||
.nav-link::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: #4CAF50;
|
||||
visibility: hidden;
|
||||
transform: scaleX(0);
|
||||
transition: all 0.3s ease-in-out 0s;
|
||||
}
|
||||
|
||||
.nav-link:hover::after, .nav-link:focus::after {
|
||||
visibility: visible;
|
||||
transform: scaleX(1);
|
||||
}
|
||||
/* Navigationsende*/
|
||||
|
||||
|
||||
section {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
#ueberUns {
|
||||
background: linear-gradient(0deg, rgb(0, 159, 155), rgb(33,33,33));
|
||||
}
|
||||
|
||||
#openingHours {
|
||||
background: linear-gradient(180deg, rgb(0, 159, 155), rgb(157, 254, 175));
|
||||
}
|
||||
|
||||
#patenshop {
|
||||
background: linear-gradient(0deg, rgb(255, 255, 255), rgb(157, 254, 175));
|
||||
|
||||
}
|
||||
|
||||
|
||||
.glass {
|
||||
padding: 30px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
|
||||
scale: .8;
|
||||
opacity: 0;
|
||||
animation: fade-in linear forwards;
|
||||
animation-timeline: view();
|
||||
animation-range: entry;
|
||||
}
|
||||
|
||||
.table>:not(caption)>*>* {
|
||||
background-color: transparent !important;
|
||||
border-bottom-width: 0 !important;
|
||||
}
|
||||
|
||||
footer {
|
||||
height: 160px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.swiper {
|
||||
width: 600px;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.swiper-pagination-bullet {
|
||||
background-color: rgba(0, 0, 0, 1) !important
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
to { scale: 1; opacity: 1;}
|
||||
}
|
153
index.html
Normal file
@@ -0,0 +1,153 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="Styles/style.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"/>
|
||||
<title>ZooWebsite</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar sticky-top navbar-expand-lg">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">
|
||||
<img src="Src/zoowebseite-high-resolution-logo-transparent.png" alt="Logo" width="170" height="auto" class="d-inline-block align-text-top">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||||
<div class="navbar-nav ms-auto">
|
||||
<a class="nav-link" aria-current="page" href="#ueberUns">Über Uns</a>
|
||||
<a class="nav-link" href="#openingHours">Öffnungszeiten</a>
|
||||
<a class="nav-link" href="#patenshop">Patenshop</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Über Uns Section -->
|
||||
<section class="position-relative" id="ueberUns">
|
||||
<div class="position-absolute top-50 start-50 translate-middle w-50 text-white">
|
||||
<div class="row align-items-center">
|
||||
<div class="col">
|
||||
<div class="swiper rounded-4">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide"><img src="Src/loewe.jpg" class="img-fluid" alt="Loewe"></div>
|
||||
<div class="swiper-slide"><img src="Src/gorilla.jpg" class="img-fluid" alt="Gorilla"></div>
|
||||
<div class="swiper-slide"><img src="Src/zebra.jpg" class="img-fluid" alt="Zebra"></div>
|
||||
<div class="swiper-slide"><img src="Src/elefant.jpg" class="img-fluid" alt="Elefant"></div>
|
||||
<div class="swiper-slide"><img src="Src/giraffe.jpg" class="img-fluid" alt="Giraffe"></div>
|
||||
</div>
|
||||
<div class="swiper-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h2>Über Uns</h2>
|
||||
<p>Wir sind der beste Zoo aller Zoos Weltweit.<br>
|
||||
Finanziert von the only and only Herrn Shawn Smith.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Öffnungszeiten Section -->
|
||||
<section class="position-relative" id="openingHours">
|
||||
<div class="position-absolute top-50 start-50 translate-middle w-50 glass text-white text-center">
|
||||
<h1>Öffnungszeiten</h1>
|
||||
<br>
|
||||
<table class="table table-dark">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tag</th>
|
||||
<th>Uhrzeit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Montag - Freitag</td>
|
||||
<td>9:00 - 18:00 Uhr</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Samstag</td>
|
||||
<td>10:00 - 15:00 Uhr</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sonntag</td>
|
||||
<td>Geschlossen</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Patenshop Section -->
|
||||
<section id="patenshop" class="container-fluid position-relative">
|
||||
<div class="row justify-content-center position-absolute top-50 start-50 translate-middle">
|
||||
<div class="col-md-8">
|
||||
<form class="row g-3" onsubmit="event.preventDefault(); showDonationAmount();">
|
||||
<div class="col-md-6">
|
||||
<label for="inputFirstName" class="form-label">Name</label>
|
||||
<input type="text" class="form-control" id="inputFirstName">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="inputLastName" class="form-label">Nachname</label>
|
||||
<input type="text" class="form-control" id="inputLastName">
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label for="inputEmail4" class="form-label">Email</label>
|
||||
<input type="email" class="form-control" id="inputEmail4">
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<label for="IBAN" class="form-label">IBAN</label>
|
||||
<input type="text" class="form-control" id="inputText">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="Fresserchen" class="form-label">Fresserchen</label>
|
||||
<select id="Fresserchen" class="form-select" onchange="updatePrice()">
|
||||
<option value="Steak" data-price="20">Steak</option>
|
||||
<option value="Fisch" data-price="15">Fisch</option>
|
||||
<option value="Beeren" data-price="10">Beeren</option>
|
||||
<option value="Nüsse" data-price="8">Nüsse</option>
|
||||
<option value="Gras" data-price="5">Gras</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="Menge" class="form-label">Menge</label>
|
||||
<select id="Menge" class="form-select" onchange="updatePrice()">
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="Preis" class="form-label">Preis (€)</label>
|
||||
<input type="text" class="form-control" id="Preis" readonly>
|
||||
</div>
|
||||
<div class="col-12 text-center mt-4">
|
||||
<button type="submit" class="btn btn-primary btn-lg shadow">Spenden</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="container-fluid position-relative">
|
||||
<div class="position-absolute top-50 start-50 translate-middle">
|
||||
<img src="Src/zoowebseite-transparent.png" width="150">
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- JavaScript -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||
<script src="Javascript/app.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|