Skip to content

Commit

Permalink
Add social container for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKiwi committed Jan 15, 2024
1 parent 8744db8 commit b0264ba
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/components/HeroContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@
}
}


.socials-container-mobile {
display: flex;
align-items: center;
}

@media (min-width: 900px) {
.socials-container-mobile {
display: none;
}
}

.hero-content-text {
font-size: 2rem;
max-width: 52.4rem;
Expand Down
15 changes: 14 additions & 1 deletion src/components/HeroContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const HeroContent = () => {
Welcome to uwucrew:<br/>immerse yourself into the future of anime art 🌐✨
</h3>
<div className="socials-container">
<div className="socials-text">Find us on</div>
<div className="socials-text">Find us on</div>
{SOCIALS.map((social) => (
<a
href={social.url}
Expand All @@ -36,6 +36,19 @@ const HeroContent = () => {
link={DISCORD_LINK}
icon={discordIcon}
/>
<div className="socials-container-mobile">
<div className="socials-text">Find us on</div>
{SOCIALS.map((social) => (
<a
href={social.url}
target="_blank"
rel="noreferrer"
key={social.name}
>
<img className="social" src={social.image} alt={social.name} />
</a>
))}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit b0264ba

Please sign in to comment.