forked from markus/AMPERION_Webpage
- Updated SCSS variables to use static values instead of dynamic site parameters for colors and fonts. - Changed various color values in the SCSS to enhance the overall design consistency. - Improved JavaScript scroll functionality to prevent conflicts during auto-scrolling and manual scrolling. - Added debounce functionality to wheel event listener for smoother scrolling experience. - Enhanced header visibility behavior during scrolling. - Reset auto-scroll state when returning to the hero section.
193 lines
3.5 KiB
SCSS
193 lines
3.5 KiB
SCSS
// Color Variables
|
||
$color-primary: #fff;
|
||
$color-secondary: #0AA8A7;
|
||
$text-color: #fff;
|
||
$text-dark: #222;
|
||
$text-light: #737373;
|
||
$body-bg: #fff;
|
||
$border-color: #ECECEC;
|
||
$black: #000;
|
||
$white: #fff;
|
||
$light: #EDF6F5;
|
||
|
||
// Font Variables
|
||
$font-size: 16px;
|
||
$font-scale: 1.25;
|
||
$font-primary: 'Lato', sans-serif;
|
||
$font-secondary: 'Lato', sans-serif;
|
||
$font-tertiary: 'Dosis', sans-serif;
|
||
$font-quaternary: 'Edu', sans-serif;
|
||
|
||
$font-icon: 'Font Awesome 5 Free';
|
||
|
||
$h1: 80px;
|
||
$h1-md: 34px;
|
||
$h2: 28px;
|
||
$h2-md: 26px;
|
||
$h2-sm: 22px;
|
||
$h3: 20px;
|
||
$h4: 25px;
|
||
|
||
@import 'mixins.scss';
|
||
|
||
@import 'media-query.scss';
|
||
|
||
@import 'typography.scss';
|
||
|
||
@import 'common.scss';
|
||
|
||
@import 'main.scss';
|
||
|
||
@import 'templates/_header.scss';
|
||
|
||
@import 'templates/_navigation.scss';
|
||
|
||
@import 'templates/_slider.scss';
|
||
|
||
@import 'templates/_call-to-action.scss';
|
||
|
||
@import 'templates/_service.scss';
|
||
|
||
@import 'templates/_feature.scss';
|
||
|
||
@import 'templates/_portfolio.scss';
|
||
|
||
@import 'templates/_testimonial.scss';
|
||
|
||
@import 'templates/_contact.scss';
|
||
|
||
@import 'templates/_pricing.scss';
|
||
|
||
@import 'templates/_products.scss';
|
||
|
||
@import 'templates/_single-product.scss';
|
||
|
||
@import 'templates/_clients.scss';
|
||
|
||
@import 'templates/_about.scss';
|
||
|
||
@import 'templates/_instagram.scss';
|
||
|
||
@import 'templates/_user-dashboard.scss';
|
||
|
||
@import 'templates/_single-post.scss';
|
||
|
||
@import 'templates/_backgrounds.scss';
|
||
|
||
@import 'templates/_blog-sidebar.scss';
|
||
|
||
@import 'templates/_blog.scss';
|
||
|
||
@import 'templates/_coming-soon.scss';
|
||
|
||
@import 'templates/_shopping.scss';
|
||
|
||
@import 'templates/_404.scss';
|
||
|
||
@import 'templates/_message-sent.scss';
|
||
|
||
@import 'templates/_footer.scss';
|
||
|
||
@import 'custom.scss';
|
||
|
||
|
||
/* 1) Die .logo-container bekommt 80% Breite => 10% links und 10% rechts frei */
|
||
.logo-container {
|
||
width: 80%;
|
||
margin: 0 auto; /* Zentriert sich, lässt links und rechts je 10% Platz */
|
||
display: flex;
|
||
flex-direction: row;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 20px; /* Abstand zwischen Frame 1 & Frame 2 */
|
||
}
|
||
|
||
/* 2) Frame 1 (40%) und Frame 2 (60%) */
|
||
.frame1 {
|
||
flex: 0 0 40%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
.frame2 {
|
||
flex: 0 0 60%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
|
||
/* 3) Banner-Logos selbst: Standard erst auf opacity:0, Animation blendet sie ein */
|
||
.banner-logo {
|
||
max-width: 100%;
|
||
height: auto;
|
||
opacity: 0;
|
||
}
|
||
|
||
/* 4) ANIMATIONEN */
|
||
/* Frame 1 – Move-In: Wir animieren gezielt das Bild */
|
||
.frame1 .banner-logo {
|
||
animation: moveIn 1s forwards;
|
||
}
|
||
/* Frame 2 – Fade-In: Wir animieren gezielt das Bild */
|
||
.frame2 .banner-logo {
|
||
animation: moveIn 1s 0.5s forwards;
|
||
}
|
||
|
||
/* Keyframes */
|
||
@keyframes moveIn {
|
||
from {
|
||
transform: translateX(50px);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: translateX(0);
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
@keyframes fadeIn {
|
||
from {
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
/* 5) TITEL-FADE-IN (optional) */
|
||
.fade-in-title {
|
||
opacity: 0;
|
||
animation: fadeTitle 1.5s forwards 1s;
|
||
}
|
||
@keyframes fadeTitle {
|
||
to { opacity: 1; }
|
||
}
|
||
|
||
/* 6) (Optional) Responsive unter 768px => Frames untereinander */
|
||
@media (max-width: 768px) {
|
||
.logo-container {
|
||
flex-direction: column;
|
||
width: 90%; /* Mehr Platz, Bilder untereinander */
|
||
}
|
||
.frame1, .frame2 {
|
||
flex: 0 0 auto;
|
||
width: 100%;
|
||
margin-bottom: 20px;
|
||
}
|
||
}
|
||
|
||
.custom-container {
|
||
max-width: 1800px; /* oder was du möchtest */
|
||
margin: 0 auto;
|
||
padding-left: 30px;
|
||
padding-right: 30px;
|
||
}
|
||
|
||
|
||
body {
|
||
font-family: Arial, sans-serif;
|
||
text-align: center;
|
||
background-color: #ffffff;
|
||
margin: 0;
|
||
padding: 20px;
|
||
}
|