Skip to content

Commit ded2dbc

Browse files
committed
added button to navigate to worth section + some minor fix in heatmap component
1 parent c342704 commit ded2dbc

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

client/src/app/components/Heatmap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export default function Heatmap() {
443443
Estimated Worth
444444
</h2>
445445

446-
<p className="text-white mt-4 flex w-full items-center justify-center">
446+
<p className="text-white mt-4 flex w-full items-center justify-center flex-col md:flex-row">
447447
Get Yours at:&nbsp;
448448
<Link
449449
href="https://leetcode-profiles-delta.vercel.app/worth"

client/src/app/page.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { DataContext } from "./context/DataContext";
1111
import { ToastContainer } from "react-toastify";
1212
import "react-toastify/dist/ReactToastify.css";
1313
import Skeleton from "./components/Skeleton";
14+
import Link from "next/link";
1415

1516
export default function Home() {
1617
const { datas, setDatas, search, setSearch } = useContext(DataContext);
@@ -78,11 +79,23 @@ export default function Home() {
7879

7980
<GenerateStats showStats={showStats} setShowStats={setShowStats} />
8081

81-
<div className="w-full flex items-center justify-center ">
82+
<div className="w-full max-w-7xl mx-auto flex flex-col lg:grid grid-cols-3 items-center justify-start gap-4 lg:gap-12 px-8 mt-28">
83+
<Link
84+
href="/worth"
85+
className="flex w-fit gap-2 rounded border-2 border-[#f7f7f7] px-4 bg-gradient-to-r from-[#cb42b2] to-[#ecf576] bg-clip-text text-transparent p-2 font-sourcecodepro font-bold"
86+
>
87+
<Image
88+
src="/assets/icons/money.svg"
89+
alt="Leetcode Logo"
90+
width={24}
91+
height={24}
92+
/>
93+
LeetCode Worth
94+
</Link>
8295
<select
8396
value={sortBy}
8497
onChange={handleSortChange}
85-
className="mt-28 rounded border-2 border-[#f7f7f7] w-64 bg-[#0e0e0e] text-white p-2 font-sourcecodepro"
98+
className=" rounded border-2 border-[#f7f7f7] w-64 bg-[#0e0e0e] text-white p-2 font-sourcecodepro"
8699
>
87100
<option value="default">Sort By Default</option>
88101
<option value="question-solved">Sort By Questions Solved</option>

0 commit comments

Comments
 (0)