Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function Home() {
<div className="flex justify-center items-center w-full my-5 p-10">
<div className="w-1/2 rounded-lg overflow-clip shadow-lg shadow-gray-500">
<iframe width="100%" height="315"
src="https://www.youtube.com/embed/kYnA8AotiU0">
src="https://www.youtube.com/embed/wbX9cpiDH70?si=g4YpuJrt10mBF9LI">
</iframe>
</div>
<div className="w-1/2 p-10">
Expand Down
13 changes: 9 additions & 4 deletions frontend/app/post/[pid]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,15 @@ const Layout = () => {
) : (post && (
<div className="p-5">
<div className="relative">
<div className=" absolute right-5 items-center justify-center flex gap-4">
<img src={post.selectedChain.image} className="w-10 h-auto rounded-full overflow-clip" alt=""/>
<span className="font-bold">On {post.selectedChain.name}</span>
</div>
{
post.selectedChain?.image && (
<div className=" absolute right-5 items-center justify-center flex gap-4">
<img src={post.selectedChain.image} className="w-10 h-auto rounded-full overflow-clip"
alt=""/>
<span className="font-bold">On {post.selectedChain.name}</span>
</div>
)
}
<h2 className="text-3xl font-bold">{post.title}</h2>
<div className="">Reward: {reward} USD</div>
</div>
Expand Down
17 changes: 11 additions & 6 deletions frontend/app/vote/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,17 @@ export default function Home() {
onClick={() => handlePostClick(post.id)}
>

<div className=" flex flex-row gap-3 items-center absolute right-5 rounded-full overflow-clip">
<img className="w-10 h-auto" src={post.selectedChain.image} alt=""/>
<div className="text-sm">
Created on {new Date(post.date).toLocaleDateString()} at {new Date(post.date).toLocaleTimeString()}
</div>
</div>
{
post.selectedChain?.image && (
<div
className=" flex flex-row gap-3 items-center absolute right-5 rounded-full overflow-clip">
<img className="w-10 h-auto" src={post.selectedChain.image} alt=""/>
<div className="text-sm">
Created
on {new Date(post.date).toLocaleDateString()} at {new Date(post.date).toLocaleTimeString()}
</div>
</div>)
}
<h3 className="font-bold text-xl ">{post.title}</h3>
<div className="mb-2">{post.description}</div>
<div className="flex gap-2 mb-2 mt-5">
Expand Down
12 changes: 8 additions & 4 deletions frontend/components/users/Posts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ function Page() {
className="relative bg-white p-4 rounded border-1 mb-4 cursor-pointer hover:shadow-lg hover:shadow-gray-200"
onClick={() => handlePostClick(post.id)}
>
<div className=" absolute right-5 items-center justify-center flex gap-4">
<img src={post.selectedChain.image}
className="w-10 h-auto rounded-full overflow-clip" alt=""/>
</div>
{
post.selectedChain?.image && (
<div className=" absolute right-5 items-center justify-center flex gap-4">
<img src={post.selectedChain.image}
className="w-10 h-auto rounded-full overflow-clip" alt=""/>
</div>)
}

<h3 className="font-bold text-xl mb-2">{post.title}</h3>
<div className="flex gap-2 mb-2">
{post.options.map((option, i) => (
Expand Down