Catalogo design-system components/order-history

← catalogo / components/order-history

Components · Order history · Invoice list with quick actions

TW-CO-OH-04 Tailwind Plus

tailwind/ecommerce/components/order-history/07-invoice-list-with-quick-actions

Da toccare per il marchio

  • colore indigo: sostituisci col colore del marchio
  • collegamenti a vuoto: puntali alle rotte vere

Sorgente (html)

<div class="bg-white">
  <div class="mx-auto max-w-3xl px-4 py-16 sm:px-6 sm:py-24">
    <div class="max-w-xl">
      <h1 id="your-orders-heading" class="text-3xl font-bold tracking-tight text-gray-900">Your Orders</h1>
      <p class="mt-2 text-sm text-gray-500">Check the status of recent orders, manage returns, and discover similar products.</p>
    </div>

    <div class="mt-12 space-y-16 sm:mt-16">
      <section aria-labelledby="4376-heading">
        <div class="space-y-1 md:flex md:items-baseline md:space-y-0 md:space-x-4">
          <h2 id="4376-heading" class="text-lg font-medium text-gray-900 md:shrink-0">Order #4376</h2>
          <div class="space-y-5 sm:flex sm:items-baseline sm:justify-between sm:space-y-0 md:min-w-0 md:flex-1">
            <p class="text-sm font-medium text-gray-500">Delivered on January 22, 2021</p>
            <div class="flex text-sm font-medium">
              <a href="#" class="text-indigo-600 hover:text-indigo-500">Manage order</a>
              <div class="ml-4 border-l border-gray-200 pl-4 sm:ml-6 sm:pl-6">
                <a href="#" class="text-indigo-600 hover:text-indigo-500">View Invoice</a>
              </div>
            </div>
          </div>
        </div>

        <div class="mt-6 -mb-6 flow-root divide-y divide-gray-200 border-t border-gray-200">
          <div class="py-6 sm:flex">
            <div class="flex space-x-4 sm:min-w-0 sm:flex-1 sm:space-x-6 lg:space-x-8">
              <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/order-history-page-07-product-01.jpg" alt="Brass puzzle in the shape of a jack with overlapping rounded posts." class="size-20 flex-none rounded-md object-cover sm:size-48" />
              <div class="min-w-0 flex-1 pt-1.5 sm:pt-0">
                <h3 class="text-sm font-medium text-gray-900">
                  <a href="#">Machined Brass Puzzle</a>
                </h3>
                <p class="truncate text-sm text-gray-500">
                  <span>Brass</span>
                  <span aria-hidden="true" class="mx-1 text-gray-400">&middot;</span>
                  <span>3&quot; x 3&quot; x 3&quot;</span>
                </p>
                <p class="mt-1 font-medium text-gray-900">$95.00</p>
              </div>
            </div>
            <div class="mt-6 space-y-4 sm:mt-0 sm:ml-6 sm:w-40 sm:flex-none">
              <button type="button" class="flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-600 px-2.5 py-2 text-sm font-medium text-white shadow-xs hover:bg-indigo-700 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden sm:grow-0">Buy again</button>
              <button type="button" class="flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-2.5 py-2 text-sm font-medium text-gray-700 shadow-xs hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden sm:grow-0">Shop similar</button>
            </div>
          </div>
          <div class="py-6 sm:flex">
            <div class="flex space-x-4 sm:min-w-0 sm:flex-1 sm:space-x-6 lg:space-x-8">
              <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/order-history-page-07-product-02.jpg" alt="Large cylindrical planter with textured natural porcelain color and separate drainage base." class="size-20 flex-none rounded-md object-cover sm:size-48" />
              <div class="min-w-0 flex-1 pt-1.5 sm:pt-0">
                <h3 class="text-sm font-medium text-gray-900">
                  <a href="#">Earthen Planter</a>
                </h3>
                <p class="truncate text-sm text-gray-500">
                  <span>Natural</span>
                  <span aria-hidden="true" class="mx-1 text-gray-400">&middot;</span>
                  <span>Large</span>
                </p>
                <p class="mt-1 font-medium text-gray-900">$62.00</p>
              </div>
            </div>
            <div class="mt-6 space-y-4 sm:mt-0 sm:ml-6 sm:w-40 sm:flex-none">
              <button type="button" class="flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-600 px-2.5 py-2 text-sm font-medium text-white shadow-xs hover:bg-indigo-700 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden sm:grow-0">Buy again</button>
              <button type="button" class="flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-2.5 py-2 text-sm font-medium text-gray-700 shadow-xs hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden sm:grow-0">Shop similar</button>
            </div>
          </div>
          <div class="py-6 sm:flex">
            <div class="flex space-x-4 sm:min-w-0 sm:flex-1 sm:space-x-6 lg:space-x-8">
              <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/order-history-page-07-product-03.jpg" alt="Olive green leather card-sized wallet with matching hand stitched and embossed logo on lower right." class="size-20 flex-none rounded-md object-cover sm:size-48" />
              <div class="min-w-0 flex-1 pt-1.5 sm:pt-0">
                <h3 class="text-sm font-medium text-gray-900">
                  <a href="#">Minimalist Leather Wallet</a>
                </h3>
                <p class="truncate text-sm text-gray-500">
                  <span>Olive</span>
                  <span aria-hidden="true" class="mx-1 text-gray-400">&middot;</span>
                  <span>4&quot; L x 2.75&quot; W</span>
                </p>
                <p class="mt-1 font-medium text-gray-900">$640.00</p>
              </div>
            </div>
            <div class="mt-6 space-y-4 sm:mt-0 sm:ml-6 sm:w-40 sm:flex-none">
              <button type="button" class="flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-600 px-2.5 py-2 text-sm font-medium text-white shadow-xs hover:bg-indigo-700 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden sm:grow-0">Buy again</button>
              <button type="button" class="flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-2.5 py-2 text-sm font-medium text-gray-700 shadow-xs hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden sm:grow-0">Shop similar</button>
            </div>
          </div>
        </div>
      </section>
      <section aria-labelledby="4134-heading">
        <div class="space-y-1 md:flex md:items-baseline md:space-y-0 md:space-x-4">
          <h2 id="4134-heading" class="text-lg font-medium text-gray-900 md:shrink-0">Order #4134</h2>
          <div class="space-y-5 sm:flex sm:items-baseline sm:justify-between sm:space-y-0 md:min-w-0 md:flex-1">
            <p class="text-sm font-medium text-gray-500">Delivered on January 5, 2021</p>
            <div class="flex text-sm font-medium">
              <a href="#" class="text-indigo-600 hover:text-indigo-500">Manage order</a>
              <div class="ml-4 border-l border-gray-200 pl-4 sm:ml-6 sm:pl-6">
                <a href="#" class="text-indigo-600 hover:text-indigo-500">View Invoice</a>
              </div>
            </div>
          </div>
        </div>

        <div class="mt-6 -mb-6 flow-root divide-y divide-gray-200 border-t border-gray-200">
          <div class="py-6 sm:flex">
            <div class="flex space-x-4 sm:min-w-0 sm:flex-1 sm:space-x-6 lg:space-x-8">
              <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/order-history-page-07-product-04.jpg" alt="Black powder coated steel bookends with bent rod l-shape." class="size-20 flex-none rounded-md object-cover sm:size-48" />
              <div class="min-w-0 flex-1 pt-1.5 sm:pt-0">
                <h3 class="text-sm font-medium text-gray-900">
                  <a href="#">Machined Steel Bookends</a>
                </h3>
                <p class="truncate text-sm text-gray-500">
                  <span>Black</span>
                  <span aria-hidden="true" class="mx-1 text-gray-400">&middot;</span>
                  <span>7.75&quot; H x 6&quot; W x 4.5&quot; D</span>
                </p>
                <p class="mt-1 font-medium text-gray-900">$95.00</p>
              </div>
            </div>
            <div class="mt-6 space-y-4 sm:mt-0 sm:ml-6 sm:w-40 sm:flex-none">
              <button type="button" class="flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-600 px-2.5 py-2 text-sm font-medium text-white shadow-xs hover:bg-indigo-700 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden sm:grow-0">Buy again</button>
              <button type="button" class="flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-2.5 py-2 text-sm font-medium text-gray-700 shadow-xs hover:bg-gray-50 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden sm:grow-0">Shop similar</button>
            </div>
          </div>
        </div>
      </section>
    </div>
  </div>
</div>