Skip to content

Commit

Permalink
💄Updating - Styling for social icons (#1726)
Browse files Browse the repository at this point in the history
* 💄Updating - Styling for social icons

* Converting white text color to code
  • Loading branch information
amankumarrr authored Nov 17, 2023
1 parent 42a093b commit 12291ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions components/util/socialIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export enum SocialTypes {

const socialStyles = new Map<
SocialTypes,
{ icon: IconType; bgClassName: string }
{ icon: IconType; bgClassName: string; fill?: string }
>([
[
SocialTypes.phone,
Expand Down Expand Up @@ -89,6 +89,7 @@ const socialStyles = new Map<
{
icon: FaGithub,
bgClassName: "bg-social-github",
fill: "black",
},
],
[
Expand Down Expand Up @@ -150,7 +151,7 @@ export const SocialIcons = (data?: SocialIconsParams) => {
key={social.type}
href={URL}
className={classNames(
"unstyled flex h-12 cursor-pointer items-center justify-center rounded-lg text-xl hover:bg-ssw-black hover:bg-none",
"unstyled flex h-12 cursor-pointer items-center justify-center rounded-lg text-xl hover:opacity-70",
styling.bgClassName,
TEXT ? "w-fit shrink-0" : "w-12",
{ "px-5": TEXT },
Expand All @@ -161,10 +162,11 @@ export const SocialIcons = (data?: SocialIconsParams) => {
title={social.title}
target={social.openInSameWindow ? "_self" : "_blank"}
rel="noreferrer nofollow"
prefetch={false}
>
<styling.icon
className={classNames({ "text-2xl": !TEXT })}
color="white"
color={styling.fill ?? "white"}
/>
{TEXT && (
<span className="ml-2 inline text-sm font-bold text-white">
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
facebook: "#3b5998",
xtwitter: "#000",
tiktok: "#000",
github: "#2C2C2C",
github: "#fff",
meetup: "#f05664",
},
sswRed: "#cc4141",
Expand Down

0 comments on commit 12291ad

Please sign in to comment.