Skip to content

Commit 39ee0c3

Browse files
committed
sizes & borders
1 parent 68ffb8c commit 39ee0c3

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/app/PuzzleClient.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function useGridSize() {
2828
const [gridSize, setGridSize] = useState(0);
2929
useEffect(() => {
3030
function updateSize() {
31-
if (containerSize < 640) {
31+
if (containerSize < 500) {
3232
setGridSize(3);
33-
} else if (containerSize < 900) {
33+
} else if (containerSize < 650) {
3434
setGridSize(4);
3535
} else {
3636
setGridSize(5);
@@ -118,7 +118,7 @@ const ALL_FACTS = [
118118
// 10
119119
`Scrum (CSPO 2017) & <a href="https://www.amanet.org/5-day-mba-certificate-program/" target="_blank">AMA 5-Day MBA (2021)</a>`,
120120
// 11
121-
`I've built products with: GCP, AWS, Postgres, Flutter, Python, TypeScript, Docker, Terraform, REST, GraphQL, Datadog, React, Next.js, D3.js, ...`,
121+
`I've built with: GCP, AWS, Postgres, Flutter, Python, Terraform, React/TS, D3.js, ...`,
122122
// 12
123123
`Focus on user-centered products, team autonomy & growth: <a href="https://www.delfina.com/resource/finding-your-users-in-digital-health" target="_blank">Learn more</a>`,
124124
// 13
@@ -138,7 +138,7 @@ const ALL_FACTS = [
138138
// 22
139139
`Favorite side project: <a href="https://brainshare.io" target="_blank">Brainshare</a> (code on <a href="https://github.com/zakandrewking/brainshare" target="_blank">GitHub</a>)`,
140140
// 23
141-
`I'm a passionate tech leader — always thinking about how to recruit amazing engineers & empower them to do their best work`,
141+
`Always thinking about how to recruit amazing engineers & empower them to do their best work`,
142142
// 24
143143
`Dissertation: <a href="https://escholarship.org/content/qt83d340c7/qt83d340c7.pdf" target="_blank">"Optimization of microbial cell factories..."</a>`,
144144
`Favorite AI: <a href="https://www.youtube.com/watch?v=syyXdBg9BIc" target="_blank">Ash in Alien</a>`,
@@ -506,7 +506,7 @@ export default function PuzzleClient() {
506506
)}
507507

508508
<div
509-
className="border"
509+
className="border-[2px] border-gray-100 box-border flex-none"
510510
style={{
511511
position: "relative",
512512
width: containerSize,
@@ -546,14 +546,14 @@ export default function PuzzleClient() {
546546
if (tile === null) return null; // Blank spot
547547

548548
const [row, col] = [Math.floor(i / gridSize), i % gridSize];
549-
const baseX = col * tileSize;
550-
const baseY = row * tileSize;
549+
const baseX = col * tileSize - 2;
550+
const baseY = row * tileSize - 2;
551551
const off = tileOffsets[i] || { x: 0, y: 0 };
552552
const blankIndex = tiles.indexOf(null);
553553
const canMove = isAdjacent(i, blankIndex);
554554

555555
const tileClasses = clsx(
556-
"absolute pointer-events-auto draggable border",
556+
"absolute pointer-events-auto draggable border-[2px] border-gray-100 box-border",
557557
!isDraggingTile[i] &&
558558
"transition-transform duration-200 ease-in-out"
559559
);
@@ -598,13 +598,10 @@ export default function PuzzleClient() {
598598
</div>
599599

600600
<style jsx global>{`
601-
* {
602-
box-sizing: border-box;
603-
}
604601
html {
605602
color-scheme: light dark;
606603
height: 100%;
607-
overscroll-behavior: none; /* Prevent bounce on iOS */
604+
overscroll-behavior: none;
608605
}
609606
body {
610607
margin: 0;

0 commit comments

Comments
 (0)