Catalogo design-system lists/tables

← catalogo / lists/tables

Lists · Tables · With summary rows

TW-LI-TA-15 Tailwind Plus

tailwind/application-ui/lists/tables/15-with-summary-rows

Da toccare per il marchio

  • colore indigo: sostituisci col colore del marchio

Sorgente (html)

<div class="px-4 sm:px-6 lg:px-8">
  <div class="sm:flex sm:items-center">
    <div class="sm:flex-auto">
      <h1 class="text-base font-semibold text-gray-900 dark:text-white">Invoice</h1>
      <p class="mt-2 text-sm text-gray-700 dark:text-gray-300">For work completed from <time datetime="2022-08-01">August 1, 2022</time> to <time datetime="2022-08-31">August 31, 2022</time>.</p>
    </div>
    <div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none">
      <button type="button" class="block rounded-md bg-indigo-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:bg-indigo-500 dark:hover:bg-indigo-400 dark:focus-visible:outline-indigo-500">Print</button>
    </div>
  </div>
  <div class="-mx-4 mt-8 flow-root sm:mx-0">
    <table class="min-w-full">
      <colgroup>
        <col class="w-full sm:w-1/2" />
        <col class="sm:w-1/6" />
        <col class="sm:w-1/6" />
        <col class="sm:w-1/6" />
      </colgroup>
      <thead class="border-b border-gray-300 text-gray-900 dark:border-white/15 dark:text-white">
        <tr>
          <th scope="col" class="py-3.5 pr-3 pl-4 text-left text-sm font-semibold text-gray-900 sm:pl-0 dark:text-white">Project</th>
          <th scope="col" class="hidden px-3 py-3.5 text-right text-sm font-semibold text-gray-900 sm:table-cell dark:text-white">Hours</th>
          <th scope="col" class="hidden px-3 py-3.5 text-right text-sm font-semibold text-gray-900 sm:table-cell dark:text-white">Rate</th>
          <th scope="col" class="py-3.5 pr-4 pl-3 text-right text-sm font-semibold text-gray-900 sm:pr-0 dark:text-white">Price</th>
        </tr>
      </thead>
      <tbody>
        <tr class="border-b border-gray-200 dark:border-white/10">
          <td class="max-w-0 py-5 pr-3 pl-4 text-sm sm:pl-0">
            <div class="font-medium text-gray-900 dark:text-white">Logo redesign</div>
            <div class="mt-1 truncate text-gray-500 dark:text-gray-400">New logo and digital asset playbook.</div>
          </td>
          <td class="hidden px-3 py-5 text-right text-sm text-gray-500 sm:table-cell dark:text-gray-400">20.0</td>
          <td class="hidden px-3 py-5 text-right text-sm text-gray-500 sm:table-cell dark:text-gray-400">$100.00</td>
          <td class="py-5 pr-4 pl-3 text-right text-sm text-gray-500 sm:pr-0 dark:text-gray-400">$2,000.00</td>
        </tr>
        <tr class="border-b border-gray-200 dark:border-white/10">
          <td class="max-w-0 py-5 pr-3 pl-4 text-sm sm:pl-0">
            <div class="font-medium text-gray-900 dark:text-white">Website redesign</div>
            <div class="mt-1 truncate text-gray-500 dark:text-gray-400">Design and program new company website.</div>
          </td>
          <td class="hidden px-3 py-5 text-right text-sm text-gray-500 sm:table-cell dark:text-gray-400">52.0</td>
          <td class="hidden px-3 py-5 text-right text-sm text-gray-500 sm:table-cell dark:text-gray-400">$100.00</td>
          <td class="py-5 pr-4 pl-3 text-right text-sm text-gray-500 sm:pr-0 dark:text-gray-400">$5,200.00</td>
        </tr>
        <tr class="border-b border-gray-200 dark:border-white/10">
          <td class="max-w-0 py-5 pr-3 pl-4 text-sm sm:pl-0">
            <div class="font-medium text-gray-900 dark:text-white">Business cards</div>
            <div class="mt-1 truncate text-gray-500 dark:text-gray-400">Design and production of 3.5&quot; x 2.0&quot; business cards.</div>
          </td>
          <td class="hidden px-3 py-5 text-right text-sm text-gray-500 sm:table-cell dark:text-gray-400">12.0</td>
          <td class="hidden px-3 py-5 text-right text-sm text-gray-500 sm:table-cell dark:text-gray-400">$100.00</td>
          <td class="py-5 pr-4 pl-3 text-right text-sm text-gray-500 sm:pr-0 dark:text-gray-400">$1,200.00</td>
        </tr>
        <tr class="border-b border-gray-200 dark:border-white/10">
          <td class="max-w-0 py-5 pr-3 pl-4 text-sm sm:pl-0">
            <div class="font-medium text-gray-900 dark:text-white">T-shirt design</div>
            <div class="mt-1 truncate text-gray-500 dark:text-gray-400">Three t-shirt design concepts.</div>
          </td>
          <td class="hidden px-3 py-5 text-right text-sm text-gray-500 sm:table-cell dark:text-gray-400">4.0</td>
          <td class="hidden px-3 py-5 text-right text-sm text-gray-500 sm:table-cell dark:text-gray-400">$100.00</td>
          <td class="py-5 pr-4 pl-3 text-right text-sm text-gray-500 sm:pr-0 dark:text-gray-400">$400.00</td>
        </tr>
      </tbody>
      <tfoot>
        <tr>
          <th scope="row" colspan="3" class="hidden pt-6 pr-3 pl-4 text-right text-sm font-normal text-gray-500 sm:table-cell sm:pl-0 dark:text-gray-400">Subtotal</th>
          <th scope="row" class="pt-6 pr-3 pl-4 text-left text-sm font-normal text-gray-500 sm:hidden dark:text-gray-400">Subtotal</th>
          <td class="pt-6 pr-4 pl-3 text-right text-sm text-gray-500 sm:pr-0 dark:text-gray-400">$8,800.00</td>
        </tr>
        <tr>
          <th scope="row" colspan="3" class="hidden pt-4 pr-3 pl-4 text-right text-sm font-normal text-gray-500 sm:table-cell sm:pl-0 dark:text-gray-400">Tax</th>
          <th scope="row" class="pt-4 pr-3 pl-4 text-left text-sm font-normal text-gray-500 sm:hidden dark:text-gray-400">Tax</th>
          <td class="pt-4 pr-4 pl-3 text-right text-sm text-gray-500 sm:pr-0 dark:text-gray-400">$1,760.00</td>
        </tr>
        <tr>
          <th scope="row" colspan="3" class="hidden pt-4 pr-3 pl-4 text-right text-sm font-semibold text-gray-900 sm:table-cell sm:pl-0 dark:text-white">Total</th>
          <th scope="row" class="pt-4 pr-3 pl-4 text-left text-sm font-semibold text-gray-900 sm:hidden dark:text-white">Total</th>
          <td class="pt-4 pr-4 pl-3 text-right text-sm font-semibold text-gray-900 sm:pr-0 dark:text-white">$10,560.00</td>
        </tr>
      </tfoot>
    </table>
  </div>
</div>