1
0
2025-02-01 15:08:14 +01:00

144 lines
5.3 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Creative Crafter</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/ldrs/dist/auto/quantum.js"></script>
<!-- Entferne leeren Link zum Stylesheet -->
<!-- <link href="" rel="stylesheet"> -->
<style>
@font-face { font-family: "Titillium"; src: url("/Titillium-Web-Regular.ttf"); }
body, html {
font-family: 'Titillium';
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background-color: #e6f7ff;
}
h1, h2 { text-align: center; }
.loader-container {
display: none;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
position: fixed;
top: 0;
left: 0;
background-color: rgba(173, 216, 230, 0.8);
z-index: 9999;
}
.loading .loader-container { display: flex; }
.button {
--white: #fff;
cursor: pointer;
background: linear-gradient(to bottom, #6e3bff, #7e51ff);
color: #fff;
border: 1px solid #af93ff;
border-radius: 8px;
position: relative;
font-family: Arial, Helvetica, sans-serif;
text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
box-shadow: 0 8px 10px -4px #503b89, 0 0 0 2px #562cce;
font-size: 25px;
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 20px;
}
/* Icon- und Animationsstile bleiben unverändert */
.icon path.bm { /* ... */ }
/* ... weitere vorhandene CSS-Stile ... */
/* Anpassungen für den Teilen-Button */
.button .icon-container .icon {
width: 25px;
height: 30px;
stroke: #592cd6;
margin-top: -2px;
z-index: 4;
/* Entferne die Rotation für das Teilen-Icon */
/* transform: rotate(180deg); */
}
</style>
</head>
<body>
<!-- Ladeanimation -->
<div class="loader-container">
<l-quantum size="90" speed="1.75" color="black"></l-quantum>
</div>
<h1><img src="/icons/Controller.png" height="150svh"><br/>Creative Crafter</h1>
<h1>Flappy Witch</h1>
<div align='center'>
<img src="/programmieren/spiele/Flappy-Witch/logo.png" width="250vh">
</div>
<br/>
<div align='center'>
<!-- Spielen-Button -->
<a href="/programmieren/spiele/Flappy-Witch/FlappyWitch.html">
<img src="/icons/spielen-button.png" width="500vh">
</a>
<br/><br/>
<!-- Neuer Teilen-Button -->
<button class="button" onclick="shareText()">
<div class="icon-container">
<svg viewBox="0 0 24 24" fill="none" class="icon">
<!-- Teilen-Icon -->
<path d="M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
</div>
<div class="content">
<div class="letters">
<span data-label="T" style="--i:0;">T</span>
<span data-label="e" style="--i:1;">e</span>
<span data-label="i" style="--i:2;">i</span>
<span data-label="l" style="--i:3;">l</span>
<span data-label="e" style="--i:4;">e</span>
<span data-label="n" style="--i:5;">n</span>
</div>
</div>
</button>
</div>
<br/><br/><br/>
<div align='center'>
<img src="/programmieren/spiele/Flappy-Witch/FlappyWitch1.png" width="250vh">
<img src="/programmieren/spiele/Flappy-Witch/FlappyWitch2.png" width="250vh">
</div>
<!-- JavaScript für Ladeanimation und Teilen-Funktion -->
<script>
// Ladeanimation beim Laden der Seite anzeigen
document.body.classList.add('loading');
// Ladeanimation entfernen, wenn die Seite vollständig geladen ist
window.addEventListener('load', () => {
document.body.classList.remove('loading');
});
// Teilen-Funktion
function shareText() {
const shareData = {
title: 'Flappy Witch',
text: 'Schau dir dieses fantastische Spiel an!',
url: 'https://www.creative-crafter.de/programmieren/spiele/Flappy-Witch/'
};
if (navigator.share) {
navigator.share(shareData)
.then(() => console.log('Erfolgreich geteilt'))
.catch((error) => console.log('Fehler beim Teilen', error));
} else {
// Fallback für Browser ohne Web Share API
// Öffnet den WhatsApp-Share-Link
const whatsappUrl = 'https://api.whatsapp.com/send?text=' + encodeURIComponent(shareData.text + ' ' + shareData.url);
window.open(whatsappUrl, '_blank');
}
}
</script>
</body>
</html>