Published on

Imagine You Create A PROOF OF DELIVERY (POD) With Tailwind CSS Like An Expert. Follow These 6 Steps To Get There

Tags
PROOF OF DELIVERY (POD)

As a FrontEnd technology blogger, you are always on the lookout for ways to improve the user interface (UI) of your website. One way to do this is by using Tailwind CSS, a utility-first CSS framework that makes it easy to create beautiful, responsive designs. In this article, we will explore how to create a PROOF OF DELIVERY (POD) UI component with Tailwind CSS.

What is Tailwind CSS?

Tailwind CSS is a utility-first CSS framework that provides a set of pre-defined CSS classes that you can use to style your HTML elements. It is designed to make it easy to create responsive designs without having to write custom CSS code.

The description of PROOF OF DELIVERY (POD) ui component

A PROOF OF DELIVERY (POD) UI component is a design element that is commonly used in logistics and delivery applications. It is used to display information about a delivery, such as the recipient's name, delivery address, and delivery date. The POD component is typically displayed as a card or a modal window.

Why use Tailwind CSS to create a PROOF OF DELIVERY (POD) ui component?

Tailwind CSS provides a set of pre-defined CSS classes that can be used to create a PROOF OF DELIVERY (POD) UI component quickly and easily. By using Tailwind CSS, you can avoid writing custom CSS code, which can save time and reduce the risk of errors.

The preview of PROOF OF DELIVERY (POD) ui component.

Here is a preview of what the PROOF OF DELIVERY (POD) UI component will look like when we are finished:

Free download of the PROOF OF DELIVERY (POD)'s source code

The source code of PROOF OF DELIVERY (POD) ui component.

Here is the source code for the PROOF OF DELIVERY (POD) UI component:

<div class="p-10">
  <div class="max-w-full  bg-white flex flex-col rounded overflow-hidden shadow-lg">

    <div class="flex justify-center">
    <div class="flex flex-col w-full p-5 mx-auto card">
            <div class="flex flex-row justify-between ">
                <div class="flex flex-col w-full mx-auto">
                    <div class="flex flex-row">
                        <h1 class="text-2xl">PROOF OF DELIVERY (POD) # <small>45F128</small></h1>
                    </div>
                    <div class="flex flex-row justify-between mt-3">
                        <div>
                            <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU4AAAAeAQMAAAB5ZGVpAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAD9JREFUOI3tyrEJACAMBEDh24eskgECri44QFYJfGuhc0jKgxsiZFRNr0wgyIrjtZWPHmetBM2gGF27du36Z72G5FJDYMX7jwAAAABJRU5ErkJggg==" alt="barcode">
                            <br>
                            Issued on July 6, 2021
                        </div> 
                    </div>
                </div>
                <div class="brand">
                    <span class="flex items-center justify-center space-x-3 transition-all duration-1000 ease-out transform text-thumeza-500">
                        <img class="w-28 h-28" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAA8FBMVEX///8VBAD3vgAAAAD7wQD/xQC9kAD9wwD/xwD0uwCpgADXpABjSQAIAACfeQATAABSPACUcADapwDRoADjrgDttgDDlQCwhgCadQA+KwCOawB4WgBeRQD39/fMnAB9XgAsHAAmFgBtUQBFMQC3tbXg3986KAAxIAAoGABoZGRTTk2cmpqFZAC2iwBqTwBYQAAdDgBMNwD86b/2tgCnpaXJyMg/OTgkGhl8eHiSj4/p6OhdWVjY19f989z5zFv62Y3++vCEgYAoHh41LSxJQ0PCwMAeExL50Gz4yEf4wzH73p/746/97Mr614X98NT5zWEDyWyTAAAOD0lEQVR4nO2dCXPiuBLHwW0hGTAOh7kDCZAwSSDk3hyzc+7s7M7s7Pv+3+ZJlg8Z24QkWLbf87+2aqsyBuuHWq1uqS0XCrly5cqVK1euXLly5cqVK1euXLly5cqVK1euXP9/2qd6fHxk/0u6KbvS/tHt7Obh/uT07jcI6re705P7h5vZ7VH2gPfffzu7P/0zhCpKf57en317nwnSo9nDky40Xe+tJot6rVNqj5qVRour0aiMRqVludYfn+/NRdKnh9lR0gjRepx9vnObelBdlEsVUyUEIUylBsX+jBAiRGuNlt3xquh89u7z7DFpmICObk6c9h0Pau0WJohRKduJ0VJUpbGsn1/YX3Nyk57O3J85dMfjTkWlbFujBUkR0Ua1iY15MkvByDw6sy1zrz7SGNzr2HycFNMsLfj4vDtLtCuPHri/PO6PVLILOBGTUg4My88+JAT5ePbFwqt2zB3TuZSINLo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5cqVK1euXLly5cr1Jv0XrAhVuzmhlcEAAAAASUVORK5CYII=">
                    </span>
                </div>
            </div>

            <div class="mt-4 border-t-2 border-gray-200 "></div>

            <div class="flex justify-between mt-3">
                <div class="flex flex-col ">
                    From
                    <p class="">
                        <strong>6710 Fife Avenue,Harare , ZW</strong><br>
                        Zimbabwe<br>
                        Harare<br>
                        Harare City<br>
                    </p>
                </div>
                <div class="flex flex-col">
                    To
                    <p class="">
                        <strong>17e Rue Limete/Kin, Kinshasa</strong><br>
                        Congo, Republic Democraric<br>
                        Kinshasa<br>
                        Kinshasa City<br>
                    </p>

                </div>
                <div class="flex flex-col pr-4">
                        Load ID #TZ236
                        <p>Load Status: Delivered</p>
                        <p>Shipper : 
                            Manasse Ngudia
                            Manasseng
                        </p>
                        <p>Transporter : 
                            Lyord 
                            Frederickso
                        </p>
                        <p>
                            Payment Type:Visa-card
                            </br>
                        </p>
                        <p>
                            Terms Of Payment: 50% uploading
                        </p>
                </div>
            </div>
            <div class="mt-3 ">
                <table class="table w-full mt-3 table_striped">
                    <thead>
                        <tr>
                            <th class="ltr:text-left rtl:text-right"></th>
                            <th class="ltr:text-left rtl:text-right"></th>
                            <th class="ltr:text-left rtl:text-right"></th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                Goods Type : No Perishable
                            </br>
                                Weight in Kg : 400 kg 
                            </br>
                                Volume in Cubic Meter : 3.3
                            </br>
                                Estimated Value : 1560
                            </br>
                                Description: contains tools 
                            </br>
                            </td>
                            <td>
                                Vehicule Type : Van 1Ton
                                </br>
                                Vehicule : -
                                
                                
                                </br>
                                Driver : -
                                </br>
                            </td>
                            <td>
                            6700
                            </td>
                        </tr>
                        <tr>
                            <td>
                            
                            </td>
                            <td>TOTAL</td>
                            <td>
                                6700
                            USD
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="flex flex-row justify-end mt-8">
                <div class="">
                    <div class="">
                        <button  class="inline-flex justify-center w-full px-4 py-2 text-base font-medium leading-6 text-gray-700 transition duration-150 ease-in-out bg-white border border-gray-300 rounded-md shadow-sm printInvoice hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue sm:text-sm sm:leading-5"><span class="mt-1 la la-download"></span>Print</button>
                    </div>
                </div>
            </div>
    </div>
    </div>
    </div>
 </div>

