hemarle / url-shortener

0 stars 0 forks source link

Create new file => src/pages/src/URLLink.tsx #5

Open jacob-ai-bot[bot] opened 1 day ago

jacob-ai-bot[bot] commented 1 day ago

A new design has been added to Figma for the file src/pages/src/URLLink.tsx. The design was converted into JSX. Here is what was provided:

```jsx
<div className="w-full h-full bg-gray-900">
  <div className="flex flex-col items-center justify-center py-10">
    <h1 className="text-5xl text-center text-white mb-4">Shorten Your Loooong Links :)</h1>
    <p className="text-base text-center text-gray-400 mb-8">
      Linkly is an efficient and easy-to-use URL shortening service that streamlines your online experience.
    </p>
    <div className="flex items-center justify-center space-x-4 mb-8">
      <div className="flex items-center bg-gray-800 text-gray-400 rounded-full shadow-lg px-6 py-4">
        <span className="text-lg">link</span>
        <span className="mx-4 text-lg">|</span>
        <span className="text-base">Enter the link here</span>
      </div>
      <button className="bg-blue-600 text-white rounded-full shadow-lg px-8 py-3">
        Shorten Now!
      </button>
    </div>
    <div className="flex items-center justify-center space-x-4 mb-8">
      <div className="flex items-center bg-gray-800 text-gray-400 rounded-full shadow-lg px-6 py-2">
        <span className="text-sm">Auto Paste from Clipboard</span>
      </div>
      <span className="text-sm text-gray-400">You can create 05 more links. Register Now to enjoy Unlimited usage</span>
    </div>
  </div>
  <div className="w-full">
    <div className="bg-gray-800 text-gray-400 rounded-t-lg shadow-md backdrop-blur-lg py-4 px-6 grid grid-cols-6 gap-4">
      <span className="font-bold text-sm">Short Link</span>
      <span className="font-bold text-sm">Original Link</span>
      <span className="font-bold text-sm text-center">QR Code</span>
      <span className="font-bold text-sm text-center">Clicks</span>
      <span className="font-bold text-sm text-center">Status</span>
      <span className="font-bold text-sm text-center">Date</span>
    </div>
    <div className="bg-gray-800 bg-opacity-60 shadow-md backdrop-blur-lg py-4 px-6 grid grid-cols-6 gap-4">
      <div className="flex items-center">
        <img src="/images/6c9345d04f762b6bc270b1d7f7a275329e7abc05.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://linkly.com/Bn41aCOlnxj</span>
      </div>
      <div className="flex items-center">
        <img src="/images/56371cbfa043e97af457cb28311f2e9f6e17517d.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://www.twitter.com/tweets/8erelCoihu/</span>
      </div>
      <span className="text-sm text-gray-400 text-center">1313</span>
      <span className="text-sm text-green-500 text-center">Active</span>
      <span className="text-sm text-gray-400 text-center">Oct - 10 -2023</span>
    </div>
    <div className="bg-gray-800 bg-opacity-60 shadow-md backdrop-blur-lg py-4 px-6 grid grid-cols-6 gap-4">
      <div className="flex items-center">
        <img src="/images/cd267d3ca14e5d62090cc8a91d3b57009e6726d2.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://linkly.com/Bn41aCOlnxj</span>
      </div>
      <div className="flex items-center">
        <img src="/images/56371cbfa043e97af457cb28311f2e9f6e17517d.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://www.youtube.com/watch?v=8J7ZmH0lXuk</span>
      </div>
      <span className="text-sm text-gray-400 text-center">4313</span>
      <span className="text-sm text-yellow-500 text-center">Inactive</span>
      <span className="text-sm text-gray-400 text-center">Oct - 08 -2023</span>
    </div>
    <div className="bg-gray-800 bg-opacity-60 shadow-md backdrop-blur-lg py-4 px-6 grid grid-cols-6 gap-4">
      <div className="flex items-center">
        <img src="/images/da325cfd4df99ba4bf5a143856d24553ac7c5625.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://linkly.com/Bn41aCOlnxj</span>
      </div>
      <div className="flex items-center">
        <img src="/images/56371cbfa043e97af457cb28311f2e9f6e17517d.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://www.adventuresinwanderlust.com/</span>
      </div>
      <span className="text-sm text-gray-400 text-center">1013</span>
      <span className="text-sm text-green-500 text-center">Active</span>
      <span className="text-sm text-gray-400 text-center">Oct - 01 -2023</span>
    </div>
    <div className="bg-gray-800 bg-opacity-60 shadow-md backdrop-blur-lg py-4 px-6 grid grid-cols-6 gap-4">
      <div className="flex items-center">
        <img src="/images/9dd55e133bda45b876f0e06b3de083c7c6cac8c2.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://linkly.com/Bn41aCOlnxj</span>
      </div>
      <div className="flex items-center">
        <img src="/images/56371cbfa043e97af457cb28311f2e9f6e17517d.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://vimeo.com/625257654</span>
      </div>
      <span className="text-sm text-gray-400 text-center">1313</span>
      <span className="text-sm text-green-500 text-center">Active</span>
      <span className="text-sm text-gray-400 text-center">Sep - 20 -2023</span>
    </div>
    <div className="bg-gray-800 bg-opacity-60 shadow-md backdrop-blur-lg py-4 px-6 grid grid-cols-6 gap-4">
      <div className="flex items-center">
        <img src="/images/33ed458b52da413bf7673fbae6329edde3a26409.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://linkly.com/Bn41aCOlnxj</span>
      </div>
      <div className="flex items-center">
        <img src="/images/56371cbfa043e97af457cb28311f2e9f6e17517d.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://unsplash.com/photos/2KjNwOzFfVQ</span>
      </div>
      <span className="text-sm text-gray-400 text-center">1423</span>
      <span className="text-sm text-green-500 text-center">Active</span>
      <span className="text-sm text-gray-400 text-center">Sep - 18 -2023</span>
    </div>
    <div className="bg-gray-800 bg-opacity-80 shadow-md backdrop-blur-lg py-4 px-6 grid grid-cols-6 gap-4">
      <div className="flex items-center">
        <img src="/images/cd267d3ca14e5d62090cc8a91d3b57009e6726d2.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://linkly.com/Bn41aCOlnxj</span>
      </div>
      <div className="flex items-center">
        <img src="/images/56371cbfa043e97af457cb28311f2e9f6e17517d.jpg" alt="Icon" className="w-8 h-8 mr-2 rounded" />
        <span className="text-sm text-gray-400">https://www.travelwiththejoneses.com/</span>
      </div>
      <span className="text-sm text-gray-400 text-center">3213</span>
      <span className="text-sm text-green-500 text-center">Active</span>
      <span className="text-sm text-gray-400 text-center">Sep - 01 -2023</span>
    </div>
  </div>
</div>
```
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faEnvelope } from '@fortawesome/free-solid-svg-icons'
const element = <FontAwesomeIcon icon={faEnvelope} />
  1. For images, the figma code will likely list the image name. This image has already been saved to the public folder. You must use that image as the source for the image tag.
  2. IMPORTANT: The design team did not wire up any of the buttons or links, they assigned that critical task to you. You MUST implement the code to handle the click events.

Here is a temporary snapshot of your design. It will expire in 60 minutes for security purposes. snapshot

Here are the images from your design. These images will be downloaded to this branch and these links will expire in 60 minutes for security purposes. image image image image image image image image image image image image

jacob-ai-bot[bot] commented 1 day ago

JACoB here...

You mentioned me on this issue and I am busy taking a look at it.

I'll continue to comment on this issue with status as I make progress.

jacob-ai-bot[bot] commented 1 day ago

Update

I've completed my initial work on this issue and have created a pull request: Create src/pages/src/URLLink.tsx.

The changes currently result in an error, so I'll be making some additional changes before it is ready to merge.