Social-Login-Komponente
Eine minimalistische Social-Login-Komponente, die für Geschäfts-/Unternehmenswebsites mit komplementärem Farbschema und Unterstützung des Dunkelmodus entwickelt wurde.
HTML-Code
<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
<div class="bg-white dark:bg-gray-800 shadow-md rounded-lg p-8 w-96">
<h2 class="text-2xl font-bold text-gray-800 dark:text-white text-center mb-6">Login with Social Media</h2>
<div class="flex flex-col space-y-4">
<button class="flex items-center justify-center bg-blue-600 hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded-lg transition duration-200">
<img class="w-5 h-5 mr-2" src="https://picsum.photos/20" alt="Google Logo"> Login with Google
</button>
<button class="flex items-center justify-center bg-blue-600 hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded-lg transition duration-200">
<img class="w-5 h-5 mr-2" src="https://picsum.photos/20" alt="Facebook Logo"> Login with Facebook
</button>
<button class="flex items-center justify-center bg-blue-600 hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded-lg transition duration-200">
<img class="w-5 h-5 mr-2" src="https://picsum.photos/20" alt="LinkedIn Logo"> Login with LinkedIn
</button>
</div>
<div class="mt-4 text-center text-gray-600 dark:text-gray-400">
<p>Or login with your email</p>
</div>
<div class="mt-4 flex flex-col space-y-4">
<input type="email" placeholder="Email" class="border dark:border-gray-700 rounded-lg py-2 px-4 focus:outline-none focus:ring-2 focus:ring-blue-600 dark:focus:ring-blue-500" />
<input type="password" placeholder="Password" class="border dark:border-gray-700 rounded-lg py-2 px-4 focus:outline-none focus:ring-2 focus:ring-blue-600 dark:focus:ring-blue-500" />
<button class="bg-blue-600 hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600 text-white font-semibold py-2 rounded-lg transition duration-200">Login</button>
</div>
</div>
</div>
Verwandte Komponenten
Social-Login-Komponente
Responsive Social Login-Komponente mit Glassmorphism-Stil, lebendigen Farben und Unterstützung für dunkle Themen.
Social-Login-Komponente
Saubere, vom Code inspirierte Social-Login-Komponente mit Monospace-Schriftart und warmem, neutralem Farbschema, geeignet für Websites von Behörden/öffentlichen Diensten. Beinhaltet Unterstützung für responsives Design und Dunkelmodus.
Social-Login-Komponente
Eine komplexe, reaktionsschnelle Social-Login-Komponente, die für Dashboards entwickelt wurde. Verwendet eine Benutzeroberfläche im Dunkelmodus mit einem Graustufen-Farbschema. Verfügt über Schaltflächen für soziale Anbieter, ein E-Mail-/Passwort-Formular, einen "Remember me"-Schalter und ein Trennzeichen mit alternativen Anmeldeoptionen. Vollständig reaktionsschnell mit Bildillustration und verwendet Tailwind CSS mit dem Präfix dark: für die Unterstützung des dunklen Designs. Kein JavaScript erforderlich.