2. recipes und share, muss noch bild ersetzen
This commit is contained in:
182
index.html
182
index.html
@ -4,12 +4,13 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Tauche ein in die wunderbare Welt der Kulinarik und entdecke köstliche Rezepte.">
|
||||
<link href="/fa/css/fontawesome.css" rel="stylesheet" />
|
||||
<link href="/fa/css/brands.css" rel="stylesheet" />
|
||||
<link href="/fa/css/fontawesome.css" rel="stylesheet">
|
||||
<link href="/fa/css/brands.css" rel="stylesheet">
|
||||
<title>so.mach.ich.das</title>
|
||||
<style>
|
||||
/* Grundlegendes Styling */
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
font-family: system-ui, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
@ -18,36 +19,45 @@
|
||||
text-align: center;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
align-items: center;
|
||||
max-width: 1200px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.left, .right {
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
flex-grow: 1;
|
||||
margin: 0;
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Social Links (links positioniert) */
|
||||
.social-links {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.social-links a {
|
||||
font-size: 1.5em; /* Default size for larger screens */
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
/* Ladebildschirm */
|
||||
.loading-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
@ -59,10 +69,8 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 9999;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
@ -71,40 +79,45 @@
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* Inhalt */
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: left;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
max-width: 1200px;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.text {
|
||||
|
||||
.text, .image {
|
||||
flex: 1;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.image {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.image img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 8px; /* Optional: Für abgerundete Ecken */
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background-color: black;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
/* Karte */
|
||||
.card {
|
||||
max-width: 300px;
|
||||
background: white;
|
||||
@ -117,112 +130,113 @@
|
||||
display: inline-block;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translate(-2px, -4px);
|
||||
box-shadow: 16px 16px 0 rgba(32,33,37,.06);
|
||||
}
|
||||
|
||||
.card img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.card .title {
|
||||
font-weight: bold;
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
.card .description {
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
.card a {
|
||||
color: #1967d2;
|
||||
font-size: .8em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.description-title {
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Media Query für responsives Design */
|
||||
@media (max-width: 600px) {
|
||||
/* Responsives Design */
|
||||
@media (max-width: 768px) {
|
||||
header {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.text, .image {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.card {
|
||||
max-width: 90%;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.social-links a {
|
||||
font-size: 1.2em; /* Kleinere Icons auf mobilen Geräten */
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="left">
|
||||
<a href="index.html">HOME</a>
|
||||
<a href="recipes.html">RECIPES</a>
|
||||
</div>
|
||||
<h1>so.mach.ich.das</h1>
|
||||
<div class="right">
|
||||
<a href="contact.html">CONTACT</a>
|
||||
<a href="about.html">ABOUT</a>
|
||||
</div>
|
||||
<div class="social-links">
|
||||
<a href="https://www.instagram.com/so.mach.ich.das/" target="_blank" rel="noopener noreferrer">
|
||||
<a href="https://www.instagram.com/so.mach.ich.das/" target="_blank">
|
||||
<i class="fa-brands fa-instagram"></i>
|
||||
</a>
|
||||
<a href="https://youtube.com/@somachtstefaniedasstefanie435?feature=shared" target="_blank" rel="noopener noreferrer">
|
||||
<a href="https://youtube.com/@somachtstefaniedasstefanie435?feature=shared" target="_blank">
|
||||
<i class="fa-brands fa-youtube"></i>
|
||||
</a>
|
||||
</div>
|
||||
<nav>
|
||||
<a href="index.html">HOME</a>
|
||||
<a href="recipes.html">RECIPES</a>
|
||||
</nav>
|
||||
<h1>so.mach.ich.das</h1>
|
||||
<nav>
|
||||
<a href="contact.html">CONTACT</a>
|
||||
<a href="about.html">ABOUT</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<div class="loading-overlay">
|
||||
<div class="spinner"></div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="text">
|
||||
<div class="description-title">Beschreibung</div>
|
||||
<p>Tauche ein in die wunderbare Welt der Kulinarik und entdecke eine Vielzahl
|
||||
von köstlichen Rezepten, die ich persönlich kuratiert habe.<br>
|
||||
Egal, ob du ein Anfänger in der Küche bist oder ein erfahrener Gourmet –
|
||||
hier findest du Inspiration und Anleitungen für jede Gelegenheit.</p>
|
||||
</div>
|
||||
<div class="image">
|
||||
<img src="obstteller1.png" alt="Obstteller mit frischen Früchten">
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
<div class="card">
|
||||
<img src="johannesbeeressig.png" width="100%" alt="Johannesbeeressig">
|
||||
<div class="title">Johannesbeeressig</div>
|
||||
<p class="description">Verleihe deinem Salat eine außergewöhnliche
|
||||
Note mit selbstgemachtem Johannisbeeressig.<br>
|
||||
Der fruchtige Geschmack der Johannisbeeren harmoniert perfekt
|
||||
mit der feinen Säure des Essigs und verleiht jedem Salat ein besonderes Aroma.</p>
|
||||
<a href="#" class="link">See the recipe</a>
|
||||
</div>
|
||||
|
||||
<main>
|
||||
<section class="content">
|
||||
<div class="text">
|
||||
<p>Tauche ein in die wunderbare Welt der Kulinarik und entdecke eine Vielzahl
|
||||
von köstlichen Rezepten, die ich persönlich kuratiert habe.</p>
|
||||
</div>
|
||||
<div class="image">
|
||||
<img src="obstteller.png" alt="Breakfast Image">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<article class="card">
|
||||
<img src="johannesbeeressig.png" width="100%" alt="Johannesbeeressig">
|
||||
<h3 class="title">Johannesbeeressig</h3>
|
||||
<p class="description">Verleihe deinem Salat eine außergewöhnliche Note mit selbstgemachtem Johannisbeeressig.</p>
|
||||
<a href="/Johannesbeeressig/" class="link">See the recipe</a>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
function showLoading() {
|
||||
const overlay = document.querySelector('.loading-overlay');
|
||||
overlay.style.visibility = 'visible';
|
||||
overlay.style.opacity = '1';
|
||||
}
|
||||
function hideLoading() {
|
||||
const overlay = document.querySelector('.loading-overlay');
|
||||
overlay.style.opacity = '0';
|
||||
setTimeout(() => {
|
||||
overlay.style.visibility = 'hidden';
|
||||
}, 300);
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hideLoading();
|
||||
});
|
||||
// Funktion, die die Ladeanimation nach dem Laden der Seite ausblendet
|
||||
window.onload = function() {
|
||||
document.querySelector('.loading-overlay').style.display = 'none';
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user