Skip to content

Commit d490250

Browse files
committed
article ai
1 parent 239227c commit d490250

7 files changed

Lines changed: 83 additions & 0 deletions

File tree

public/assets/epaath.webp

51.1 KB
Loading

public/assets/epaathtab.png

1.02 MB
Loading

public/assets/learningames.png

519 KB
Loading

public/assets/pustakalya.png

441 KB
Loading

public/assets/railsgem.png

110 KB
Loading
248 KB
Loading

src/components/pages/Home.tsx

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import { motion } from 'motion/react';
2+
import { Link } from 'react-router-dom';
3+
import { Hand, BookOpen, FolderKanban, Camera } from 'lucide-react';
4+
import { getImageUrl } from '../../utils/imageUtils';
5+
import contentData from '../../data/content';
6+
7+
export function Home() {
8+
return (
9+
<div className="w-full flex flex-col items-center justify-center bg-background py-12 sm:py-16 md:py-24">
10+
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-12">
11+
{/* Person Image Section */}
12+
<motion.div
13+
initial={{ opacity: 0, y: -20 }}
14+
animate={{ opacity: 1, y: 0 }}
15+
transition={{ duration: 0.6 }}
16+
className="text-center mb-8"
17+
>
18+
<img
19+
src={getImageUrl("src/assets/ray.png")}
20+
alt="Regan Maharjan"
21+
className="w-auto mx-auto rounded-full object-contain"
22+
style={{ height: 'clamp(200px, 30vh, 400px)' }}
23+
/>
24+
</motion.div>
25+
26+
{/* Welcome Text Section */}
27+
<motion.div
28+
initial={{ opacity: 0, y: 20 }}
29+
animate={{ opacity: 1, y: 0 }}
30+
transition={{ duration: 0.6, delay: 0.1 }}
31+
className="text-center"
32+
>
33+
<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">
34+
Hello, welcome here,
35+
</h1>
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">
37+
Namaste (Greetings!)
38+
</p>
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>
79+
</motion.div>
80+
</div>
81+
</div>
82+
);
83+
}

0 commit comments

Comments
 (0)