组件 结帐表格 结账表单组件

结账表单组件

一个简单且响应式的结帐表单组件,使用 Tailwind CSS,支持深色模式。

预览

HTML 代码

<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>

相关组件

LuxuryCheckout表格

豪华/高级风格的结帐表单组件,具有多色渐变背景、复杂的排版和精致的元素。专为文档/wiki 网站设计,它完全响应并支持深色模式。

打开

结帐表单组件

用于产品组合的极简主义、平面设计结帐表单组件,具有大地色调、响应式设计、深色模式支持和多个交互式元素。使用 HTML 和 Tailwind CSS。

打开

结帐表单组件

响应式结帐表单,具有黑白单色样式、明亮的强调色、渐变过渡和深色模式支持,适用于运动/健身应用。

打开