Skip to content

Commit

Permalink
Added Hover Animations
Browse files Browse the repository at this point in the history
  • Loading branch information
LuaanNguyen committed Aug 3, 2024
1 parent bd09b95 commit 00d8a43
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 28 deletions.
16 changes: 16 additions & 0 deletions src/components/Button/RiArrowButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { RiArrowRightSLine } from "react-icons/ri";

type RoundedButtonTypes = {
name: string;
};

function RiArrowButton({ name }: RoundedButtonTypes) {
return (
<button type="button" className="right-arrow-btn">
<span className="btn-text">{name}</span>
<RiArrowRightSLine className="text-3xl text-white" />
</button>
);
}

export default RiArrowButton;
19 changes: 0 additions & 19 deletions src/components/Button/RoundedButton.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Navigation/DesktopNav.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import RoundedButton from "../Button/RoundedButton";
import RoundedButton from "../Button/RiArrowButton";

const navLinks = [
{
Expand Down
27 changes: 21 additions & 6 deletions src/components/SocialMediaLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,33 @@ import { IoLogoFreebsdDevil } from "react-icons/io";
//Edit any changes to the SoDA URLs here
//Icons can be found at: https://react-icons.github.io/react-icons/
const socialMediaLinks = [
{ href: "https://thesoda.io/", icon: <CgWebsite /> },
{ href: "https://www.linkedin.com/company/thesoda/", icon: <FaLinkedin /> },
{ href: "https://www.instagram.com/soda.asu/", icon: <RiInstagramFill /> },
{
href: "https://thesoda.io/",
icon: <CgWebsite className="hover:text-soda-red" />,
},
{
href: "https://www.linkedin.com/company/thesoda/",
icon: <FaLinkedin className="hover:text-soda-red" />,
},
{
href: "https://www.instagram.com/soda.asu/",
icon: <RiInstagramFill className="hover:text-soda-red" />,
},
{
href: "https://discord.gg/the-software-developers-association-762811961238618122",
icon: <FaDiscord />,
},
{ href: "https://www.facebook.com/SoDAASU/", icon: <FaFacebookSquare /> },
{ href: "https://github.com/asusoda", icon: <FaGithub /> },
{
href: "https://www.facebook.com/SoDAASU/",
icon: <FaFacebookSquare className="hover:text-soda-red" />,
},
{
href: "https://github.com/asusoda",
icon: <FaGithub className="hover:text-soda-red" />,
},
{
href: "https://asu.campuslabs.com/engage/organization/soda",
icon: <IoLogoFreebsdDevil />,
icon: <IoLogoFreebsdDevil className="hover:text-soda-red" />,
},
];

Expand Down
10 changes: 9 additions & 1 deletion src/components/Sponsors/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ function SponsorsMarquee() {
key={index}
src={logoMap[element.name as SponsorLogo]} // Casting element.name to SponsorLogo
alt={element.name}
className="w-[12vw] object-contain"
className="w-[10vw] object-contain"
/>
))}
{sponsors.map((element, index) => (
<img
key={index}
src={logoMap[element.name as SponsorLogo]} // Casting element.name to SponsorLogo
alt={element.name}
className="w-[10vw] object-contain"
/>
))}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stats/Statistics.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AnimatedNumber from "../logic/AnimatedNumber";
import { Statistic } from "semantic-ui-react";
import teamsData from "../../assets/teams.json";
import RoundedButton from "../Button/RoundedButton";
import RoundedButton from "../Button/RiArrowButton";

const dollarFormatter = new Intl.NumberFormat("US", {
style: "currency",
Expand Down
4 changes: 4 additions & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ footer {
@apply px-3 py-2 bg-soda-red rounded-full;
}

.right-arrow-btn {
@apply flex px-3 py-3 bg-soda-red rounded-full items-center hover:bg-[#c12654] justify-center;
}

.regular-btn {
@apply px-3 py-1 bg-soda-red rounded-lg;
}
Expand Down

0 comments on commit 00d8a43

Please sign in to comment.