diff --git a/apps/website/src/components/Footer.css b/apps/website/src/components/Footer.css index 0465c73e9..32e6f2468 100644 --- a/apps/website/src/components/Footer.css +++ b/apps/website/src/components/Footer.css @@ -12,18 +12,18 @@ footer .content-wrapper { align-items: center; } -footer .social-buttons { +.social-buttons { display: flex; gap: 1em; } -footer a.social-button { +.social-buttons a.social-button { color: var(--muted-color); transition: color 250ms ease-in-out, opacity 250ms ease-in-out; opacity: 0.7; } -footer a.social-button:hover { +.social-buttons a.social-button:hover { color: var(--brand-1); opacity: 1; } \ No newline at end of file diff --git a/apps/website/src/components/Footer.tsx b/apps/website/src/components/Footer.tsx index 1e0e954da..989c7a566 100644 --- a/apps/website/src/components/Footer.tsx +++ b/apps/website/src/components/Footer.tsx @@ -15,40 +15,55 @@ export default function Footer() { © 2017-2024 zadam. -
- - - - - - - -
+ ) } -function SocialButton({ name, iconSvg, url }: { name: string, iconSvg: string, url: string }) { +export function SocialButtons({ className, withText }: { className?: string, withText?: boolean }) { return ( - +
+ + + + + + + +
+ ) +} + +function SocialButton({ name, iconSvg, url, withText }: { name: string, iconSvg: string, url: string, withText: boolean }) { + return ( + + {withText && name} ) } diff --git a/apps/website/src/components/Header.css b/apps/website/src/components/Header.css index 0382840f7..05b361747 100644 --- a/apps/website/src/components/Header.css +++ b/apps/website/src/components/Header.css @@ -76,7 +76,7 @@ header nav a.active { flex-direction: column; max-height: 0; overflow: hidden; - transition: max-height 200ms ease-in-out; + transition: max-height 200ms ease-in; } header nav.mobile-shown { @@ -91,8 +91,17 @@ header nav a.active { border-bottom: 1px solid rgba(0, 0, 0, 0.2); } - header nav a:last-of-type { + header .social-buttons { + justify-content: space-between; + padding-top: 1em; + } + + header .social-buttons a { border-bottom: unset; + display: flex; + flex-direction: column; + align-items: center; + font-size: 1em; } } diff --git a/apps/website/src/components/Header.tsx b/apps/website/src/components/Header.tsx index d8e52c0c2..016e64a60 100644 --- a/apps/website/src/components/Header.tsx +++ b/apps/website/src/components/Header.tsx @@ -6,6 +6,7 @@ import Icon from "./Icon"; import logoPath from "../assets/icon-color.svg"; import menuIcon from "../assets/boxicons/bx-menu.svg?raw"; import { useState } from "preact/hooks"; +import { SocialButtons } from "./Footer"; interface HeaderLink { url: string; @@ -51,6 +52,8 @@ export function Header() { target={link.external && "_blank"} >{link.text} ))} + +