Skip to content

Commit 00d8a43

Browse files
committed
Added Hover Animations
1 parent bd09b95 commit 00d8a43

File tree

7 files changed

+52
-28
lines changed

7 files changed

+52
-28
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { RiArrowRightSLine } from "react-icons/ri";
2+
3+
type RoundedButtonTypes = {
4+
name: string;
5+
};
6+
7+
function RiArrowButton({ name }: RoundedButtonTypes) {
8+
return (
9+
<button type="button" className="right-arrow-btn">
10+
<span className="btn-text">{name}</span>
11+
<RiArrowRightSLine className="text-3xl text-white" />
12+
</button>
13+
);
14+
}
15+
16+
export default RiArrowButton;

src/components/Button/RoundedButton.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/components/Navigation/DesktopNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import RoundedButton from "../Button/RoundedButton";
1+
import RoundedButton from "../Button/RiArrowButton";
22

33
const navLinks = [
44
{

src/components/SocialMediaLinks.tsx

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,33 @@ import { IoLogoFreebsdDevil } from "react-icons/io";
99
//Edit any changes to the SoDA URLs here
1010
//Icons can be found at: https://react-icons.github.io/react-icons/
1111
const socialMediaLinks = [
12-
{ href: "https://thesoda.io/", icon: <CgWebsite /> },
13-
{ href: "https://www.linkedin.com/company/thesoda/", icon: <FaLinkedin /> },
14-
{ href: "https://www.instagram.com/soda.asu/", icon: <RiInstagramFill /> },
12+
{
13+
href: "https://thesoda.io/",
14+
icon: <CgWebsite className="hover:text-soda-red" />,
15+
},
16+
{
17+
href: "https://www.linkedin.com/company/thesoda/",
18+
icon: <FaLinkedin className="hover:text-soda-red" />,
19+
},
20+
{
21+
href: "https://www.instagram.com/soda.asu/",
22+
icon: <RiInstagramFill className="hover:text-soda-red" />,
23+
},
1524
{
1625
href: "https://discord.gg/the-software-developers-association-762811961238618122",
1726
icon: <FaDiscord />,
1827
},
19-
{ href: "https://www.facebook.com/SoDAASU/", icon: <FaFacebookSquare /> },
20-
{ href: "https://github.com/asusoda", icon: <FaGithub /> },
28+
{
29+
href: "https://www.facebook.com/SoDAASU/",
30+
icon: <FaFacebookSquare className="hover:text-soda-red" />,
31+
},
32+
{
33+
href: "https://github.com/asusoda",
34+
icon: <FaGithub className="hover:text-soda-red" />,
35+
},
2136
{
2237
href: "https://asu.campuslabs.com/engage/organization/soda",
23-
icon: <IoLogoFreebsdDevil />,
38+
icon: <IoLogoFreebsdDevil className="hover:text-soda-red" />,
2439
},
2540
];
2641

src/components/Sponsors/Sponsors.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ function SponsorsMarquee() {
6363
key={index}
6464
src={logoMap[element.name as SponsorLogo]} // Casting element.name to SponsorLogo
6565
alt={element.name}
66-
className="w-[12vw] object-contain"
66+
className="w-[10vw] object-contain"
67+
/>
68+
))}
69+
{sponsors.map((element, index) => (
70+
<img
71+
key={index}
72+
src={logoMap[element.name as SponsorLogo]} // Casting element.name to SponsorLogo
73+
alt={element.name}
74+
className="w-[10vw] object-contain"
6775
/>
6876
))}
6977
</div>

src/components/Stats/Statistics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import AnimatedNumber from "../logic/AnimatedNumber";
22
import { Statistic } from "semantic-ui-react";
33
import teamsData from "../../assets/teams.json";
4-
import RoundedButton from "../Button/RoundedButton";
4+
import RoundedButton from "../Button/RiArrowButton";
55

66
const dollarFormatter = new Intl.NumberFormat("US", {
77
style: "currency",

src/styles/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ footer {
271271
@apply px-3 py-2 bg-soda-red rounded-full;
272272
}
273273

274+
.right-arrow-btn {
275+
@apply flex px-3 py-3 bg-soda-red rounded-full items-center hover:bg-[#c12654] justify-center;
276+
}
277+
274278
.regular-btn {
275279
@apply px-3 py-1 bg-soda-red rounded-lg;
276280
}

0 commit comments

Comments
 (0)