drop down moblie
This commit is contained in:
parent
2bf65a6b58
commit
7703793056
BIN
img/Redstone.png
BIN
img/Redstone.png
Binary file not shown.
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 695 KiB |
97
index.html
97
index.html
@ -5,97 +5,34 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Br0tcraft</title>
|
||||
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("/fonts/Roboto/Roboto-Regular.ttf");
|
||||
}
|
||||
<link rel="stylesheet" href="style.css">
|
||||
|
||||
@font-face {
|
||||
font-family: "Orbitron";
|
||||
src: url("/fonts/Orbitron/Orbitron-Black.ttf");
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Orbitron";
|
||||
}
|
||||
|
||||
.header-container {
|
||||
position: relative;
|
||||
height: 80vh;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header-image {
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
filter: brightness(0.5);
|
||||
}
|
||||
|
||||
.Phrasen {
|
||||
position: absolute;
|
||||
bottom: 5%; /* Ändere den Wert nach Bedarf */
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
color: white;
|
||||
font-size: 1vw; /* Ändere den Wert nach Bedarf */
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: absolute;
|
||||
right: 32px;
|
||||
left: 32px;
|
||||
top: 16px;
|
||||
font-family: Orbitron;
|
||||
font-size: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: calc(15% * 2);
|
||||
}
|
||||
|
||||
.menu-link {
|
||||
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: 40px;
|
||||
text-shadow: 5px 5px 3px rgba(5, 0, 0, 0.26);
|
||||
margin-top: 20px; /* Füge einen Abstand zum Text darunter hinzu */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header-container">
|
||||
<img class="header-image" src="img/Redstone.png" />
|
||||
<div class="Phrasen">
|
||||
<h1>Programming, exploring, trying</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<img src="img/Logo.png" class="logo" />
|
||||
<div>
|
||||
<a class="menu-link" href="">Home</a>
|
||||
<a class="menu-link-home" href="">BR0TCRAFT</a>
|
||||
<div class="mobile-menu-icon" onclick="toggleMenu()">
|
||||
<div class="bar"></div>
|
||||
<div class="bar"></div>
|
||||
<div class="bar"></div>
|
||||
</div>
|
||||
<div class="menu-links">
|
||||
<a class="menu-link" href="">Kontakt</a>
|
||||
<a class="menu-link" href="">Spiele</a>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="headline">Meine Werke</h1>
|
||||
|
||||
<!-- Weitere HTML-Elemente und Skripte hier einfügen -->
|
||||
|
||||
<script>
|
||||
function toggleMenu() {
|
||||
var menuLinks = document.querySelector('.menu-links');
|
||||
menuLinks.classList.toggle('show');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
105
style.css
Normal file
105
style.css
Normal file
@ -0,0 +1,105 @@
|
||||
@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";
|
||||
}
|
||||
|
||||
.header-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: 50% 5%;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: absolute;
|
||||
right: 32px;
|
||||
left: 32px;
|
||||
top: 16px;
|
||||
font-family: Orbitron;
|
||||
font-size: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: calc(15% * 2);
|
||||
}
|
||||
|
||||
.menu-link-home {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
margin-left: 0px;
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
.menu-link {
|
||||
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: 40px;
|
||||
text-shadow: 5px 5px 3px rgba(5, 0, 0, 0.26);
|
||||
}
|
||||
|
||||
.mobile-menu-icon {
|
||||
display: none; /* Standardmäßig ausblenden */
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.menu-links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.mobile-menu-icon {
|
||||
display: block; /* Bei kleinen Bildschirmen anzeigen */
|
||||
}
|
||||
|
||||
.menu-links {
|
||||
display: none; /* Bei kleinen Bildschirmen ausblenden */
|
||||
flex-direction: column;
|
||||
position: absolute;
|
||||
top: 80px; /* Passen Sie dies an, um die Position anzupassen */
|
||||
left: 0;
|
||||
background-color: #333; /* Hintergrundfarbe des Menüs */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.menu-link {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menu-links.show {
|
||||
display: flex; /* Bei Klick auf das Symbol anzeigen */
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +0,0 @@
|
||||
h1 {
|
||||
color: rgb(255, 0, 0);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user