teckmill / chatroomzv2

0 stars 0 forks source link

Create new file => src/pages/homefeed.tsx #2

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

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

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

```jsx
<div className="w-full h-screen bg-gray-800 rounded-[40px] shadow-lg overflow-hidden">
  <div className="flex items-center px-8 py-4">
    <div className="w-11 h-11 bg-black rounded-full flex items-center justify-center">
      {/* Vector Icon Placeholder */}
    </div>
    <h1 className="ml-6 text-2xl text-white tracking-wide capitalize">Martina Wolna</h1>
  </div>
  <div className="relative mt-2 mx-6">
    <input
      type="text"
      placeholder="Search..."
      className="w-full h-10 bg-black bg-opacity-25 rounded-full pl-4 text-sm tracking-wide text-white placeholder-white placeholder-opacity-60"
    />
    <div className="absolute right-0 top-0 mt-2 mr-2 w-10 h-10 bg-gray-600 rounded-full flex items-center justify-center">
      {/* Subtract Icon Placeholder */}
    </div>
    <div className="absolute right-0 top-0 mt-2 mr-12 w-10 h-10 bg-blue-400 rounded-full flex items-center justify-center">
      <span className="text-xl text-white">+</span>
    </div>
  </div>
  <h2 className="mt-6 mx-6 text-xl text-white tracking-wide capitalize">Chatrooms</h2>
  <div className="flex overflow-x-scroll mt-4 mx-6 space-x-4">
    <img
      src="/images/48e598ffb83245fdcf42dfe0edb37a51fe8909e6.jpg"
      alt="Bożenka Malina"
      className="w-24 h-36 rounded-3xl shadow-md"
    />
    <img
      src="/images/992316fdb43d07e5e5a00a8fff44a02a500d7846.jpg"
      alt="Anastazja Ziemkowska"
      className="w-24 h-36 rounded-3xl shadow-md"
    />
    <img
      src="/images/a9d6ab5bd06170e991dc7aa0eb91e9569e03b38f.jpg"
      alt="Magdalena Pomorska"
      className="w-24 h-36 rounded-3xl shadow-md"
    />
    <img
      src="/images/6d4a921c678cdc5e37a2c309a0a146456076c36d.jpg"
      alt="Możenka Walina"
      className="w-24 h-36 rounded-3xl shadow-md"
    />
  </div>
  <div className="flex justify-between items-center mt-2 mx-6">
    <span className="text-xs text-white tracking-wide capitalize">Bożenka Malina</span>
    <span className="text-xs text-white tracking-wide capitalize">Anastazja Ziemkowska</span>
    <span className="text-xs text-white tracking-wide capitalize">Magdalena Pomorska</span>
    <span className="text-xs text-white tracking-wide capitalize">Możenka Walina</span>
  </div>
  <div className="mt-8 mx-6">
    <div className="flex justify-between items-center mb-6">
      <div className="flex items-center">
        <img
          src="/images/907b285220a79d68e851104993c69cfb799b5a9e.jpg"
          alt="Maciej Kowalski"
          className="w-11 h-11 rounded-full shadow-sm"
        />
        <div className="ml-4">
          <h3 className="text-base text-white capitalize">Maciej Kowalski</h3>
          <p className="text-sm text-white font-light">maciej.kowalski@email.com</p>
        </div>
      </div>
      <span className="text-base text-white capitalize">08:43</span>
    </div>
    <div className="flex justify-between items-center mb-6">
      <div className="flex items-center">
        <img
          src="/images/049e630c4f71f5dabd2806cdf2419c05b72f278f.jpg"
          alt="Odeusz Piotrowski"
          className="w-11 h-11 rounded-full shadow-sm"
        />
        <div className="ml-4">
          <h3 className="text-base text-white capitalize">Odeusz Piotrowski</h3>
          <p className="text-sm text-white font-light">Will do, super, thank you</p>
        </div>
      </div>
      <span className="text-base text-white capitalize">Tue</span>
    </div>
    <div className="flex justify-between items-center mb-6">
      <div className="flex items-center">
        <img
          src="/images/48e598ffb83245fdcf42dfe0edb37a51fe8909e6.jpg"
          alt="Bożenka Malina"
          className="w-11 h-11 rounded-full shadow-sm"
        />
        <div className="ml-4">
          <h3 className="text-base text-white capitalize">Bożenka Malina</h3>
          <p className="text-sm text-white font-light">Uploaded file.</p>
        </div>
      </div>
      <span className="text-base text-white capitalize">Sun</span>
    </div>
    <div className="flex justify-between items-center mb-6">
      <div className="flex items-center">
        <img
          src="/images/0a675b3e8f62eb8559c76c9acfa4bc308ce16d80.jpg"
          alt="Maciej Orłowski"
          className="w-11 h-11 rounded-full shadow-sm"
        />
        <div className="ml-4">
          <h3 className="text-base text-white capitalize">Maciej Orłowski</h3>
          <p className="text-sm text-white font-light">Here is another tutorial, if you...</p>
        </div>
      </div>
      <span className="text-base text-white capitalize">23 Mar</span>
    </div>
    <div className="flex justify-between items-center mb-6">
      <div className="flex items-center">
        <img
          src="/images/a9d6ab5bd06170e991dc7aa0eb91e9569e03b38f.jpg"
          alt="Krysia Eurydyka"
          className="w-11 h-11 rounded-full shadow-sm"
        />
        <div className="ml-4">
          <h3 className="text-base text-white capitalize">Krysia Eurydyka</h3>
          <p className="text-sm text-white font-light">18 Mar</p>
        </div>
      </div>
    </div>
    <div className="flex justify-between items-center mb-6">
      <div className="flex items-center">
        <img
          src="/images/d8ff3a8dea76b834b26a98cc4587ab1ccddd0995.jpg"
          alt="MC Bastek"
          className="w-11 h-11 rounded-full shadow-sm"
        />
        <div className="ml-4">
          <h3 className="text-base text-white capitalize">MC Bastek</h3>
          <p className="text-sm text-white font-light">no pracujemy z domu przez 5 ...</p>
        </div>
      </div>
      <span className="text-base text-white capitalize">01 Feb</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

jacob-ai-bot[bot] commented 1 month 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 month ago

Unfortunately, I ran into trouble working on this.

Here is some error information:

Command failed: npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /mnt/tmp/tmp-106-7DyU5ZviTI3f/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/mnt/tmp/tmp-106-7DyU5ZviTI3f/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in: /opt/render/.cache/_logs/2024-10-14T04_04_19_596Z-debug-0.log
teckmill commented 3 weeks ago

id like to get the app up and running