Catalogo design-system components/order-history

← catalogo / components/order-history

Components · Order history · Invoice list

TW-CO-OH-03 Tailwind Plus

tailwind/ecommerce/components/order-history/06-invoice-list

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-4xl py-16 sm:px-6 sm:py-24">
    <div class="px-4 sm:px-0">
      <h1 class="text-2xl font-bold tracking-tight text-gray-900 sm:text-3xl">Order history</h1>
      <p class="mt-2 text-sm text-gray-500">Check the status of recent orders, manage returns, and download invoices.</p>
    </div>

    <div class="mt-16">
      <h2 class="sr-only">Recent orders</h2>

      <div class="space-y-16 sm:space-y-24">
        <div>
          <h3 class="sr-only">Order placed on <time datetime="2021-01-22">January 22, 2021</time></h3>

          <div class="bg-gray-50 px-4 py-6 sm:rounded-lg sm:p-6 md:flex md:items-center md:justify-between md:space-x-6 lg:space-x-8">
            <dl class="flex-auto divide-y divide-gray-200 text-sm text-gray-600 md:grid md:grid-cols-3 md:gap-x-6 md:divide-y-0 lg:w-1/2 lg:flex-none lg:gap-x-8">
              <div class="max-md:flex max-md:justify-between max-md:py-4 max-md:first:pt-0 max-md:last:pb-0">
                <dt class="font-medium text-gray-900">Order number</dt>
                <dd class="md:mt-1">WU88191111</dd>
              </div>
              <div class="max-md:flex max-md:justify-between max-md:py-4 max-md:first:pt-0 max-md:last:pb-0">
                <dt class="font-medium text-gray-900">Date placed</dt>
                <dd class="md:mt-1">
                  <time datetime="2021-01-22">January 22, 2021</time>
                </dd>
              </div>
              <div class="max-md:flex max-md:justify-between max-md:py-4 max-md:first:pt-0 max-md:last:pb-0">
                <dt class="font-medium text-gray-900">Total amount</dt>
                <dd class="font-medium text-gray-900 md:mt-1">$302.00</dd>
              </div>
            </dl>
            <div class="mt-6 space-y-4 sm:flex sm:space-y-0 sm:space-x-4 md:mt-0">
              <a href="#" class="flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 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 md:w-auto">
                View Order
                <span class="sr-only">WU88191111</span>
              </a>
              <a href="#" class="flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 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 md:w-auto">
                View Invoice
                <span class="sr-only">for order WU88191111</span>
              </a>
            </div>
          </div>

          <div class="mt-6 flow-root px-4 sm:mt-10 sm:px-0">
            <div class="-my-6 divide-y divide-gray-200 sm:-my-10">
              <div class="flex py-6 sm:py-10">
                <div class="min-w-0 flex-1 lg:flex lg:flex-col">
                  <div class="lg:flex-1">
                    <div class="sm:flex">
                      <div>
                        <h4 class="font-medium text-gray-900">Nomad Tumbler</h4>
                        <p class="mt-2 hidden text-sm text-gray-500 sm:block">This durable double-walled insulated tumbler keeps your beverages at the perfect temperature all day long. Hot, cold, or even lukewarm if you&#039;re weird like that, this bottle is ready for your next adventure.</p>
                      </div>
                      <p class="mt-1 font-medium text-gray-900 sm:mt-0 sm:ml-6">$35.00</p>
                    </div>
                    <div class="mt-2 flex text-sm font-medium sm:mt-4">
                      <a href="#" class="text-indigo-600 hover:text-indigo-500">View Product</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">Buy Again</a>
                      </div>
                    </div>
                  </div>
                  <div class="mt-6 font-medium">
                    <p>Out for delivery</p>
                  </div>
                </div>
                <div class="ml-4 shrink-0 sm:order-first sm:m-0 sm:mr-6">
                  <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/order-history-page-06-product-01.jpg" alt="Olive drab green insulated bottle with flared screw lid and flat top." class="col-start-2 col-end-3 size-20 rounded-lg object-cover sm:col-start-1 sm:row-span-2 sm:row-start-1 sm:size-40 lg:size-52" />
                </div>
              </div>
              <div class="flex py-6 sm:py-10">
                <div class="min-w-0 flex-1 lg:flex lg:flex-col">
                  <div class="lg:flex-1">
                    <div class="sm:flex">
                      <div>
                        <h4 class="font-medium text-gray-900">Leather Long Wallet</h4>
                        <p class="mt-2 hidden text-sm text-gray-500 sm:block">We&#039;re not sure who carries cash anymore, but this leather long wallet will keep those bills nice and fold-free. The cashier hasn&#039;t seen print money in years, but you&#039;ll make a damn fine impression with your pristine cash monies.</p>
                      </div>
                      <p class="mt-1 font-medium text-gray-900 sm:mt-0 sm:ml-6">$118.00</p>
                    </div>
                    <div class="mt-2 flex text-sm font-medium sm:mt-4">
                      <a href="#" class="text-indigo-600 hover:text-indigo-500">View Product</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">Buy Again</a>
                      </div>
                    </div>
                  </div>
                  <div class="mt-6 font-medium">
                    <div class="flex space-x-2">
                      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" data-slot="icon" aria-hidden="true" class="size-6 flex-none text-green-500">
                        <path d="m4.5 12.75 6 6 9-13.5" stroke-linecap="round" stroke-linejoin="round" />
                      </svg>
                      <p>
                        Delivered<span class="hidden sm:inline"> on <time datetime="2021-01-25">January 25, 2021</time></span>
                      </p>
                    </div>
                  </div>
                </div>
                <div class="ml-4 shrink-0 sm:order-first sm:m-0 sm:mr-6">
                  <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/order-history-page-06-product-02.jpg" alt="Leather long wallet held open with hand-stitched card dividers, full-length bill pocket, and simple tab closure." class="col-start-2 col-end-3 size-20 rounded-lg object-cover sm:col-start-1 sm:row-span-2 sm:row-start-1 sm:size-40 lg:size-52" />
                </div>
              </div>
              <div class="flex py-6 sm:py-10">
                <div class="min-w-0 flex-1 lg:flex lg:flex-col">
                  <div class="lg:flex-1">
                    <div class="sm:flex">
                      <div>
                        <h4 class="font-medium text-gray-900">Minimalist Wristwatch</h4>
                        <p class="mt-2 hidden text-sm text-gray-500 sm:block">This contemporary wristwatch has a clean, minimalist look and high quality components. Everyone knows you&#039;ll never use it to check the time, but wow, does that wrist look good with this timepiece on it.</p>
                      </div>
                      <p class="mt-1 font-medium text-gray-900 sm:mt-0 sm:ml-6">$149.00</p>
                    </div>
                    <div class="mt-2 flex text-sm font-medium sm:mt-4">
                      <a href="#" class="text-indigo-600 hover:text-indigo-500">View Product</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">Buy Again</a>
                      </div>
                    </div>
                  </div>
                  <div class="mt-6 font-medium">
                    <div class="flex space-x-2">
                      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" data-slot="icon" aria-hidden="true" class="size-6 flex-none text-green-500">
                        <path d="m4.5 12.75 6 6 9-13.5" stroke-linecap="round" stroke-linejoin="round" />
                      </svg>
                      <p>
                        Delivered<span class="hidden sm:inline"> on <time datetime="2021-01-25">January 25, 2021</time></span>
                      </p>
                    </div>
                  </div>
                </div>
                <div class="ml-4 shrink-0 sm:order-first sm:m-0 sm:mr-6">
                  <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/order-history-page-06-product-03.jpg" alt="Wristwatch with black leather band, brass ring-3, white watch face, thin watch hands, and fine time markings." class="col-start-2 col-end-3 size-20 rounded-lg object-cover sm:col-start-1 sm:row-span-2 sm:row-start-1 sm:size-40 lg:size-52" />
                </div>
              </div>
            </div>
          </div>
        </div>
        <div>
          <h3 class="sr-only">Order placed on <time datetime="2021-01-05">January 5, 2021</time></h3>

          <div class="bg-gray-50 px-4 py-6 sm:rounded-lg sm:p-6 md:flex md:items-center md:justify-between md:space-x-6 lg:space-x-8">
            <dl class="flex-auto divide-y divide-gray-200 text-sm text-gray-600 md:grid md:grid-cols-3 md:gap-x-6 md:divide-y-0 lg:w-1/2 lg:flex-none lg:gap-x-8">
              <div class="max-md:flex max-md:justify-between max-md:py-4 max-md:first:pt-0 max-md:last:pb-0">
                <dt class="font-medium text-gray-900">Order number</dt>
                <dd class="md:mt-1">WU88191009</dd>
              </div>
              <div class="max-md:flex max-md:justify-between max-md:py-4 max-md:first:pt-0 max-md:last:pb-0">
                <dt class="font-medium text-gray-900">Date placed</dt>
                <dd class="md:mt-1">
                  <time datetime="2021-01-05">January 5, 2021</time>
                </dd>
              </div>
              <div class="max-md:flex max-md:justify-between max-md:py-4 max-md:first:pt-0 max-md:last:pb-0">
                <dt class="font-medium text-gray-900">Total amount</dt>
                <dd class="font-medium text-gray-900 md:mt-1">$27.00</dd>
              </div>
            </dl>
            <div class="mt-6 space-y-4 sm:flex sm:space-y-0 sm:space-x-4 md:mt-0">
              <a href="#" class="flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 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 md:w-auto">
                View Order
                <span class="sr-only">WU88191009</span>
              </a>
              <a href="#" class="flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 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 md:w-auto">
                View Invoice
                <span class="sr-only">for order WU88191009</span>
              </a>
            </div>
          </div>

          <div class="mt-6 flow-root px-4 sm:mt-10 sm:px-0">
            <div class="-my-6 divide-y divide-gray-200 sm:-my-10">
              <div class="flex py-6 sm:py-10">
                <div class="min-w-0 flex-1 lg:flex lg:flex-col">
                  <div class="lg:flex-1">
                    <div class="sm:flex">
                      <div>
                        <h4 class="font-medium text-gray-900">Mini Sketchbook Set</h4>
                        <p class="mt-2 hidden text-sm text-gray-500 sm:block">These pocket-sized sketchbooks feature recycled paper covers and screen printed designs from our top-selling poster collection. You have ideas, doodles, and notes, but nowhere to write them down. We have paper, wrapped in sturdier paper.</p>
                      </div>
                      <p class="mt-1 font-medium text-gray-900 sm:mt-0 sm:ml-6">$27.00</p>
                    </div>
                    <div class="mt-2 flex text-sm font-medium sm:mt-4">
                      <a href="#" class="text-indigo-600 hover:text-indigo-500">View Product</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">Buy Again</a>
                      </div>
                    </div>
                  </div>
                  <div class="mt-6 font-medium">
                    <p class="text-gray-500">Cancelled</p>
                  </div>
                </div>
                <div class="ml-4 shrink-0 sm:order-first sm:m-0 sm:mr-6">
                  <img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/order-history-page-06-product-04.jpg" alt="Set of three light and dark brown mini sketch books." class="col-start-2 col-end-3 size-20 rounded-lg object-cover sm:col-start-1 sm:row-span-2 sm:row-start-1 sm:size-40 lg:size-52" />
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>