This commit is contained in:
2021-12-05 19:58:11 +01:00
parent f1d7d9a58d
commit b4ca5c0815
3 changed files with 43 additions and 34 deletions

View File

@@ -1,5 +1,7 @@
/* Haupt CSS für alle Seiten */
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
overflow-x: hidden;
} }
*{ *{
@@ -113,7 +115,7 @@ body{
height: 100%; height: 100%;
padding: 80px 20px; padding: 80px 20px;
transition: .4s ease; transition: .4s ease;
/* Nicht Ressourcen Schonend. > Laggs /* Verursacht bei manchen Browsern/Geräten Laggs Beim Scrollen
background-image: url(../../bilder/background.png); background-image: url(../../bilder/background.png);
background-size: 100%; background-size: 100%;
background-attachment: fixed; background-attachment: fixed;
@@ -121,7 +123,7 @@ body{
*/ */
} }
/* GPU Freundlicher */ /* GPU Freundlicher */
/* Q: https://www.fourkitchens.com/blog/article/fix-scrolling-performance-css-will-change-property/ */ /* Q: https://www.fourkitchens.com/blog/article/fix-scrolling-performance-css-will-change-property/ mit kleinen Änderungen */
.seite::before { .seite::before {
content: ""; content: "";
position: fixed; position: fixed;
@@ -134,7 +136,6 @@ body{
background-size: cover; background-size: cover;
will-change: transform; will-change: transform;
z-index: -1; z-index: -1;
} }
/* Animierte Sterne */ /* Animierte Sterne */
@@ -143,18 +144,6 @@ body{
left: 0; left: 0;
width: 100%; width: 100%;
height: 100vh; height: 100vh;
animation: animateBg 50s linear infinite;
}
@keyframes animateBg {
0%,100%
{
transform: scale(1);
}
50%
{
transform: scale(1.2);
}
} }
.seite section span { .seite section span {
@@ -198,6 +187,7 @@ body{
background: linear-gradient(90deg,#fff,transparent); background: linear-gradient(90deg,#fff,transparent);
} }
/* Stern Position & Geschwindigkeit */
.seite section span:nth-child(1) .seite section span:nth-child(1)
{ {
top: 0; top: 0;
@@ -280,15 +270,6 @@ body{
} }
/* Animation Ende */ /* Animation Ende */
/* Text Formatierung */
.seite h1 {
text-align: center;
}
.seite p {
padding: 30px 0;
}
/* Footer */ /* Footer */
.footer { .footer {
background: #444; background: #444;
@@ -325,7 +306,8 @@ body{
} }
.ft-icons { .ft-icons {
margin-top: 1em; bottom: 50%;
top: 50%;
} }
.fa{ .fa{
@@ -344,5 +326,4 @@ body{
transition: ease-in-out all 0.2s; transition: ease-in-out all 0.2s;
} }
/* Ab hier Mika */ /* Ab hier Mika */

View File

@@ -29,7 +29,7 @@
text-align: center; text-align: center;
position: absolute; position: absolute;
left: 50%; left: 50%;
bottom: 1rem; bottom: 0.5em;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
max-width: 75px; max-width: 75px;
width: 100%; width: 100%;
@@ -56,3 +56,21 @@
top: 8rem; top: 8rem;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.über-uns {
width: 65%;
margin-top: 2%;
height: 50%;
}
.shop {
width: 65%;
margin-top: 0.5%;
height: 30%;
}
.shop, .über-uns{
background-color: rgba(0, 0, 0, 0.12);
margin-right: 2.5%;
text-align: center;
border-radius: 1em;
border: 0.05em solid #121212;
}

View File

@@ -21,10 +21,19 @@
<a class="neon-button" href="./assets/seiten/login.html"><br>Anmelden<br></a> <a class="neon-button" href="./assets/seiten/login.html"><br>Anmelden<br></a>
</div> </div>
</div> </div>
<!-- Sterne & Oberer teil der Hauptseite -->
<div class="seite"> <div class="seite">
<!-- Sterne -->
<div class="sterne"> <div class="sterne">
<section> <section> <!-- Hauptseite Oberer Teil -->
<!-- Keine ahnung warum aber es funktioniert nur, wenn das hier drin steht. -->
<div class="über-uns">
<h1>Über uns</h1>
<p> - Test<br>- Test 2<br>- Test 3</p>
</div>
<div class="shop">
<p> Shop Examples</p>
</div>
<!-- Sterne -->
<span></span> <span></span>
<span></span> <span></span>
<span></span> <span></span>
@@ -35,9 +44,9 @@
<span></span> <span></span>
<span></span> <span></span>
<span></span> <span></span>
<!-- Sterne ENde -->
</section> </section>
</div> </div>
<!-- Startseite Content (Kurzes "wer sind wir", Bilder)-->
<!-- Scroll Down Knopf--> <!-- Scroll Down Knopf-->
<a id="down-btn" href="#content">Nach Unten<br>⬇️</a> <a id="down-btn" href="#content">Nach Unten<br>⬇️</a>
<!-- On Top Knopf --> <!-- On Top Knopf -->
@@ -59,11 +68,12 @@
<a href="./assets/seiten/kontakt.html">Kontakt</a> <a href="./assets/seiten/kontakt.html">Kontakt</a>
</div> </div>
<div class="ft-icons"> <div class="ft-icons">
<a href="#" class="fa fa-facebook"> </a> <a href="404.html#facebook" class="fa fa-facebook"> </a>
<a href="#" class="fa fa-twitter"> </a> <a href="404.html#twitter" class="fa fa-twitter"> </a>
<a href="#" class="fa fa-google"> </a> <a href="404.html#google" class="fa fa-google"> </a>
<a href="#" class="fa fa-github"> </a> <a href="https://github.com/Promlg1104/KBM-HTML" class="fa fa-github"> </a>
</div> </div>
<br>
<p class="firmen-name">2021 - © KBM</p> <p class="firmen-name">2021 - © KBM</p>
</div> </div>
</div> </div>