Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mirror logo #3

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 22 additions & 46 deletions src/widgets/old/footer/ui/footer-socials/footer-socials.module.scss
Original file line number Diff line number Diff line change
@@ -1,45 +1,37 @@
.socials {
@include setGrid(5, 24, 24, a);

// @for $i from 1 through 8 {
// .socials_link:nth-child(#{$i}) {
// .socials_wrapper {
// transition-delay: #{$i * 0.1 - 0.1}s;
// }
// }
// }

// &Active {
// .socials_wrapper {
// opacity: 1;
// transform: scale(1);
// }
// }
}

.socials_link {
padding: 30px 14px;
border-radius: 17px;
background: $kColorThemeWhite;
border: 2px solid transparent;

transition: border 0.2s ease;

font-size: 0;

svg,
img {
svg {
width: 34px;
height: 34px;
flex-shrink: 0;
fill: rgba(#ACACAC, 0.5);

transition: fill .2s ease;
}

img {
transition: opacity .2s ease;
opacity: 0.3;
.mirror_logo {
width: 34px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;

img {
width: 100%;
height: auto;
object-fit: contain;
transition: opacity .2s ease;
opacity: 0.3;
}
}

span {
Expand All @@ -52,28 +44,22 @@
border-color: $kColorPink;

&:nth-child(1) svg {
fill: #5765F1;
fill: #5765F1;
}

&:nth-child(2) svg {
fill: black;
}

&:nth-child(3) svg {
fill: #A92323;
&:nth-child(3) {
.mirror_logo img {
opacity: 1;
}
}

&:nth-child(4) svg {
fill: $kColorPink;
}

&:nth-child(5) svg {
fill: #FF0000;
}

img {
opacity: 1;
}
}
}

Expand All @@ -82,21 +68,13 @@
align-items: center;
justify-content: center;
gap: 18px;
// opacity: 0;
// transform: scale(0);

// transition: .6s cubic-bezier(.23,1.02,.85,1.33);
// transition-property: opacity, transform;
}

@media screen and (max-width: $kLaptopSM) {
.socials {
}

.socials_link {
gap: 8px;

img, svg {
svg, .mirror_logo {
width: 26px;
height: 26px;
}
Expand All @@ -118,7 +96,6 @@
span {
display: none;
}

svg {
fill: #ACACAC;
}
Expand All @@ -129,9 +106,8 @@
.socials {
@include setGrid(5, 9, 9, a);
}

.socials_link {
padding: 17px;
border-radius: 12px;
}
}
}
16 changes: 9 additions & 7 deletions src/widgets/old/footer/ui/footer-socials/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,23 @@ export const FooterSocials: React.FC = () => {
const socials = useTranslationObject<IFooterSocial[]>('socials', 'footer');

return (
<div
className={css.socials}
>
<div className={css.socials}>
{socials.map((social) => (
<a
<a
className={css.socials_link}
href={social.url}
key={social.url}
target="_blank"
>
{social.name}
<div className={css.socials_wrapper}>
{social.name === "mirror"
? <Image.Default src="/img/mirror-logo.png" alt="" />
: <Sprite.Default icon={social.icon} />}
{social.name === "mirror" ? (
<div className={css.mirror_logo}>
<Image.Default src="/img/mirror-logo.png" alt="" />
</div>
) : (
<Sprite.Default icon={social.icon} />
)}
<span>{social.name}</span>
</div>
</a>
Expand Down
Loading