Skip to content

Commit c05c8f7

Browse files
committed
Improved light theme
1 parent b4972a5 commit c05c8f7

File tree

4 files changed

+29
-35
lines changed

4 files changed

+29
-35
lines changed

packages/nextjs/app/explore/Explore.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Explore = () => {
2121
const [loading, setLoading] = useState(true);
2222
const [loadingMore, setLoadingMore] = useState(false);
2323
const [page, setPage] = useState(0);
24-
const [activeTab, setActiveTab] = useState("Global");
24+
const [activeTab, setActiveTab] = useState("All");
2525

2626
const handleTabClick = (tab: any) => {
2727
setActiveTab(tab);
@@ -115,21 +115,15 @@ export const Explore = () => {
115115
return (
116116
<div className="flex flex-col items-center justify-center">
117117
<div className="tabs-bar ">
118-
<button className={`tab ${activeTab === "Global" ? "active" : ""}`} onClick={() => handleTabClick("Global")}>
119-
Global
118+
<button className={`tab ${activeTab === "All" ? "active" : ""}`} onClick={() => handleTabClick("All")}>
119+
All
120120
</button>
121121
<button
122122
className={`tab text-red-600 ${activeTab === "Following" ? "active" : ""}`}
123123
onClick={() => handleTabClick("Following")}
124124
>
125125
Following
126126
</button>
127-
<button
128-
className={`tab text-red-600 ${activeTab === "Groups" ? "active" : ""}`}
129-
onClick={() => handleTabClick("Groups")}
130-
>
131-
Groups
132-
</button>
133127
</div>
134128
<NewsFeed articles={articles} isGrid={false} />
135129
<div ref={lastPostElementRef}></div>

packages/nextjs/app/profile/[address]/page.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const ProfilePage: NextPage = () => {
3636
const [loadingMore, setLoadingMore] = useState(true);
3737
const [page, setPage] = useState(1); // Start from page 1 to get the last post first
3838
const [loadingProfile, setLoadingProfile] = useState(true);
39-
const [activeTab, setActiveTab] = useState("Minted");
39+
const [activeTab, setActiveTab] = useState("Listed");
4040

4141
const projectId = process.env.NEXT_PUBLIC_CDP_PROJECT_ID ? process.env.NEXT_PUBLIC_CDP_PROJECT_ID : "";
4242
const { address: connectedAddress } = useAccount();
@@ -290,20 +290,20 @@ const ProfilePage: NextPage = () => {
290290

291291
<div className="flex flex-col items-center justify-center">
292292
<div className="tabs-bar ">
293+
<button className={`tab ${activeTab === "Listed" ? "active" : ""}`} onClick={() => handleTabClick("Listed")}>
294+
Listed
295+
</button>
293296
<button
294-
className={`tab text-red-600 ${activeTab === "Featured" ? "active" : ""}`}
295-
onClick={() => handleTabClick("Featured")}
297+
className={`tab text-red-600 ${activeTab === "Bought" ? "active" : ""}`}
298+
onClick={() => handleTabClick("Bought")}
296299
>
297-
Featured
298-
</button>
299-
<button className={`tab ${activeTab === "Minted" ? "active" : ""}`} onClick={() => handleTabClick("Minted")}>
300-
Minted
300+
Bought
301301
</button>
302302
<button
303-
className={`tab text-red-600 ${activeTab === "Shared" ? "active" : ""}`}
304-
onClick={() => handleTabClick("Shared")}
303+
className={`tab text-red-600 ${activeTab === "Activity" ? "active" : ""}`}
304+
onClick={() => handleTabClick("Activity")}
305305
>
306-
Shared
306+
Activity
307307
</button>
308308
<button
309309
className={`tab text-red-600 ${activeTab === "Revenue" ? "active" : ""}`}
3.18 KB
Loading

packages/nextjs/tailwind.config.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ module.exports = {
99
themes: [
1010
{
1111
light: {
12-
primary: "#FFB07A", // Slightly lighter orange for primary
13-
"primary-content": "#A0522D", // Slightly lighter contrast for text
14-
secondary: "#CD853F", // Slightly lighter orange for secondary
15-
"secondary-content": "#A0522D", // Slightly lighter tone for contrast
16-
accent: "#FFD1A3", // Slightly lighter orange for accent
17-
"accent-content": "#CD853F", // Slightly lighter brown for accent content
18-
neutral: "#FFEBCD", // Slightly lighter neutral orange background
19-
"neutral-content": "#A0522D", // Slightly lighter text color
20-
"base-100": "#FFB84C", // Darker brown for base background
21-
"base-200": "#F5DEB3", // Lighter brown for sections
22-
"base-300": "#DEB887", // Darker brown for borders/secondary base
23-
"base-content": "#8B4513", // Darker content color for base
24-
info: "#CD853F", // Darker brown for info messages
25-
success: "#3CB371", // Slightly lighter green for success
26-
warning: "#D2691E", // Darker brown for warnings
27-
error: "#A52A2A", // Darker red for errors
12+
primary: "#CCE4F6", // More visible light blue for primary
13+
"primary-content": "#000000", // Darker contrast for text
14+
secondary: "#A0C4E0", // More visible light blue for secondary
15+
"secondary-content": "#000000", // Darker contrast for text
16+
accent: "#E0F0FF", // More visible light blue for accent
17+
"accent-content": "#000000", // Darker contrast for accent content
18+
neutral: "#F0F8FF", // Light blue for neutral background
19+
"neutral-content": "#000000", // Darker contrast for text
20+
"base-100": "#CCE4F6", // Light blue for base background
21+
"base-200": "#E0F0FF", // Slightly darker light blue for sections
22+
"base-300": "#A0C4E0", // Slightly darker light blue for borders/secondary base
23+
"base-content": "#000000", // Darker contrast for base content
24+
info: "#A0C4E0", // Light blue for info messages
25+
success: "#32CD32", // Bright green for success
26+
warning: "#FFD700", // Bright yellow for warnings
27+
error: "#FF6347", // Bright red for errors
2828

2929
"--rounded-btn": "9999rem", // Keep the button rounded
3030

0 commit comments

Comments
 (0)