initial import new design
This commit is contained in:
57
Example-site/index.html
Normal file
57
Example-site/index.html
Normal file
@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Br0tcraft</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="header-container">
|
||||
</div>
|
||||
<div class="Background-Leiste"></div>
|
||||
<div class="Leiste"></div>
|
||||
<div class="container">
|
||||
|
||||
<a class="menu-link-home" href="">BR0TCRAFT</a>
|
||||
<div class="mobile-menu-icon" onclick="toggleMenu()">
|
||||
|
||||
<div class="hamburger-icon"></div>
|
||||
<div class="hamburger-icon"></div>
|
||||
<div class="hamburger-icon"></div>
|
||||
</div>
|
||||
<div class="menu-links">
|
||||
|
||||
<a class="menu-link" href="">Spiele</a>
|
||||
<a class="menu-link" href="">Tutorials</a>
|
||||
<a class="menu-link" href="">Extensions</a>
|
||||
<a class="menu-link" href="">Kontakt</a>
|
||||
<a class="menu-link" href="">funny-Seiten</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mobile-menu" onclick="toggleMenu()">
|
||||
<a class="menu-link-home" href="">BR0TCRAFT</a>
|
||||
<br><br><br>
|
||||
<a class="menu-link-mobile" href="">Spiele</a>
|
||||
<a class="menu-link-mobile" href="">Tutorials</a>
|
||||
<a class="menu-link-mobile" href="">Turbowarp-Extensions</a>
|
||||
<a class="menu-link-mobile" href="">Kontakt</a>
|
||||
<a class="menu-link-mobile" href="">funny-Seiten</a>
|
||||
</div>
|
||||
<h1 class="headline">Example</h1>
|
||||
Dies wird genutzt für weitere Websiten als Template
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
function toggleMenu() {
|
||||
var menuLinks = document.querySelector(".menu-links");
|
||||
var mobileMenu = document.querySelector(".mobile-menu");
|
||||
var body = document.body;
|
||||
|
||||
menuLinks.classList.toggle("show");
|
||||
mobileMenu.classList.toggle("show");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
172
Example-site/style.css
Normal file
172
Example-site/style.css
Normal file
@ -0,0 +1,172 @@
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("/fonts/Roboto/Roboto-Regular.ttf");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Orbitron";
|
||||
src: url("/fonts/Orbitron/Orbitron-Black.ttf");
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Orbitron";
|
||||
background-color: white;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.Leiste {
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 7vw;
|
||||
position: fixed;
|
||||
background-color: rgb(77, 0, 0);
|
||||
z-index: 0;
|
||||
}
|
||||
.Background-Leiste {
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 7vw;
|
||||
object-fit: cover;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.header-container {
|
||||
top: 3vw;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: fixed;
|
||||
right: 32px;
|
||||
left: 10px;
|
||||
top: 0px;
|
||||
font-family: Orbitron;
|
||||
font-size: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.menu-link-home {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
margin-left: 0px;
|
||||
font-size: 6vw;
|
||||
|
||||
}
|
||||
|
||||
.menu-link {
|
||||
font-size: 1.5vw;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
margin-left: 16px;
|
||||
}
|
||||
|
||||
.menu-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.headline {
|
||||
text-align: center;
|
||||
color: rgb(0, 0, 0);
|
||||
font-size: 4vw;
|
||||
text-shadow: 5px 5px 3px rgba(5, 0, 0, 0.26);
|
||||
}
|
||||
|
||||
.mobile-menu-icon {
|
||||
display: none; /* Standardmäßig ausblenden */
|
||||
cursor: pointer;
|
||||
position: fixed;
|
||||
top: 0.5vw;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.hamburger-icon {
|
||||
width: 30px;
|
||||
height: 3px;
|
||||
background-color: white;
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
.menu-links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end; /* Rechts ausrichten */
|
||||
}
|
||||
|
||||
.menu-links.show {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.menu {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #333; /* Hintergrundfarbe des Menüs */
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.menu-link-mobile {
|
||||
color: white;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
font-size: 250%;
|
||||
margin: 20px; /* Abstand zwischen den Links hinzufügen */
|
||||
}
|
||||
|
||||
.mobile-menu {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: transparent;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.Inhalt {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
top: 10vw;
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 937px) {
|
||||
.mobile-menu-icon {
|
||||
display: block; /* Bei kleinen Bildschirmen anzeigen */
|
||||
}
|
||||
|
||||
.hamburger-icon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu-links {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
position: absolute;
|
||||
top: 80px;
|
||||
right: 0; /* Rechts ausrichten */
|
||||
background-color: #333;
|
||||
width: 100%;
|
||||
justify-content: flex-start; /* Links oben ausrichten */
|
||||
}
|
||||
|
||||
.menu-links.show {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.mobile-menu.show {
|
||||
display: block;
|
||||
background-color: rgb(104, 0, 0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user