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

feat: add only icons styling #7

Merged
merged 1 commit into from
Mar 8, 2024
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
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