How to create a PROOF OF DELIVERY (POD) with Tailwind CSS?

Follow these six steps to create a PROOF OF DELIVERY (POD) UI component with Tailwind CSS:

Step 1: Set up your project

To get started, create a new HTML file and add the following code:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Proof of Delivery</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" />
  </head>
  <body>
    <div class="container mx-auto p-4">
      <!-- Your code goes here -->
    </div>
  </body>
</html>

This code sets up a basic HTML document and includes the Tailwind CSS framework.

Step 2: Create the POD card

To create the POD card, add the following code inside the container element:

<div class="bg-white rounded-lg shadow-md p-6">
  <h2 class="text-lg font-medium mb-4">Proof of Delivery</h2>
  <div class="flex items-center mb-4">
    <div class="w-1/3">
      <p class="text-gray-600">Recipient Name:</p>
      <p class="font-medium">John Doe</p>
    </div>
    <div class="w-1/3">
      <p class="text-gray-600">Delivery Address:</p>
      <p class="font-medium">123 Main St</p>
    </div>
    <div class="w-1/3">
      <p class="text-gray-600">Delivery Date:</p>
      <p class="font-medium">June 1, 2021</p>
    </div>
  </div>
  <div class="flex items-center">
    <div class="w-1/3">
      <p class="text-gray-600">Delivery Time:</p>
      <p class="font-medium">10:00 AM</p>
    </div>
    <div class="w-1/3">
      <p class="text-gray-600">Delivery Status:</p>
      <p class="font-medium text-green-500">Delivered</p>
    </div>
    <div class="w-1/3">
      <p class="text-gray-600">Delivery Signature:</p>
      <img src="https://via.placeholder.com/150x50" alt="Delivery Signature" />
    </div>
  </div>
</div>

This code creates a card with the recipient's name, delivery address, delivery date, delivery time, delivery status, and delivery signature.

Step 3: Style the POD card

To style the POD card, add the following CSS code:

/* Center the card */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Style the card */
.bg-white {
  width: 500px;
}

This code centers the card on the page and sets its width to 500 pixels.

Step 4: Add a background image

To add a background image to the card, add the following CSS code:

/* Add a background image */
.bg-white {
  background-image: url("https://via.placeholder.com/500x300");
  background-size: cover;
  background-position: center;
}

This code adds a background image to the card and sets its size and position.

Step 5: Add hover effects

To add hover effects to the card, add the following CSS code:

/* Add hover effects */
.bg-white:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

This code scales up the card and adds a transition effect when the user hovers over it.

Step 6: Add responsive design

To make the POD card responsive, add the following CSS code:

/* Make the card responsive */
@media (max-width: 640px) {
  .bg-white {
    width: 100%;
  }
}

This code sets the width of the card to 100% when the screen width is less than or equal to 640 pixels.

Conclusion

In this article, we have explored how to create a PROOF OF DELIVERY (POD) UI component with Tailwind CSS. By following these six steps, you can create a beautiful and responsive POD card that will enhance the user interface of your logistics or delivery application. With Tailwind CSS, you can save time and avoid writing custom CSS code, making it easier to create stunning designs.