Skip to content

Commit 8071daa

Browse files
committed
feat: Add source code link
1 parent 39355e1 commit 8071daa

File tree

3 files changed

+51
-8
lines changed

3 files changed

+51
-8
lines changed

src/app/components/footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Footer = () => {
2020
{/* Social Links */}
2121
<div className="flex space-x-4">
2222
<a
23-
href="https://github.com"
23+
href="https://github.com/ishansasika/react-vite-tailwind-template"
2424
target="_blank"
2525
rel="noopener noreferrer"
2626
className="text-gray-400 hover:text-white transition-colors"

src/app/components/header/Header.tsx

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,23 @@ const Header = () => {
4646
))}
4747
</ul>
4848

49-
{/* CTA Button */}
50-
<div className="hidden md:block">
49+
{/* CTA Buttons */}
50+
<div className="hidden md:flex items-center space-x-4">
51+
<a
52+
href="https://github.com/ishansasika/react-vite-tailwind-template"
53+
target="_blank"
54+
rel="noopener noreferrer"
55+
className="text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors"
56+
aria-label="GitHub"
57+
>
58+
<svg className="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
59+
<path
60+
fillRule="evenodd"
61+
d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
62+
clipRule="evenodd"
63+
/>
64+
</svg>
65+
</a>
5166
<Link
5267
to="/contact"
5368
className="px-6 py-2 bg-gradient-to-r from-blue-500 to-purple-600 text-white rounded-lg font-medium hover:shadow-lg transition-shadow"
@@ -106,6 +121,25 @@ const Header = () => {
106121
</Link>
107122
</li>
108123
))}
124+
<li>
125+
<a
126+
href="https://github.com/ishansasika/react-vite-tailwind-template"
127+
target="_blank"
128+
rel="noopener noreferrer"
129+
onClick={() => setIsMenuOpen(false)}
130+
className="flex items-center justify-center space-x-2 text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors"
131+
aria-label="GitHub"
132+
>
133+
<svg className="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
134+
<path
135+
fillRule="evenodd"
136+
d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
137+
clipRule="evenodd"
138+
/>
139+
</svg>
140+
<span>View Source</span>
141+
</a>
142+
</li>
109143
<li>
110144
<Link
111145
to="/contact"

src/app/pages/home/Home.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,21 @@ const Home = () => {
2424
>
2525
Get Started
2626
</Link>
27-
<Link
28-
to="/about"
29-
className="px-8 py-4 bg-white dark:bg-gray-800 text-gray-900 dark:text-white rounded-lg font-semibold border-2 border-gray-300 dark:border-gray-700 hover:border-blue-600 dark:hover:border-blue-600 transition-colors"
27+
<a
28+
href="https://github.com/ishansasika/react-vite-tailwind-template"
29+
target="_blank"
30+
rel="noopener noreferrer"
31+
className="px-8 py-4 bg-gray-900 dark:bg-gray-700 text-white rounded-lg font-semibold hover:shadow-xl transition-shadow flex items-center justify-center gap-2"
3032
>
31-
Learn More
32-
</Link>
33+
<svg className="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
34+
<path
35+
fillRule="evenodd"
36+
d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
37+
clipRule="evenodd"
38+
/>
39+
</svg>
40+
View Source
41+
</a>
3342
</div>
3443
</div>
3544
</div>

0 commit comments

Comments
 (0)