Skip to content

Commit 26898a6

Browse files
committed
UI improvments
1 parent c82d3ea commit 26898a6

File tree

3 files changed

+34
-8
lines changed

3 files changed

+34
-8
lines changed

packages/nextjs/components/Footer.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ import Create from "../app/create/Create";
55
import Modal from "../app/create/Modal";
66
import { useAccount } from "wagmi";
77
import { HeartIcon } from "@heroicons/react/24/outline";
8-
import { BellIcon, EnvelopeIcon, HomeIcon, MagnifyingGlassIcon, PlusIcon } from "@heroicons/react/24/solid";
8+
import {
9+
BellIcon,
10+
EnvelopeIcon,
11+
HomeIcon,
12+
MagnifyingGlassIcon,
13+
PlusIcon,
14+
ShoppingCartIcon,
15+
} from "@heroicons/react/24/solid";
916
import { useScaffoldReadContract } from "~~/hooks/scaffold-eth";
1017

1118
export const Footer = () => {
@@ -105,6 +112,13 @@ export const Footer = () => {
105112
</div>
106113
</div>
107114
<footer className="sticky lg:hidden bottom-0 w-full bg-base-100 px-4 py-2 flex justify-around items-center">
115+
<Link href="/not-found" passHref>
116+
<ShoppingCartIcon
117+
className={`h-6 w-6 text-red-600 ${
118+
pathname === "/notifications" ? "text-blue-600" : "hover:text-blue-600"
119+
}`}
120+
/>
121+
</Link>
108122
<Link href="/not-found" passHref>
109123
<EnvelopeIcon
110124
className={`h-6 w-6 text-red-600 ${
@@ -124,6 +138,7 @@ export const Footer = () => {
124138
<Link href="/" passHref>
125139
<HomeIcon className={`h-6 w-6 ${pathname === "/" ? "text-blue-600" : "hover:text-blue-600"}`} />
126140
</Link>
141+
127142
<Link href="/search" passHref>
128143
<MagnifyingGlassIcon
129144
className={`h-6 w-6 ${pathname === "/search" ? "text-blue-600" : "hover:text-blue-600"}`}

packages/nextjs/components/Header.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { PunkBalance } from "./punk-society/PunkBalance";
88
import { PunkConnectButton } from "./punk-society/PunkConnectButton";
99
import { FaucetButton } from "./scaffold-eth";
1010
import { useAccount } from "wagmi";
11+
import { ShoppingCartIcon } from "@heroicons/react/24/outline";
1112
import { BellIcon, EnvelopeIcon, HomeIcon, MagnifyingGlassIcon } from "@heroicons/react/24/solid";
1213
import { useScaffoldReadContract } from "~~/hooks/scaffold-eth";
1314

@@ -116,16 +117,25 @@ export const Header = () => {
116117
</div>
117118

118119
<div className="navbar-end relative lg:mr-2">
119-
<div className="flex justify-center items-center ">
120-
<div className="hidden md:flex lg:mr-2">
120+
<div className="flex justify-center items-center gap-3">
121+
<Link href="/not-found" passHref>
122+
<button
123+
className={`p-2 rounded-full bg-red-600 text-white border-none hidden lg:flex flex-row items-center justify-center text-xl ${
124+
pathname === "/shoppingcart" ? "text-blue-600" : ""
125+
}`}
126+
>
127+
<ShoppingCartIcon className="h-6 w-6" />
128+
</button>
129+
</Link>
130+
<div className="hidden md:flex">
121131
<PunkBalance address={connectedAddress} />
122132
</div>
123133

124134
<div className="flex items-center justify-center">
125135
<PunkConnectButton />
126136
</div>
127137

128-
<div className="mr-4">
138+
<div className="">
129139
<FaucetButton />
130140
</div>
131141
</div>

packages/nextjs/components/punk-society/PostCard.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import CommentSection from "./CommentSection";
66
import LikeButton from "./LikedButton";
77
import { ProfileAddress } from "./ProfileAddress";
88
import {
9-
ArrowUturnUpIcon,
9+
BookmarkIcon,
1010
ChatBubbleLeftIcon,
1111
MagnifyingGlassPlusIcon,
1212
ShareIcon,
@@ -107,14 +107,15 @@ export const PostCard = ({ post, isGrid }: { post: Post; isGrid: boolean }) => {
107107
<ChatBubbleLeftIcon className="comment-icon" />
108108
)}
109109
</button>
110-
<button className="icon-button">
111-
<ArrowUturnUpIcon className="repost-icon text-red-600" />
112-
</button>
113110
<button onClick={handleShare} className="icon-button">
114111
<ShareIcon className="repost-icon " />
115112
</button>
116113
</div>
117114
<div className="flex items-center gap-3">
115+
<button className="p-2 rounded-full bg-red-600 text-white">
116+
<BookmarkIcon className="h-5 w-5" />
117+
</button>
118+
118119
<button className="px-4 py-2 rounded-lg bg-red-600 text-white">Buy</button>
119120
<button className="p-2 rounded-full bg-red-600 text-white">
120121
<ShoppingCartIcon className="h-5 w-5" />

0 commit comments

Comments
 (0)