Komponente des Checkout-Formulars
Eine einfache und reaktionsschnelle Checkout-Formularkomponente mit Unterstützung für den Dunkelmodus unter Verwendung von Tailwind CSS.
HTML-Code
<div class="min-h-screen flex items-center justify-center p-6 bg-gray-900">
<div class="w-full max-w-md bg-gray-800 p-8 rounded-md shadow-md">
<h2 class="text-2xl font-bold text-white mb-6">Checkout</h2>
<form>
<div class="mb-4">
<label for="name" class="block text-white text-sm font-bold mb-2">Name</label>
<input type="text" id="name" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-700 text-white border-gray-600">
</div>
<div class="mb-4">
<label for="email" class="block text-white text-sm font-bold mb-2">Email</label>
<input type="email" id="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-700 text-white border-gray-600">
</div>
<div class="mb-4">
<label for="card" class="block text-white text-sm font-bold mb-2">Card Number</label>
<input type="text" id="card" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-700 text-white border-gray-600">
</div>
<div class="mb-6">
<label for="expiry" class="block text-white text-sm font-bold mb-2">Expiry Date</label>
<input type="text" id="expiry" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-700 text-white border-gray-600">
</div>
<div class="flex items-center justify-between">
<button type="button" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">Submit</button>
</div>
</form>
</div>
</div>
Verwandte Komponenten
Komponente des Checkout-Formulars
Ein responsives Checkout-Formular mit glassmorphism-Design, mit mattglasähnlichen, durchscheinenden Elementen und Unterstützung für den Dunkelmodus.
Komponente des Checkout-Formulars
Ein responsives Checkout-Formular mit minimalistischem Design, reichhaltiger Benutzeroberfläche und triadischem Farbschema, das dunkle Themen unterstützt.
Neumorphism Checkout-Formular
Neumorphism Checkout Form-Komponente mit analogem Farbschema für eine Portfolio-Website. Es hat ein responsives Design mit Unterstützung für den Dunkelmodus. Es ist kein JavaScript-Code enthalten, sondern nur HTML mit Tailwind-Klassen.