Skip to content

Commit b48dda6

Browse files
committed
feat: add improvements adjustments to the landing page
1 parent 420ee88 commit b48dda6

2 files changed

Lines changed: 53 additions & 6 deletions

File tree

app/components/Home.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,14 @@ export default function Home({
666666
{/* Main heading */}
667667
<div className="flex justify-between items-center">
668668
<div className="flex items-center gap-4">
669-
<h2 className="text-2xl font-bold mb-6 text-[#0D261A]">
670-
Tool Categories
671-
</h2>
669+
<div className="mb-6">
670+
<h2 className="text-2xl font-bold text-[#0D261A]">
671+
Tool Categories
672+
</h2>
673+
<p className="text-[#1E1F1E] text-sm mt-1">
674+
Browse the tools using the category filters below.
675+
</p>
676+
</div>
672677
{localSelectedCategories.length > 0 && (
673678
<Button
674679
variant="outline"

app/components/Landing.tsx

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ export default function Landing() {
6969
resetAll()
7070
}
7171

72+
// Smooth-scroll to a section by id
73+
const scrollToId = (id: string) => {
74+
document.getElementById(id)?.scrollIntoView({ behavior: "smooth" })
75+
}
76+
7277
const handleCategorySelect = (categories: string[]) => {
7378
// Update the selected categories state
7479
setSelectedCategories(categories)
@@ -113,6 +118,30 @@ export default function Landing() {
113118
<div className="">
114119
{/* Hero Section */}
115120
<section className="bg-[#E2F6DF] mt-8 px-4 sm:px-8 max-w-6xl py-8 lg:rounded-lg mx-auto font-raleway">
121+
{/* Top navigation */}
122+
<nav className="flex flex-wrap justify-center sm:justify-end gap-8 mb-16 text-black font-bold text-lg sm:text-xl">
123+
<button
124+
type="button"
125+
onClick={() => setIsModalOpen(true)}
126+
className="hover:opacity-70 transition-opacity"
127+
>
128+
Tool finder
129+
</button>
130+
<button
131+
type="button"
132+
onClick={() => scrollToId("why-digitalization")}
133+
className="hover:opacity-70 transition-opacity"
134+
>
135+
About DSH
136+
</button>
137+
<button
138+
type="button"
139+
onClick={() => scrollToId("site-footer")}
140+
className="hover:opacity-70 transition-opacity"
141+
>
142+
Contact us
143+
</button>
144+
</nav>
116145
<div className="flex flex-col-reverse sm:flex-row justify-between items-center sm:items-start gap-8 sm:gap-0">
117146
<div className="flex-1 text-center sm:text-left">
118147
<h1 className="text-2xl sm:text-3xl md:text-5xl font-bold text-[#161D1A] mb-4 max-w-4xl">
@@ -128,7 +157,7 @@ export default function Landing() {
128157
px-4 py-2 hover:opacity-90 text-md"
129158
onClick={() => setIsModalOpen(true)}
130159
>
131-
Tool Finder Wizard
160+
Find your tools
132161
</Button>
133162
{/* Only show this button on mobile or tablet */}
134163
{!isDesktop && (
@@ -222,7 +251,10 @@ export default function Landing() {
222251
</div>
223252

224253
{/* Why Digitalization Matters Section */}
225-
<section className="bg-[#1B4332] text-white py-12 px-4 text-center">
254+
<section
255+
id="why-digitalization"
256+
className="bg-[#1B4332] text-white py-12 px-4 text-center"
257+
>
226258
<div className="max-w-3xl mx-auto">
227259
<h2 className="text-2xl md:text-3xl font-bold mb-6">
228260
Why digitalization matters
@@ -264,11 +296,21 @@ export default function Landing() {
264296
<BarrierCard icon="staff" title="Lack of staff adoption" />
265297
<BarrierCard icon="tool" title="Unsure which tool is right" />
266298
</div>
299+
<div className="flex justify-center mt-10">
300+
<Button
301+
className="bg-[#17412C] font-bold text-white rounded-full
302+
w-full max-w-[328px] min-w-[200px] h-[44px]
303+
px-4 py-2 hover:opacity-90 text-md"
304+
onClick={() => setIsModalOpen(true)}
305+
>
306+
Find your tools
307+
</Button>
308+
</div>
267309
</div>
268310
</section>
269311

270312
{/* Footer */}
271-
<footer className="bg-[#E2F6DF] py-8 px-4 mt-auto">
313+
<footer id="site-footer" className="bg-[#E2F6DF] py-8 px-4 mt-auto">
272314
<div className="max-w-6xl mx-auto">
273315
<div className="flex flex-col md:flex-row justify-between gap-8 mb-8">
274316
<div>

0 commit comments

Comments
 (0)