Skip to content

Commit 8bf98bd

Browse files
committed
responsive
1 parent 789f61d commit 8bf98bd

3 files changed

Lines changed: 66 additions & 7 deletions

File tree

src/components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function Navigation({ inline = false }: NavigationProps) {
6666
}, 150);
6767
}, [location.pathname, inline]);
6868

69-
const navLinks = contentData.navigation.links;
69+
const navLinks = inline ? (contentData.navigation.homeLinks || contentData.navigation.links) : contentData.navigation.links;
7070

7171
// Exact same header menu behaviour, rendered inline below content (e.g. below Namaste on Home)
7272
if (inline) {

src/components/pages/Home.tsx

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { motion } from 'motion/react';
2+
import { Link } from 'react-router-dom';
3+
import { Hand, BookOpen, FolderKanban, Camera } from 'lucide-react';
24
import { getImageUrl } from '../../utils/imageUtils';
3-
import { Navigation } from '../Navigation';
5+
import contentData from '../../data/content';
46

57
export function Home() {
68
return (
@@ -31,10 +33,49 @@ export function Home() {
3133
<h1 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-normal tracking-tight mb-4 sm:mb-6 text-gray-900">
3234
Hello, welcome here,
3335
</h1>
34-
<p className="text-xl sm:text-2xl md:text-3xl lg:text-4xl font-normal text-gray-700 mb-8 sm:mb-12 md:mb-16">
36+
<p className="text-xl sm:text-2xl md:text-3xl lg:text-4xl font-normal text-gray-700 mb-6 sm:mb-8 md:mb-10">
3537
Namaste (Greetings!)
3638
</p>
37-
<Navigation inline />
39+
<div className="text-base sm:text-lg md:text-xl text-gray-700 mb-6 sm:mb-8 md:mb-10 max-w-2xl mx-auto leading-loose">
40+
<p className="mb-4 text-left sm:text-center leading-relaxed">
41+
Feel free to explore!{' '}
42+
<Link
43+
to="/about"
44+
className="inline-flex items-center gap-1.5 px-3 sm:px-4 py-2 sm:py-2.5 rounded-lg bg-gray-200 hover:bg-gray-300 border-2 border-gray-300 hover:border-gray-400 transition-all font-semibold text-gray-900 shadow-sm hover:shadow-md my-1 sm:my-0"
45+
>
46+
<Hand className="w-4 h-4 sm:w-5 sm:h-5" />
47+
Get to know me
48+
</Link>
49+
{' '}better,{' '}
50+
<Link
51+
to="/storiesofadventure"
52+
className="inline-flex items-center gap-1.5 px-3 sm:px-4 py-2 sm:py-2.5 rounded-lg bg-gray-200 hover:bg-gray-300 border-2 border-gray-300 hover:border-gray-400 transition-all font-semibold text-gray-900 shadow-sm hover:shadow-md my-1 sm:my-0"
53+
>
54+
<BookOpen className="w-4 h-4 sm:w-5 sm:h-5" />
55+
dive into my stories
56+
</Link>
57+
,{' '}
58+
<Link
59+
to="/projects"
60+
className="inline-flex items-center gap-1.5 px-3 sm:px-4 py-2 sm:py-2.5 rounded-lg bg-gray-200 hover:bg-gray-300 border-2 border-gray-300 hover:border-gray-400 transition-all font-semibold text-gray-900 shadow-sm hover:shadow-md my-1 sm:my-0"
61+
>
62+
<FolderKanban className="w-4 h-4 sm:w-5 sm:h-5" />
63+
check out my projects
64+
</Link>
65+
, and{' '}
66+
<Link
67+
to="/photography"
68+
className="inline-flex items-center gap-1.5 px-3 sm:px-4 py-2 sm:py-2.5 rounded-lg bg-gray-200 hover:bg-gray-300 border-2 border-gray-300 hover:border-gray-400 transition-all font-semibold text-gray-900 shadow-sm hover:shadow-md my-1 sm:my-0"
69+
>
70+
<Camera className="w-4 h-4 sm:w-5 sm:h-5" />
71+
browse my photo stories
72+
</Link>
73+
.
74+
</p>
75+
<p className="text-gray-600 text-left sm:text-center">
76+
Seriously, go ahead and click around - I promise it's worth it! 😄
77+
</p>
78+
</div>
3879
</motion.div>
3980
</div>
4081
</div>

src/data/content.ts

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,38 @@ const contentData = {
4949
},
5050
{
5151
"path": "/about",
52-
"label": "Meet Regan"
52+
"label": "Get to Know Regan"
5353
},
5454
{
5555
"path": "/storiesofadventure",
56-
"label": "Stories"
56+
"label": "Adventure Stories"
5757
},
5858
{
5959
"path": "/projects",
60-
"label": "Projects"
60+
"label": "Cool Projects"
6161
},
6262
{
6363
"path": "/photography",
6464
"label": "Photo Stories"
6565
}
66+
],
67+
"homeLinks": [
68+
{
69+
"path": "/about",
70+
"label": "get to know me"
71+
},
72+
{
73+
"path": "/storiesofadventure",
74+
"label": "dive into my stories"
75+
},
76+
{
77+
"path": "/projects",
78+
"label": "check out my projects"
79+
},
80+
{
81+
"path": "/photography",
82+
"label": "browse my photo stories"
83+
}
6684
]
6785
},
6886
"home": {

0 commit comments

Comments
 (0)