Compare commits

..
Author SHA1 Message Date
Lara ed0c5f7835 Erfolgs- und Fehlermeldung bei Email 2026-03-12 11:37:32 +01:00
Lara f301c39309 Farbkorrektur 2026-03-12 11:21:49 +01:00
Lara 0904a0aaa3 Ausprobieren Chat 2026-03-12 11:10:14 +01:00
Lara 4b2f1f5f27 Thömus hinzufügen 2026-03-12 11:02:06 +01:00
Lara 653707ce00 HTML erstellen 2026-03-12 10:55:01 +01:00
Lara 17f7908c4a add file 2026-03-12 10:48:45 +01:00
Lara 3bde78cb8e add file 2026-03-12 09:59:22 +01:00
12 changed files with 257 additions and 259 deletions

No files matched your search

-58
View File
@@ -1,58 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Graubündner Steinböcke</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Graubündner Steinböcke</h1>
<section id="intro">
<h2>Willkommen</h2>
<p>Der Graubündner Steinbock ist ein Symbol der Alpen und hat sich perfekt an das raue Gebirgsklima angepasst. Mit seinem beeindruckenden Geweih und der robusten Statur klettert er elegant über steile Felsen.</p>
</section>
<section id="gallery">
<h2>Bildergalerie</h2>
<div class="gallery">
<img src="steinbock1.jpg" alt="Steinbock im Fels" class="gallery-img active">
<img src="steinbock2.jpg" alt="Steinbock in den Alpen" class="gallery-img">
</div>
<button id="nextImage">Nächstes Bild</button>
</section>
<section id="facts">
<h2>Interessante Fakten</h2>
<button id="toggleFacts">Fakten anzeigen</button>
<div id="factBox" class="fact-box">
<ul>
<li>Steinböcke können bis zu 3.50 Meter hoch springen.</li>
<li>Sie erreichen ein Alter von etwa 15–20 Jahren in freier Wildbahn.</li>
<li>Ihre Hufe sind speziell geformt, um auf Eis und Fels Halt zu finden.</li>
<li>Jedes Jahr im Herbst schiebt der Bock sein Geweih ab und bildet es neu.</li>
</ul>
</div>
</section>
<script>
// Bildwechsler
const imgs = document.querySelectorAll('.gallery-img');
let idx = 0;
document.getElementById('nextImage').addEventListener('click', () => {
imgs[idx].classList.remove('active');
idx = (idx + 1) % imgs.length;
imgs[idx].classList.add('active');
});
// Fakten ein-/ausblenden
const toggleBtn = document.getElementById('toggleFacts');
const factBox = document.getElementById('factBox');
toggleBtn.addEventListener('click', () => {
factBox.classList.toggle('show');
toggleBtn.textContent = factBox.classList.contains('show') ? 'Fakten verbergen' : 'Fakten anzeigen';
});
</script>
</body>
</html>
-1
View File
@@ -1 +0,0 @@
Hello World
+2
View File
@@ -0,0 +1,2 @@
Dies ist Laras persönliches File.
Ich schreibe mal eine zweite Zeile.
-1
View File
@@ -1 +0,0 @@
Das ist meine persönliche Datei.
-65
View File
@@ -1,65 +0,0 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #74ebd5, #9face6);
padding: 20px;
}
.card {
background: rgba(255, 255, 255, 0.15);
padding: 40px 30px;
border-radius: 20px;
text-align: center;
color: white;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
max-width: 700px;
width: 100%;
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}
h2 {
font-size: 1.5rem;
margin-bottom: 15px;
font-weight: 400;
}
h3 {
font-size: 1.1rem;
font-weight: 300;
opacity: 0.9;
}
.buttons {
margin-top: 25px;
display: flex;
flex-direction: column;
gap: 12px;
}
button {
padding: 12px;
border: none;
border-radius: 10px;
font-size: 1rem;
cursor: pointer;
background: white;
color: #333;
transition: 0.3s;
}
button:hover {
transform: scale(1.03);
}
-24
View File
@@ -1,24 +0,0 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Meine Webseite</title>
<link rel="stylesheet" href="salih-hasicic-app.css">
</head>
<body>
<div class="card">
<h1 id="main-title">Das ist meine hunderste Webseite</h1>
<h2 id="greeting">Schön, dass du da bist!</h2>
<h3 id="fun-text">Have fun on here</h3>
<div class="buttons">
<button onclick="changeGreeting()">Begrüssung ändern</button>
<button onclick="changeBackground()">Hintergrund ändern</button>
<button onclick="toggleText()">Text verstecken / zeigen</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
-1
View File
@@ -1 +0,0 @@
Das ist Salihs Datei!
-34
View File
@@ -1,34 +0,0 @@
function changeGreeting() {
const greeting = document.getElementById("greeting");
const hour = new Date().getHours();
if (hour < 12) {
greeting.textContent = "Guten Morgen und willkommen!";
} else if (hour < 18) {
greeting.textContent = "Guten Tag und schön, dass du da bist!";
} else {
greeting.textContent = "Guten Abend und viel Spass hier!";
}
}
function changeBackground() {
const colors = [
"linear-gradient(135deg, #74ebd5, #9face6)",
"linear-gradient(135deg, #ff9a9e, #fad0c4)",
"linear-gradient(135deg, #a18cd1, #fbc2eb)",
"linear-gradient(135deg, #f6d365, #fda085)"
];
const randomColor = colors[Math.floor(Math.random() * colors.length)];
document.body.style.background = randomColor;
}
function toggleText() {
const text = document.getElementById("fun-text");
if (text.style.display === "none") {
text.style.display = "block";
} else {
text.style.display = "none";
}
}
+145 -73
View File
@@ -1,99 +1,171 @@
/* Basic reset */ body, html {
body { margin: 5;
font-family: Arial, sans-serif;
margin: 0;
padding: 0; padding: 0;
line-height: 1.6; font-family: Arial, sans-serif;
background-color: #f5f5f5; background: #fff;
color: #333; color: #333;
} }
header {
background: #e30613; /* Thömus‑Rot */
color: #fff;
padding: 1rem;
}
header nav ul {
list-style: none;
margin: 10;
padding: 0;
display: flex;
gap: 1rem;
}
header nav a {
color: #fff;
text-decoration: none;
}
header nav a:hover {
text-decoration: underline;
}
h1, h2 { /* Hero */
color: #2c3e50; .hero {
position: relative;
text-align: center; text-align: center;
color: #fff;
} }
.hero img {
section { width: 100%;
max-width: 800px;
margin: 2rem auto;
background: #fff;
padding: 1.5rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
border-radius: 8px;
}
figure {
margin: 1.5rem 0;
text-align: center;
}
img {
max-width: 100%;
height: auto; height: auto;
display: block;
object-fit: cover;
}
.hero .overlay {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.5);
}
.hero .content {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
padding: 1rem 2rem;
}
.hero .content h2 {
margin: 0 0 .5rem;
font-size: 2rem;
}
.hero .content a {
display: inline-block;
margin-top: 1rem;
padding: .75rem 1.5rem;
background: #e30613;
color: #fff;
text-decoration: none;
border-radius: 4px;
font-weight: bold;
}
.hero .content a:hover {
background: #c00311;
}
/* Tiles */
.tiles {
display: grid;
grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
gap: 1rem;
padding: 2rem 1rem;
}
.tile {
background: #fafafa;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
text-align: center;
}
.tile img {
width: 100%;
height: 150px;
object-fit: cover;
}
.tile h3 {
margin: .5rem 0;
}
.tile p {
padding: 0 1rem 1rem;
font-size: .9rem;
color: #555;
}
.tile a {
display: block;
margin: 0 1rem 1rem;
padding: .5rem;
background: #e30613;
color: #fff;
text-decoration: none;
border-radius: 3px;
}
.tile a:hover {
background: #c00311;
}
/* styles.css (weiter unten ergänzen) */
form {
max-width: 400px;
margin: 2rem auto; /* zentriert und etwas Abstand oben/unten */
padding: 1rem 1.5rem;
background: #fafafa;
border: 1px solid #ddd;
border-radius: 4px; border-radius: 4px;
} }
figcaption { form label {
font-size: 0.9rem; display: block;
color: #555; margin-bottom: 0.5rem;
margin-top: 0.5rem; font-weight: bold;
} }
button { form input[type="email"] {
display: block; width: 100%;
margin: 1rem auto; padding: 0.5rem;
padding: 0.75rem 1.5rem; border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
font-size: 1rem; font-size: 1rem;
margin-bottom: 1rem;
}
form button {
background: #e30613;
color: #fff; color: #fff;
background-color: #3498db;
border: none; border: none;
padding: 0.75rem 1.5rem;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
transition: background-color 0.3s ease; font-size: 1rem;
} }
button:hover { form button:hover {
background-color: #2980b9; background: #c00311;
} }
/* gallery slider */ /* styles.css – am Ende hinzufügen */
.gallery {
display: flex; .message {
justify-content: center; margin-top: 1rem;
align-items: center; padding: 0.75rem;
position: relative; border-radius: 4px;
height: 300px; text-align: center;
overflow: hidden; font-weight: bold;
} }
.gallery-img { .message.success {
max-width: 100%; background: #d4edda;
max-height: 100%; color: #155724;
opacity: 0; border: 1px solid #c3e6cb;
position: absolute;
transition: opacity 0.6s ease;
} }
.gallery-img.active { .message.error {
opacity: 1; background: #f8d7da;
} color: #721c24;
border: 1px solid #f5c6cb;
/* facts box */
.fact-box {
max-width: 800px;
margin: 1rem auto;
padding: 1rem;
background: #ecf0f1;
border-radius: 6px;
display: none;
animation: fadeIn 0.5s ease-in;
}
.fact-box.show {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
} }
-1
View File
@@ -1 +0,0 @@
Das ist Valéries Datei!!!
+110
View File
@@ -0,0 +1,110 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cycle with me</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Rennräder</h1>
<nav>
<ul>
<li><a href="#">Startseite</a></li>
<li><a href="#">Modelle</a></li>
<li><a href="#">Tipps</a></li>
<li><a href="#">Kontakt</a></li>
</ul>
</nav>
</header>
<main>
<!-- Hero Section -->
<section class="hero">
<img src="hero-bike.jpg" alt="Rennrad auf offener Straße">
<div class="overlay"></div>
<div class="content">
<h2>Erlebe die Freiheit auf zwei Rädern</h2>
<p>Alles rund ums Rennrad – Technik, Training und Inspiration.</p>
<a href="#">Mehr erfahren</a>
</div>
</section>
<!-- Willkommen -->
<section>
<h2>Willkommen</h2>
<p>Diese Website dreht sich um Rennräder, Technik und Training. Hier erfährst du die aktuellsten Trends und Tipps aus der Welt der Rennräder.</p>
</section>
<!-- Marken -->
<section>
<h2>Beliebte Rennrad Marken</h2>
<ul>
<li>Thömus</li>
<li>Pinarello</li>
<li>Specialized</li>
<li>Trek</li>
<li>Canyon</li>
<li>Bianchi</li>
</ul>
</section>
<!-- Kachel‑Grid -->
<section class="tiles">
<div class="tile">
<img src="tile1.jpg" alt="Produkt 1">
<h3>Produkt 1</h3>
<p>Kurze Beschreibung des Produkts oder Blogbeitrags.</p>
<a href="#">Details</a>
</div>
<div class="tile">
<img src="tile2.jpg" alt="Produkt 2">
<h3>Produkt 2</h3>
<p>Kurze Beschreibung des Produkts oder Blogbeitrags.</p>
<a href="#">Details</a>
</div>
<div class="tile">
<img src="tile3.jpg" alt="Produkt 3">
<h3>Produkt 3</h3>
<p>Kurze Beschreibung des Produkts oder Blogbeitrags.</p>
<a href="#">Details</a>
</div>
<!-- weitere Kacheln nach Bedarf -->
</section>
<form id="emailForm">
<label for="email">E-Mail Adresse:</label><br>
<input type="email" id="email" name="email" placeholder="deine@email.com" required>
<br><br>
<button type="submit">Absenden</button>
<div id="message"></div>
</form>
</main>
<footer>
<p>© 2026 Rennrad Website</p>
</footer>
<script>
document.getElementById('emailForm').addEventListener('submit', function(event) {
event.preventDefault();
const email = document.getElementById('email').value;
const messageDiv = document.getElementById('message');
if (email.trim() === '') {
messageDiv.textContent = '❌ Bitte gib eine gültige E-Mail Adresse ein.';
messageDiv.className = 'message error';
} else {
messageDiv.textContent = '✅ Danke! Deine E-Mail wurde erfolgreich versendet.';
messageDiv.className = 'message success';
document.getElementById('email').value = ''; // Feld leeren
}
});
</script>
</body>
</html>
-1
View File
@@ -1 +0,0 @@
Das ist meine persönliche Datei.