1
0

neu update0.5

This commit is contained in:
matt
2025-05-29 17:23:36 +02:00
parent c2a4bb19f6
commit c8efa989e3
19 changed files with 1110 additions and 134 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}

227
bio.html Normal file
View File

@ -0,0 +1,227 @@
<!DOCTYPE html>
<html lang="de">
<head>
<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="fonts/Lato/Lato-Black.ttf" rel="stylesheet">
<title>so.mach.ich.das | Bio</title>
<style>
.bio {
font-family: "Lato", sans-serif;
font-weight: 900;
font-style: normal;
}
/* Grundlegendes Styling */
body {
font-family: system-ui, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background-color: white;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 20px;
max-width: 1200px;
flex-wrap: wrap;
}
nav {
display: flex;
gap: 20px;
}
h1 {
margin: 0;
font-size: 1.8em;
}
a {
text-decoration: none;
color: black;
}
/* Social Links (links positioniert) */
.social-links {
display: flex;
gap: 10px;
align-items: center;
}
.social-links a {
font-size: 1.5em;
}
/* Ladebildschirm */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(0, 0, 0, 0.1);
border-top: 5px solid black;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Inhalt */
.content {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
max-width: 1200px;
padding: 20px;
box-sizing: border-box;
}
.text, .image {
flex: 1;
width: 100%;
text-align: center;
}
.image img {
max-width: 100%;
height: auto;
border-radius: 8px;
}
.divider {
width: 100%;
height: 2px;
background-color: black;
margin: 20px 0;
}
/* Karte */
.card {
max-width: 300px;
background: white;
color: black;
border: 1px solid #dbdce0;
padding: 25px;
box-shadow: 8px 8px 0 rgba(32,33,37,.1);
transition: box-shadow .5s, transform .5s;
border-radius: 8px;
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;
}
/* 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 {
width: 100%;
}
.card {
max-width: 90%;
margin: 10px 0;
}
}
</style>
<header>
<div class="social-links">
<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">
<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="bio.html">BIO</a>
</nav>
</header>
<br>
<br>
<h2>Pampered Chef Führungskraft / Thermomix</h2>
<h3 class="bio">
Stefanie Messer
<br>
Rezepte Tipps Inspiration
<br>
lecker - einfach - gesund - frisch
<br>
Beratung und Verkauf
<br>
<a href="https://www.pamperedchef.eu/pws/stefaniemesser/tabs/meine-geschichte">
Meine Geschichte
</a></h3>

208
contact.html Normal file
View File

@ -0,0 +1,208 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>so.mach.ich.das | Contact</title>
<style>
/* Grundlegendes Styling */
body {
font-family: system-ui, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background-color: white;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 20px;
max-width: 1200px;
flex-wrap: wrap;
}
nav {
display: flex;
gap: 20px;
}
h1 {
margin: 0;
font-size: 1.8em;
}
a {
text-decoration: none;
color: black;
}
/* Social Links (links positioniert) */
.social-links {
display: flex;
gap: 10px;
align-items: center;
}
.social-links a {
font-size: 1.5em;
}
/* Ladebildschirm */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(0, 0, 0, 0.1);
border-top: 5px solid black;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Inhalt */
.content {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
max-width: 1200px;
padding: 20px;
box-sizing: border-box;
}
.text, .image {
flex: 1;
width: 100%;
text-align: center;
}
.image img {
max-width: 100%;
height: auto;
border-radius: 8px;
}
.divider {
width: 100%;
height: 2px;
background-color: black;
margin: 20px 0;
}
/* Karte */
.card {
max-width: 300px;
background: white;
color: black;
border: 1px solid #dbdce0;
padding: 25px;
box-shadow: 8px 8px 0 rgba(32,33,37,.1);
transition: box-shadow .5s, transform .5s;
border-radius: 8px;
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;
}
/* 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 {
width: 100%;
}
.card {
max-width: 90%;
margin: 10px 0;
}
}
</style>
<header>
<div class="social-links">
<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">
<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="bio.html">BIO</a>
</nav>
</header>
<br>
<br>
<h2>Kontaktiere mich bei fragen gerne</h2>
<a href="mailto:info@somachtstefaniedas.de">
<img src="/icons/email.svg" height="40" alt="E-Mail" />

BIN
fonts/Lato.zip Normal file

Binary file not shown.

BIN
fonts/Lato/Lato-Black.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Lato/Lato-Bold.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Lato/Lato-Italic.ttf Normal file

Binary file not shown.

BIN
fonts/Lato/Lato-Light.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Lato/Lato-Regular.ttf Normal file

Binary file not shown.

BIN
fonts/Lato/Lato-Thin.ttf Normal file

Binary file not shown.

Binary file not shown.

93
fonts/Lato/OFL.txt Normal file
View File

@ -0,0 +1,93 @@
Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato"
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

View File

@ -6,7 +6,7 @@
<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">
<title>so.mach.ich.das</title>
<title>so.mach.ich.das | Homepage</title>
<style>
/* Grundlegendes Styling */
body {
@ -202,8 +202,8 @@
</nav>
<h1>so.mach.ich.das</h1>
<nav>
<a href="contact.html">CONTACT</a>
<a href="about.html">ABOUT</a>
<a href="/contact.html">CONTACT</a>
<a href="bio.html">BIO</a>
</nav>
</header>

View File

@ -1,132 +1,225 @@
<!-- From Uiverse.io by wztd -->
<style>
.card {
--background: #fff;
--cardShadow: rgba(32,33,37,.1);
--cardShadowHover: rgba(32,33,37,.06);
--cardShadowActive: rgba(32,33,37,.55);
--cardBorder: #dbdce0;
--cardBorderActive: #1a73e8;
--textColor: #202125;
--linkColor: #1967d2;
--ratingColor: #faab00;
}
@media (prefers-color-scheme: dark) {
.card {
--background: #e5e7e9;
--cardShadow: rgba(0,0,0,.28);
--cardShadowHover: rgba(0,0,0,.16);
--cardShadowActive: rgba(0,0,0,.55);
--cardBorder: #202125;
--cardBorderActive: #8ab4f8;
--textColor: #202122;
--linkColor: #8ab4f8;
}
}
.card {
max-width: 300px;
background: var(--background);
color: var(--textColor);
border: 1px solid var(--cardBorder);
padding: 25px;
box-shadow: 8px 8px 0 var(--cardShadow);
transition: box-shadow .5s, transform .5s;
border-radius: 8px;
display: inline-block;
}
.card:hover {
transform: translate(-2px, -4px);
box-shadow: 16px 16px 0 var(--cardShadowHover);
}
.card:active {
transform: translate(-2px, -4px);
border: 2px solid var(--cardBorderActive);
box-shadow: 4px 4px 0 var(--cardShadowActive);
}
.card > .icon,
.card > .title,
.card > .description,
.card > .rating,
.card > .link {
margin-bottom: 0.7em;
cursor: default;
user-select: none;
}
.card > .title {
margin-top: 1.5em;
font-weight: bold;
}
.card > .description {
line-height: 1.5em;
}
.card > .icon {
font-size: 3em;
margin-bottom: .2em;
}
.card > .rating {
font-size: 1.5em;
color: var(--ratingColor);
font-weight: bold;
position: relative;
width: max-content;
}
.card > .rating:before {
content: "☆☆☆☆☆";
}
.card > .rating:after {
content: "★★★★★";
position: absolute;
left: 0;
z-index: 0;
width: calc(var(--rating) * 1%);
overflow: hidden;
}
.card > .link {
color: var(--linkColor);
font-size: .8em;
font-weight: 600;
}
/* Optional ~ Link the whole card */
.card > .link::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.card > .link:after {
content: "↗";
display: inline-block;
margin-left: .3em;
transition: transform .3s ease-in-out;
}
.card:hover > .link:after {
transform: translate(.2em, -.2em);
}
</style>
<div class="card" style="--rating:90">
<img src="/somachtstefaniedas2/johannesbeeressig.png" width="100%" alt="Johannesbeeressig">
<div class="title">Johannesbeeressig</div>
<p class="description">Verleihe deinem Salat eine außergewöhnliche <br>Note mit selbstgemachtem Johannisbeeressig.<br>
Der fruchtige Geschmack der Johannisbeeren harmoniert perfekt <br>mit der feinen Säure des Essigs und verleiht jedem Salat ein besonderes Aroma.</p>
<div class="rating"></div>
<a href="#" class="link">See the recipe</a>
</div>
<!DOCTYPE html>
<html lang="de">
<head>
<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.">
<title>so.mach.ich.das | Recipes</title>
<style>
/* Grundlegendes Styling */
body {
font-family: system-ui, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background-color: white;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 20px;
max-width: 1200px;
flex-wrap: wrap;
}
nav {
display: flex;
gap: 20px;
}
h1 {
margin: 0;
font-size: 1.8em;
}
a {
text-decoration: none;
color: black;
}
/* Social Links (links positioniert) */
.social-links {
display: flex;
gap: 10px;
align-items: center;
}
.social-links a {
font-size: 1.5em;
}
/* Ladebildschirm */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(0, 0, 0, 0.1);
border-top: 5px solid black;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Inhalt */
.content {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
max-width: 1200px;
padding: 20px;
box-sizing: border-box;
}
.text, .image {
flex: 1;
width: 100%;
text-align: center;
}
.image img {
max-width: 100%;
height: auto;
border-radius: 8px;
}
.divider {
width: 100%;
height: 2px;
background-color: black;
margin: 20px 0;
}
/* Karte */
.card {
max-width: 300px;
background: white;
color: black;
border: 1px solid #dbdce0;
padding: 25px;
box-shadow: 8px 8px 0 rgba(32,33,37,.1);
transition: box-shadow .5s, transform .5s;
border-radius: 8px;
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;
}
/* 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 {
width: 100%;
}
.card {
max-width: 90%;
margin: 10px 0;
}
}
</style>
</head>
<body>
<header>
<div class="social-links">
<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">
<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="bio.html">BIO</a>
</nav>
</header>
<br>
<br>
<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>
// Funktion, die die Ladeanimation nach dem Laden der Seite ausblendet
window.onload = function() {
document.querySelector('.loading-overlay').style.display = 'none';
};
</script>
</body>
</html>

352
searchtest.html Normal file
View File

@ -0,0 +1,352 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Suche auf der Website</title>
<style>
.search {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}
.search__input {
font-family: inherit;
font-size: inherit;
background-color: #f4f2f2;
border: none;
color: #646464;
padding: 0.7rem 1rem;
border-radius: 30px;
width: 12em;
transition: all ease-in-out .5s;
}
.search__input:hover,
.search__input:focus {
box-shadow: 0 0 1em #00000013;
outline: none;
}
.search__button {
border: none;
background-color: #f4f2f2;
padding: 0.6rem;
border-radius: 50%;
cursor: pointer;
}
.search__icon {
height: 1.3em;
width: 1.3em;
fill: #b4b4b4;
}
.highlight {
background-color: yellow;
border-radius: 3px;
}
.highlight.active {
background-color: orange;
}
/* Grundlegendes Styling */
body {
font-family: system-ui, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background-color: white;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 20px;
max-width: 1200px;
flex-wrap: wrap;
}
nav {
display: flex;
gap: 20px;
}
h1 {
margin: 0;
font-size: 1.8em;
}
a {
text-decoration: none;
color: black;
}
/* Social Links (links positioniert) */
.social-links {
display: flex;
gap: 10px;
align-items: center;
}
.social-links a {
font-size: 1.5em;
}
/* Ladebildschirm */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(0, 0, 0, 0.1);
border-top: 5px solid black;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Inhalt */
.content {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
max-width: 1200px;
padding: 20px;
box-sizing: border-box;
}
.text, .image {
flex: 1;
width: 100%;
text-align: center;
}
.image img {
max-width: 100%;
height: auto;
border-radius: 8px;
}
.divider {
width: 100%;
height: 2px;
background-color: black;
margin: 20px 0;
}
/* Karte */
.card {
max-width: 300px;
background: white;
color: black;
border: 1px solid #dbdce0;
padding: 25px;
box-shadow: 8px 8px 0 rgba(32,33,37,.1);
transition: box-shadow .5s, transform .5s;
border-radius: 8px;
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;
}
/* 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 {
width: 100%;
}
.card {
max-width: 90%;
margin: 10px 0;
}
}
</style>
</head>
<body>
<header>
<div class="social-links">
<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">
<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="bio.html">BIO</a>
</nav>
</header>
<br>
<br>
<div class="search">
<input type="text" id="searchInput" class="search__input" placeholder="Suchbegriff eingeben">
<button class="search__button" onclick="highlightSearch()">
<svg class="search__icon" viewBox="0 0 24 24">
<path d="M21.53 20.47l-3.66-3.66C19.195 15.24 20 13.214 20 11c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9c2.215 0 4.24-.804 5.808-2.13l3.66 3.66c.147.146.34.22.53.22s.385-.073.53-.22c.295-.293.295-.767.002-1.06zM3.5 11c0-4.135 3.365-7.5 7.5-7.5s7.5 3.365 7.5 7.5-3.365 7.5-7.5 7.5-7.5-3.365-7.5-7.5z"/>
</svg>
</button>
<button onclick="navigateMatches(-1)">⬆️</button>
<button onclick="navigateMatches(1)">⬇️</button>
</div>
<br>
<br>
<div id="content">
<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>
</div>
<script>
let currentMatch = -1;
let matches = [];
function clearHighlights() {
matches.forEach(span => {
const parent = span.parentNode;
parent.replaceChild(document.createTextNode(span.textContent), span);
parent.normalize();
});
matches = [];
currentMatch = -1;
}
function highlightSearch() {
clearHighlights();
const searchInput = document.getElementById("searchInput");
const searchTerm = searchInput.value.trim().toLowerCase();
if (!searchTerm) return;
const content = document.getElementById("content");
const regex = new RegExp(searchTerm, "gi");
content.innerHTML = content.innerHTML.replace(/(<mark class="highlight.*?">|<\/mark>)/g, '');
const walker = document.createTreeWalker(content, NodeFilter.SHOW_TEXT);
const nodes = [];
while (walker.nextNode()) {
const node = walker.currentNode;
if (node.parentNode && node.nodeValue.toLowerCase().includes(searchTerm)) {
nodes.push(node);
}
}
nodes.forEach(node => {
const spanWrapper = document.createElement('span');
spanWrapper.innerHTML = node.nodeValue.replace(regex, match => `<mark class="highlight">${match}</mark>`);
node.parentNode.replaceChild(spanWrapper, node);
});
matches = Array.from(document.querySelectorAll(".highlight"));
if (matches.length > 0) {
currentMatch = 0;
scrollToCurrent();
}
}
function scrollToCurrent() {
matches.forEach((el, i) => {
el.classList.toggle("active", i === currentMatch);
});
matches[currentMatch].scrollIntoView({ behavior: "smooth", block: "center" });
}
function navigateMatches(direction) {
if (matches.length === 0) return;
currentMatch = (currentMatch + direction + matches.length) % matches.length;
scrollToCurrent();
}
// Optional: Suche mit Enter starten
document.getElementById("searchInput").addEventListener("keydown", e => {
if (e.key === "Enter") highlightSearch();
});
</script>
<script>
// Funktion, die die Ladeanimation nach dem Laden der Seite ausblendet
window.onload = function() {
document.querySelector('.loading-overlay').style.display = 'none';
};
</script>
</body>
</html>