Skip to content

Commit

Permalink
feat: add only icons styling (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
chailandau authored Mar 8, 2024
1 parent 7320140 commit 6984b3d
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 7 deletions.
8 changes: 8 additions & 0 deletions public/icons/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/icons/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/icons/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 37 additions & 6 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import Image from "next/image";

const Footer = () => {
return (
<footer>
<div className="container m-auto">
<p className="credit">
Data sourced from{" "}
<a href="https://huggingface.co/" target="_blank">
HuggingFace
</a>
</p>
<nav>
<ul>
<li>
Expand All @@ -18,6 +14,41 @@ const Footer = () => {
Powered by OctoAI
</a>
</li>
<li className="only-icons">
<a
href="https://www.youtube.com/channel/UCbUrHpUyw2q5s-oe6t8ljnA"
target="_blank"
>
<Image
src="/icons/youtube.svg"
alt="Youtube Icon"
width="22"
height="22"
/>
</a>
<a href="https://twitter.com/octoml" target="_blank">
<Image src="/icons/x.svg" alt="X Icon" width="22" height="22" />
</a>
<a
href="https://www.linkedin.com/company/octoaicloud"
target="_blank"
>
<Image
src="/icons/linkedin.svg"
alt="LinkedIn Icon"
width="22"
height="22"
/>
</a>
</li>
</ul>
<ul>
<li>
Data sourced from{" "}
<a href="https://huggingface.co/" target="_blank">
HuggingFace
</a>
</li>
<li>
<a
href="https://octo.ai/legals/privacy-policy/?utm_source=llmtimecapsule"
Expand Down
12 changes: 11 additions & 1 deletion src/styles/components/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,18 @@ footer {
@apply text-gray-600 dark:text-gray-400;
}
li {
&.with-icon a,
&.only-icons {
@apply flex items-center justify-center;
}
&.with-icon a {
@apply flex items-center justify-center gap-2;
@apply gap-2;
}
&.only-icons {
@apply gap-7;
}
&.only-icons a {
@apply -m-4 p-4;
}
&.multilink {
@apply flex flex-nowrap gap-1 m-auto;
Expand Down

0 comments on commit 6984b3d

Please sign in to comment.