Refactor index.html and enhance style.css with glassmorphism effect for opening hours section

This commit is contained in:
Juwan Jouma 2024-04-17 22:17:36 +02:00
parent e17aab4e00
commit 3153b437ea
2 changed files with 36 additions and 7 deletions

View File

@ -3,8 +3,33 @@ section {
height: 100vh;
}
#openingHours {
background: linear-gradient(90deg, rgb(0, 159, 155), 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);
/* Animation */
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: 240px;
height: 160px;
}
.swiper {
@ -15,3 +40,7 @@ footer {
.swiper-pagination-bullet {
background-color: rgba(0, 0, 0, 1) !important
}
@keyframes fade-in {
to { scale: 1; opacity: 1;}
}

View File

@ -13,7 +13,7 @@
<!-- Navbar -->
<nav class="navbar sticky-top navbar-expand-lg bg-body-tertiary bg-dark border-bottom border-body" data-bs-theme="dark">
<div class="container-fluid">
<a class="navbar-brand" href="#"><img src="Src/zoowebseite-high-resolution-logo-transparent.png" alt="Logo" width="120" height="120" class="d-inline-block align-text"></a>
<a class="navbar-brand" href="#"><img src="Src/zoowebseite-high-resolution-logo-transparent.png" alt="Logo" width="120" class="d-inline-block align-text"></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>
@ -53,11 +53,11 @@
</section>
<!-- Öffnungszeiten Section -->
<section class="container d-flex" id="openingHours">
<div class="row justify-content-center align-self-center">
<h1 class="text-center">Öffnungszeiten</h1>
<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 class="table table-dark">
<thead>
<tr>
<th>Tag</th>
@ -90,7 +90,7 @@
<!-- Footer -->
<footer class="container-fluid d-flex bg-dark">
<img src="Src/zoowebseite-high-resolution-logo-transparent.png" height="200" class="align-self-center">
<img src="Src/zoowebseite-high-resolution-logo-transparent.png" width="200" class="align-self-center">
<div>
<li></li>
<li></li>