Skip to content

Commit ad2e60e

Browse files
authored
Merge pull request #65 from saksham-1304/feat/add-slack-icon-to-community-buttons
love it!!! wanna do the same for github?
2 parents e3125f5 + 10b7ab6 commit ad2e60e

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

components/CTASection.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { ArrowRight, CheckCircle } from 'lucide-react';
2+
import { ArrowRight, CheckCircle, Slack } from 'lucide-react';
33

44
const CTASection: React.FC = () => {
55
const benefits = [
@@ -49,7 +49,9 @@ const CTASection: React.FC = () => {
4949
target="_blank"
5050
rel="noopener noreferrer"
5151
className="border-2 border-surface-50 text-surface-50 hover:bg-surface-50 hover:text-primary-600 dark:border-surface-200 dark:text-surface-200 dark:hover:bg-surface-200 dark:hover:text-primary-700 font-semibold py-4 px-8 rounded-lg transition-colors duration-200 inline-flex items-center justify-center gap-2 text-lg"
52+
aria-label="Join our Slack community"
5253
>
54+
<Slack className="h-5 w-5" aria-hidden="true" />
5355
Join Community
5456
</a>
5557
</div>

components/HeroSection.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { ArrowRight, Play } from 'lucide-react';
2+
import { ArrowRight, Play, Slack } from 'lucide-react';
33

44
const HeroSection: React.FC = () => {
55
return (
@@ -38,7 +38,9 @@ const HeroSection: React.FC = () => {
3838
target="_blank"
3939
rel="noopener noreferrer"
4040
className="btn-secondary text-lg px-8 py-4 inline-flex items-center gap-2"
41+
aria-label="Join our Slack community"
4142
>
43+
<Slack className="h-5 w-5" aria-hidden="true" />
4244
Join Slack Community
4345
</a>
4446
</div>

components/Navbar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from "react";
22
import Link from "next/link";
3-
import { Menu, X } from "lucide-react";
3+
import { Menu, X, Slack } from "lucide-react";
44
import Logo from "./Logo";
55
import ThemeToggle from "./ThemeToggle";
66
import GitHubStarButton from "./GitHubStarsButton";
@@ -67,12 +67,14 @@ const Navbar: React.FC = () => {
6767
<GitHubStarButton />
6868
<Link
6969
href={slackLink.href}
70-
className="text-surface-700 dark:text-surface-300 hover:text-primary-500 dark:hover:text-primary-400 font-medium transition-colors duration-200"
70+
className="text-surface-700 dark:text-surface-300 hover:text-primary-500 dark:hover:text-primary-400 font-medium transition-colors duration-200 inline-flex items-center gap-2"
7171
{...(slackLink.external && {
7272
target: "_blank",
7373
rel: "noopener noreferrer",
7474
})}
75+
aria-label="Join our Slack community"
7576
>
77+
<Slack size={18} aria-hidden="true" />
7678
{slackLink.name}
7779
</Link>
7880
{/* Contact Us button */}

0 commit comments

Comments
 (0)