Skip to content

Commit

Permalink
menu components and social icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ropdias committed Jul 7, 2024
1 parent cd2701b commit c96f3cf
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 8 deletions.
9 changes: 9 additions & 0 deletions src/assets/icons/discord-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
9 changes: 9 additions & 0 deletions src/assets/icons/instagram-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
9 changes: 9 additions & 0 deletions src/assets/icons/tiktok-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
9 changes: 9 additions & 0 deletions src/assets/icons/twitter-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
13 changes: 5 additions & 8 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@
</head>
<body>
<div class="flex gap-1">
<a href="#" class="btn btn-sm">Label</a>
<span href="#" class="btn btn-md">Label</span>
<button href="#" class="btn btn-lg">Label</button>
</div>
<div class="flex gap-1">
<a aria-label="label" href="#" class="btn btn-sm"></a>
<span aria-label="label" href="#" class="btn btn-md"></span>
<button aria-label="label" href="#" class="btn btn-lg"></button>
<a href="#" class="social" aria-label="tiktok"></a>
<a href="#" class="social" aria-label="instagram"></a>
<a href="#" class="social" aria-label="twitter"></a>
<a href="#" class="social" aria-label="discord"></a>
<a href="#">Label</a>
</div>
</body>
</html>
12 changes: 12 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ a {
color: inherit;
}

a:hover {
background: linear-gradient(
90deg,
var(--brand-color-secondary) 0%,
var(--brand-color-primary) 100%
);

-webkit-background-clip: text;
background-clip: text;
color: transparent;
}

ul[role='list'] {
list-style: none;
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import url(global.css);
@import url(utility.css);
@import url(buttons.css);
@import url(social.css);
42 changes: 42 additions & 0 deletions src/styles/social.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
a.social {
--bg-img: '';
background-image: var(--bg-img);
width: 1.5rem;
height: 1.5rem;
display: block;

-webkit-background-clip: initial;
background-clip: initial;

&[aria-label='tiktok'] {
--bg-img: url(../assets/icons/tiktok.svg);

&:hover {
--bg-img: url(../assets/icons/tiktok-hover.svg);
}
}

&[aria-label='instagram'] {
--bg-img: url(../assets/icons/instagram.svg);

&:hover {
--bg-img: url(../assets/icons/instagram-hover.svg);
}
}

&[aria-label='twitter'] {
--bg-img: url(../assets/icons/twitter.svg);

&:hover {
--bg-img: url(../assets/icons/twitter-hover.svg);
}
}

&[aria-label='discord'] {
--bg-img: url(../assets/icons/discord.svg);

&:hover {
--bg-img: url(../assets/icons/discord-hover.svg);
}
}
}

0 comments on commit c96f3cf

Please sign in to comment.