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 credit: just "Built by Hassan and Youssef", as big as the logo

Youssef0f8f4930c42a
diff --git a/src/app/globals.css b/src/app/globals.css
index 1455f3c..a04b54b 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -86,7 +86,6 @@ 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 201df17..38acc2e 100644
--- a/src/app/home.css
+++ b/src/app/home.css
@@ -1451,25 +1451,18 @@
flex: none;
margin-bottom: -1px;
}
+/* one line, as big as the footer's wordmark, level with the two of us */
.foot-credit-text {
- display: grid;
- gap: 14px;
- padding-bottom: 30px;
-}
-.foot-credit p {
- display: grid;
- gap: 2px;
+ align-self: center;
margin: 0;
-}
-.foot-credit b {
font-family: var(--display);
- font-size: clamp(22px, 2.2vw, 28px);
+ font-size: 23px;
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1.15;
}
/* the names wear a yellow marker line that fills in behind them on hover */
-.foot-credit b a {
+.foot-credit-text a {
color: inherit;
text-decoration: none;
padding: 0 2px;
@@ -1478,39 +1471,9 @@
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 {
+.foot-credit-text a:hover {
background-size: 100% 100%;
}
-.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 {
@@ -1584,21 +1547,6 @@
width: auto;
height: 88px;
}
- .foot-credit-text {
- gap: 10px;
- padding-bottom: 20px;
- }
- .foot-credit b {
- font-size: 19px;
- }
- .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 9f95fd3..edfaf05 100644
--- a/src/components/SiteFooter.tsx
+++ b/src/components/SiteFooter.tsx
@@ -1,7 +1,7 @@
import Link from "next/link";
import Logo from "./Logo";
import { Crew } from "./art/Figure";
-import { IArrowOut, IX } from "./art/Icons";
+import { IArrowOut } from "./art/Icons";
import { TogetherWordmark } from "./art/Together";
import { GITHUB_URL, SCAN_ENABLED } from "@/lib/site";
@@ -40,29 +40,16 @@ export default function SiteFooter() {
<div className="foot-credit">
<Crew names="Hassan & Youssef" size={128} className="foot-crew" />
- <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>
+ <p className="foot-credit-text">
+ 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>
+ </p>
</div>
</div>
diff --git a/src/components/art/Icons.tsx b/src/components/art/Icons.tsx
index 0c61a04..ec439f0 100644
--- a/src/components/art/Icons.tsx
+++ b/src/components/art/Icons.tsx
@@ -113,14 +113,6 @@ 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);