1
0
This commit is contained in:
matt 2025-02-01 16:22:40 +01:00
parent 974c96319f
commit 3c2311dc7a

View File

@ -9,7 +9,6 @@
<!-- Stylesheet -->
<style>
@font-face { font-family: "Titillium"; src: url("/Titillium-Web-Regular.ttf"); }
body, html {
font-family: 'Titillium';
height: 100%;
@ -57,14 +56,12 @@
gap: 8px;
margin-top: 20px;
}
.icon path.bm {
stroke-dasharray: 3;
stroke-dashoffset: 3;
stroke-width: 1px;
transform: translateX(-23px) translateY(16px) scale(2) rotate(-44deg);
}
.icon-container {
display: flex;
align-items: center;
@ -146,12 +143,10 @@
50% { transform: translateY(-15%); opacity: 1; filter: blur(0); }
100% { transform: translateY(0); opacity: 1; }
}
@keyframes letterHide {
0% { transform: translateY(0); opacity: 1; }
100% { transform: translateY(-70%); opacity: 0; filter: blur(3px); }
}
/* Modal-Stile */
.modal {
display: none;
@ -164,7 +159,6 @@
overflow: auto;
background-color: rgba(0,0,0,0.5);
}
.modal-content {
background-color: #fefefe;
margin: 15% auto;
@ -175,7 +169,6 @@
text-align: center;
border-radius: 10px;
}
.close {
color: #aaa;
float: right;
@ -205,121 +198,218 @@
.social-icons a img:hover {
transform: scale(1.1);
}
</style>
/* New Blue Button Styles */
.flex {
display: flex;
}
.justify-center {
justify-content: center;
}
.items-center {
align-items: center;
}
.gap-12 {
gap: 12px;
}
.h-full {
height: 100%;
}
.bg-gradient-to-b {
background: linear-gradient(to bottom, var(--from), var(--to));
}
.from-blue-600 {
--from: #007bff;
}
.to-blue-700 {
--to: #0056b3;
}
.p-[4px] {
padding: 4px;
}
.rounded-[16px] {
border-radius: 16px;
}
.group:hover .hover:shadow-[0_4px_8px_rgba(0,0,0,0.6)] {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}
.group:active .active:shadow-[0_0px_1px_rgba(0,0,0,0.8)] {
box-shadow: 0 0px 1px rgba(0, 0, 0, 0.8);
}
.group:active .active:scale-[0.995] {
transform: scale(0.995);
}
.group .transition-all {
transition: all 0.2s;
}
.group .duration-200 {
transition-duration: 200ms;
}
.rounded-[12px] {
border-radius: 12px;
}
.shadow-[0_2px_4px_rgba(0,0,0,0.7)] {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}
.rounded-[8px] {
border-radius: 8px;
}
.px-3 {
padding-left: 12px;
padding-right: 12px;
}
.py-2 {
padding-top: 8px;
padding-bottom: 8px;
}
.font-semibold {
font-weight: 600;
[_{{{CITATION{{{_1{](https://github.com/hd-code/pandoc-docker/tree/07f83c6deeafbff1710c5f7992a97955c298ad61/example%2Fexample.md)[_{{{CITATION{{{_2{](https://github.com/AndreasHeine/opcua-sub-to-websocket/tree/b272dca8c8abf371e5e35f05ce93949bdb775723/README.md) }
</style>
</head>
<body>
<!-- Ladeanimation -->
<div class="loader-container">
<l-quantum size="90" speed="1.75" color="black"></l-quantum>
</div>
<!-- Ladeanimation -->
<div class="loader-container">
<l-quantum size="90" speed="1.75" color="black"></l-quantum>
</div>
<h1><img src="/icons/Controller.png" height="150"><br/>Creative Crafter</h1>
<h1>Flappy Witch</h1>
<div align='center'>
<img src="/programmieren/spiele/Flappy-Witch/logo.png" width="250">
</div>
<br/>
<div align='center'>
<!-- Spielen-Button -->
<a href="/programmieren/spiele/Flappy-Witch/FlappyWitch.html">
<img src="/icons/spielen-button.png" width="500">
</a>
<br/><br/>
<!-- Neuer Teilen-Button -->
<button class="button" onclick="openSharePopup()">
<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="S" style="--i:0;">S</span>
<span data-label="h" style="--i:1;">h</span>
<span data-label="a" style="--i:2;">a</span>
<span data-label="r" style="--i:3;">r</span>
<span data-label="e" style="--i:4;">e</span>
</div>
</div>
</button>
</div>
<!-- Popup-Fenster zum Teilen -->
<div id="shareModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeSharePopup()">&times;</span>
<h2>Share with:</h2>
<div class="social-icons">
<a href="#" onclick="shareViaWhatsApp()">
<img src="/icons/whatsapp-icon.png" alt="WhatsApp" />
</a>
<a href="#" onclick="shareViaTelegram()">
<img src="/icons/telegram-icon.png" alt="Telegram" />
</a>
<a href="#" onclick="shareViaEmail()">
<img src="/icons/email-icon.png" alt="E-Mail" />
</a>
<!-- Weitere Sharing-Optionen kannst du hier hinzufügen -->
</div>
<h1><img src="/icons/Controller.png" height="150"><br/>Creative Crafter</h1>
<h1>Flappy Witch</h1>
<div align='center'>
<img src="/programmieren/spiele/Flappy-Witch/logo.png" width="250">
</div>
<br/>
<div align='center'>
<!-- Spielen-Button -->
<div class="flex justify-center items-center gap-12 h-full">
<div class="bg-gradient-to-b from-blue-600 to-blue-700 p-[4px] rounded-[16px]">
<a href="/programmieren/spiele/Flappy-Witch/FlappyWitch.html">
<button class="group p-[4px] rounded-[12px] bg-gradient-to-b from-blue-600 to-blue-700 shadow-[0_2px_4px_rgba(0,0,0,0.7)] hover:shadow-[0_4px_8px_rgba(0,0,0,0.6)] active:shadow-[0_0px_1px_rgba(0,0,0,0.8)] active:scale-[0.995] transition-all duration-200">
<div class="bg-gradient-to-b from-blue-600 to-blue-700 rounded-[8px] px-3 py-2">
<div class="flex gap-2 items-center">
<span class="font-semibold text-white">Get Started</span>
</div>
</div>
</button>
</a>
</div>
</div>
<br/><br/>
<!-- Neuer Teilen-Button -->
<button class="button" onclick="openSharePopup()">
<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="S" style="--i:0;">S</span>
<span data-label="h" style="--i:1;">h</span>
<span data-label="a" style="--i:2;">a</span>
<span data-label="r" style="--i:3;">r</span>
<span data-label="e" style="--i:4;">e</span>
</div>
</div>
</button>
</div>
<br/><br/><br/>
<div align='center'>
<img src="/programmieren/spiele/Flappy-Witch/FlappyWitch1.png" width="250">
<img src="/programmieren/spiele/Flappy-Witch/FlappyWitch2.png" width="250">
<!-- Popup-Fenster zum Teilen -->
<div id="shareModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeSharePopup()">&times;</span>
<h2>Share with:</h2>
<div class="social-icons">
<a href="#" onclick="shareViaWhatsApp()">
<img src="/icons/whatsapp-icon.png" alt="WhatsApp" />
</a>
<a href="#" onclick="shareViaTelegram()">
<img src="/icons/telegram-icon.png" alt="Telegram" />
</a>
<a href="#" onclick="shareViaEmail()">
<img src="/icons/email-icon.png" alt="E-Mail" />
</a>
<!-- Weitere Sharing-Optionen kannst du hier hinzufügen -->
</div>
</div>
</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');
});
<br/><br/><br/>
<div align='center'>
<img src="/programmieren/spiele/Flappy-Witch/FlappyWitch1.png" width="250">
<img src="/programmieren/spiele/Flappy-Witch/FlappyWitch2.png" width="250">
</div>
// Funktion zum Öffnen des Popup-Fensters
function openSharePopup() {
document.getElementById("shareModal").style.display = "block";
<!-- 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');
});
// Funktion zum Öffnen des Popup-Fensters
function openSharePopup() {
document.getElementById("shareModal").style.display = "block";
}
// Funktion zum Schließen des Popup-Fensters
function closeSharePopup() {
document.getElementById("shareModal").style.display = "none";
}
// Teilen via WhatsApp
function shareViaWhatsApp() {
const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/');
const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank');
}
// Teilen via Telegram
function shareViaTelegram() {
const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/');
const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank');
}
// Teilen via E-Mail
function shareViaEmail() {
const subject = encodeURIComponent('Flappy Witch');
const body = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
}
// Schließt das Popup bei Klick außerhalb des Inhalts
window.onclick = function(event) {
const modal = document.getElementById('shareModal');
if (event.target == modal) {
closeSharePopup();
}
// Funktion zum Schließen des Popup-Fensters
function closeSharePopup() {
document.getElementById("shareModal").style.display = "none";
}
// Teilen via WhatsApp
function shareViaWhatsApp() {
const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/');
const url = 'https://api.whatsapp.com/send?text=' + text;
window.open(url, '_blank');
}
// Teilen via Telegram
function shareViaTelegram() {
const text = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/');
const url = 'https://t.me/share/url?url=' + text;
window.open(url, '_blank');
}
// Teilen via E-Mail
function shareViaEmail() {
const subject = encodeURIComponent('Flappy Witch');
const body = encodeURIComponent('Schau dir dieses fantastische Spiel an! https://test.creative-crafter.de/programmieren/spiele/Flappy-Witch/');
window.location.href = 'mailto:?subject=' + subject + '&body=' + body;
}
// Schließt das Popup bei Klick außerhalb des Inhalts
window.onclick = function(event) {
const modal = document.getElementById('shareModal');
if (event.target == modal) {
closeSharePopup();
}
}
</script>
}
</script>
</body>
</html>