Retro-Schaltflächen zum Teilen in sozialen Netzwerken
Social-Share-Buttons-Komponente mit Retro-/Vintage-Design, responsiven Effekten und Unterstützung für dunkle Themen mit Tailwind CSS, kein JavaScript erforderlich.
HTML-Code
<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900" style="font-family: 'Press Start 2P', cursive;">
<div class="flex space-x-4 p-6 bg-white dark:bg-gray-800 rounded-lg shadow-retro">
<a href="#" class="share-button facebook">
<img src="https://img.icons8.com/fluent/48/000000/facebook-new.png" alt="Facebook" class="w-8 h-8">
</a>
<a href="#" class="share-button twitter">
<img src="https://img.icons8.com/fluent/48/000000/twitter.png" alt="Twitter" class="w-8 h-8">
</a>
<a href="#" class="share-button instagram">
<img src="https://img.icons8.com/fluent/48/000000/instagram.png" alt="Instagram" class="w-8 h-8">
</a>
<a href="#" class="share-button pinterest">
<img src="https://img.icons8.com/fluent/48/000000/pinterest.png" alt="Pinterest" class="w-8 h-8">
</a>
</div>
<style>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
.shadow-retro {
box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
}
.dark .shadow-retro {
box-shadow: 8px 8px 0px rgba(255, 255, 255, 0.2);
}
.share-button {
display: flex;
align-items: center;
justify-content: center;
padding: 0.75rem;
border-radius: 0.5rem;
transition: all 0.3s ease;
border: 2px solid #000;
}
.dark .share-button {
border: 2px solid #fff;
}
.share-button:hover {
transform: translateY(-5px);
box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}
.dark .share-button:hover {
box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.3);
}
.facebook {
background-color: #4267B2;
}
.twitter {
background-color: #1DA1F2;
}
.instagram {
background-color: #E1306C;
}
.pinterest {
background-color: #BD081C;
}
</style>
</div>
Verwandte Komponenten
Skeuomorphe Social-Share-Buttons
Responsive Social-Share-Buttons-Komponente mit skeuomorphem Design, monochromatischem Farbschema und komplexen Interaktionen mit Unterstützung für dunkle Themen. Entwickelt für Blogs und Content-Websites.
Komponente "Social-Share-Buttons"
Eine reaktionsschnelle Social-Share-Buttons-Komponente im Retro-/Vintage-Design und Pastell-Farbschema, die den Dunkelmodus unterstützt und für Social-Media-Schnittstellen geeignet ist.
Social-Share-Schaltflächen
Social-Share-Buttons-Komponente mit Glassmorphism-Design, responsiven Effekten und Unterstützung für dunkle Themen. Es wird kein JavaScript verwendet.