Skip to content

armgit / bygga

Public Imported from GitHub
0

IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.

TypeScript

Footer: link Hassan and Youssef to their X profiles

Youssef5b40a3e42d2f
diff --git a/src/app/globals.css b/src/app/globals.css
index a04b54b..1455f3c 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -86,6 +86,7 @@ button,
.cmp-cta,
.cmp-hw,
.empty-go,
+.foot-handles a,
.no-select {
-webkit-user-select: none;
user-select: none;
diff --git a/src/app/home.css b/src/app/home.css
index d006267..201df17 100644
--- a/src/app/home.css
+++ b/src/app/home.css
@@ -1451,23 +1451,66 @@
flex: none;
margin-bottom: -1px;
}
+.foot-credit-text {
+ display: grid;
+ gap: 14px;
+ padding-bottom: 30px;
+}
.foot-credit p {
display: grid;
gap: 2px;
margin: 0;
- padding-bottom: 34px;
}
.foot-credit b {
font-family: var(--display);
font-size: clamp(22px, 2.2vw, 28px);
font-weight: 800;
letter-spacing: -0.03em;
- line-height: 1.1;
+ line-height: 1.15;
+}
+/* the names wear a yellow marker line that fills in behind them on hover */
+.foot-credit b a {
+ color: inherit;
+ text-decoration: none;
+ padding: 0 2px;
+ margin: 0 -2px;
+ border-radius: 4px;
+ background: linear-gradient(var(--accent), var(--accent)) left 100% / 100% 0.22em no-repeat;
+ transition: background-size 0.35s var(--ease);
+}
+.foot-credit b a:hover {
+ background-size: 100% 100%;
}
-.foot-credit span {
+.foot-credit p > span {
color: var(--ink-2);
font-size: 15.5px;
}
+.foot-handles {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+}
+.foot-handles a {
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ height: 30px;
+ padding: 0 12px 0 11px;
+ border-radius: 999px;
+ background: #fff;
+ box-shadow: inset 0 0 0 1px var(--line-2);
+ color: var(--ink-2);
+ font-size: 13.5px;
+ font-weight: 500;
+ text-decoration: none;
+ transition:
+ box-shadow 0.25s var(--ease),
+ color 0.25s var(--ease);
+}
+.foot-handles a:hover {
+ box-shadow: inset 0 0 0 1px var(--ink-3);
+ color: var(--ink);
+}
.crew-a,
.crew-b,
.crew-board {
@@ -1541,15 +1584,21 @@
width: auto;
height: 88px;
}
- .foot-credit p {
- padding-bottom: 22px;
+ .foot-credit-text {
+ gap: 10px;
+ padding-bottom: 20px;
}
.foot-credit b {
font-size: 19px;
}
- .foot-credit span {
+ .foot-credit p > span {
font-size: 14px;
}
+ .foot-handles a {
+ height: 28px;
+ padding: 0 10px 0 9px;
+ font-size: 12.5px;
+ }
.foot-base {
padding: 18px 4px 0;
}
diff --git a/src/components/SiteFooter.tsx b/src/components/SiteFooter.tsx
index 00ac7b2..9f95fd3 100644
--- a/src/components/SiteFooter.tsx
+++ b/src/components/SiteFooter.tsx
@@ -1,10 +1,16 @@
import Link from "next/link";
import Logo from "./Logo";
import { Crew } from "./art/Figure";
-import { IArrowOut } from "./art/Icons";
+import { IArrowOut, IX } from "./art/Icons";
import { TogetherWordmark } from "./art/Together";
import { GITHUB_URL, SCAN_ENABLED } from "@/lib/site";
+const CREW = [
+ { name: "Hassan", handle: "nutlope" },
+ { name: "Youssef", handle: "YoussefUIUX" },
+];
+const x = (handle: string) => `https://x.com/${handle}`;
+
export default function SiteFooter() {
return (
<footer className="site-foot">
@@ -34,10 +40,29 @@ export default function SiteFooter() {
<div className="foot-credit">
<Crew names="Hassan & Youssef" size={128} className="foot-crew" />
- <p>
- <b>Built by Hassan and Youssef.</b>
- <span>A two-person job, just like the manual says.</span>
- </p>
+ <div className="foot-credit-text">
+ <p>
+ <b>
+ Built by{" "}
+ <a href={x(CREW[0].handle)} target="_blank" rel="noreferrer">
+ {CREW[0].name}
+ </a>{" "}
+ and{" "}
+ <a href={x(CREW[1].handle)} target="_blank" rel="noreferrer">
+ {CREW[1].name}
+ </a>
+ .
+ </b>
+ <span>A two-person job, just like the manual says.</span>
+ </p>
+ <div className="foot-handles">
+ {CREW.map((c) => (
+ <a key={c.handle} href={x(c.handle)} target="_blank" rel="noreferrer" aria-label={`${c.name} on X, @${c.handle}`}>
+ <IX size={12} />@{c.handle}
+ </a>
+ ))}
+ </div>
+ </div>
</div>
</div>
diff --git a/src/components/art/Icons.tsx b/src/components/art/Icons.tsx
index 8a98ec9..0c61a04 100644
--- a/src/components/art/Icons.tsx
+++ b/src/components/art/Icons.tsx
@@ -112,6 +112,15 @@ export const IPlus = icon(Plus);
export const IFilter = icon(ListFilter);
export const IArrowUpRight = icon(ArrowUpRight);
export const IStar = icon(Star);
+
+/** The X (Twitter) mark. */
+export function IX({ size = 14, className }: { size?: number; className?: string }) {
+ return (
+ <svg viewBox="0 0 24 24" width={size} height={size} className={className} fill="currentColor" aria-hidden="true">
+ <path d="M18.9 1.15h3.68l-8.04 9.19L24 22.85h-7.4l-5.8-7.59-6.64 7.59H.47l8.6-9.83L0 1.15h7.6l5.24 6.93zm-1.29 19.5h2.04L6.49 3.24H4.3z" />
+ </svg>
+ );
+}
export const IScan = icon(ScanText);
export const IKey = icon(KeyRound);
export const IImage = icon(Image);