-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ♻️ Update work images, add gear page with content
- Loading branch information
Showing
17 changed files
with
213 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,49 @@ | ||
import type { Metadata } from "next"; | ||
|
||
import { Item } from "@/components/gear/gear-item"; | ||
import { type GearCategory, type GearItem, gear } from "@/components/gear/gear.constants"; | ||
import Section from "@/components/ui/section"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Gear", | ||
description: "My toolbox. This is gear I actually own and recommend.", | ||
}; | ||
|
||
export default function Page() { | ||
const categories = gear.reduce((acc, item) => { | ||
if (!acc.has(item.category)) { | ||
acc.set(item.category, []); | ||
} | ||
acc.get(item.category)?.push(item); | ||
return acc; | ||
}, new Map<GearCategory, GearItem[]>()); | ||
|
||
const sortedCategories = Array.from(categories.entries()).sort((a, b) => a[0].localeCompare(b[0])); | ||
|
||
return ( | ||
<div className="flex flex-col gap-16 md:gap-24"> | ||
<div className="flex flex-col space-y-12 md:space-y-24"> | ||
<div className="flex animate-in flex-col space-y-4"> | ||
<h1 className="animate-in font-bold text-lg text-primary">Gear</h1> | ||
|
||
<p className="animate-in font-light leading-relaxed" style={{ "--index": 1 } as React.CSSProperties}> | ||
List of tools I actually own and enjoy using. | ||
</p> | ||
</div> | ||
{sortedCategories.map(([category, items], index) => ( | ||
<Section | ||
className="animate-in" | ||
style={{ "--index": index + 2 } as React.CSSProperties} | ||
key={category} | ||
heading={category} | ||
headingAlignment="left" | ||
> | ||
<ul className="animated-list flex flex-col gap-8"> | ||
{items.map((item) => ( | ||
<Item key={item.title} {...item} /> | ||
))} | ||
</ul> | ||
</Section> | ||
))} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
|
||
import type { GearItem } from "@/components/gear/gear.constants"; | ||
import { buttonVariants } from "@/components/ui/button"; | ||
import { cn } from "@/lib/utils"; | ||
|
||
export function Item({ title, description, image, link }: Readonly<GearItem>) { | ||
return ( | ||
<li className="col-span-1 row-span-1 flex snap-start items-center gap-4 transition-opacity"> | ||
<Link className="relative h-20 w-20 flex-shrink-0" href={link} target="_blank" rel="noreferrer"> | ||
<Image | ||
src={image} | ||
alt={title} | ||
fill | ||
className="rounded-md border border-input bg-white object-contain object-center p-2" | ||
/> | ||
</Link> | ||
<div className="flex grow items-center justify-between gap-2"> | ||
<div className="space-y-1"> | ||
<h3 className="line-clamp-2 font-medium text-primary leading-tight">{title}</h3> | ||
<p className="line-clamp-3 text-muted-foreground text-sm leading-tight">{description}</p> | ||
</div> | ||
<div> | ||
<Link | ||
className={cn( | ||
"ml-auto h-fit rounded-full bg-tertiary px-4 py-2 text-sm", | ||
buttonVariants({ variant: "outline" }), | ||
)} | ||
href={link} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Get | ||
</Link> | ||
</div> | ||
</div> | ||
</li> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
import type { StaticImageData } from "next/image"; | ||
|
||
export enum GearCategory { | ||
Home = "Home Desk Setup", | ||
Everyday = "Everyday Carry", | ||
Apps = "Apps", | ||
Other = "Other", | ||
} | ||
|
||
export interface GearItem { | ||
title: string; | ||
description: string; | ||
category: GearCategory; | ||
image: string | StaticImageData; | ||
link: string; | ||
} | ||
|
||
export const gear: GearItem[] = [ | ||
{ | ||
title: "BenQ Monitor Light", | ||
description: "Auto-dimming comes in clutch with zero screen glare.", | ||
category: GearCategory.Home, | ||
image: "https://f.media-amazon.com/images/I/51TVzOs05eL._AC_SL1500_.jpg", | ||
link: "https://a.co/d/iHjTfm3", | ||
}, | ||
{ | ||
title: "Anker USB-C Hub", | ||
description: "One cable solution for a MacBook.", | ||
category: GearCategory.Home, | ||
image: "https://f.media-amazon.com/images/I/61dt+Oo4PfL._AC_SL1500_.jpg", | ||
link: "https://a.co/d/ezFCEfd", | ||
}, | ||
{ | ||
title: "Apple Magic Trackpad", | ||
description: "Best trackpad for MacOS gestures and control.", | ||
category: GearCategory.Home, | ||
image: "https://f.media-amazon.com/images/I/41KZtzhlK+L._AC_SL1500_.jpg", | ||
link: "https://a.co/d/7X2yXE2", | ||
}, | ||
{ | ||
title: "Logitech MX Master 3S", | ||
description: "Ergonomic and comfortable for daily use.", | ||
category: GearCategory.Home, | ||
image: "https://f.media-amazon.com/images/I/61xKiCADfpL._AC_SL1500_.jpg", | ||
link: "https://amzn.to/3PFWCKu", | ||
}, | ||
{ | ||
title: "Keychron Q1 Max", | ||
description: "Wireless - favorite keyboard for work and gaming.", | ||
category: GearCategory.Home, | ||
image: "https://f.media-amazon.com/images/I/616rea0RO4L._AC_SL1500_.jpg", | ||
link: "https://a.co/d/eop43z3", | ||
}, | ||
{ | ||
title: 'LG 27" UltraGear OLED', | ||
description: "Crisp, great display, and great for gaming.", | ||
category: GearCategory.Home, | ||
image: "https://f.media-amazon.com/images/I/616ZOS5bnnL._AC_SL1500_.jpg", | ||
link: "https://a.co/d/cJ25XuO", | ||
}, | ||
{ | ||
title: "Patagonia Refugio Pack 26L", | ||
description: "Versatile daypack for everyday carry and travel.", | ||
category: GearCategory.Everyday, | ||
image: "https://f.media-amazon.com/images/I/51YI1+sgISL._AC_SL1200_.jpg", | ||
link: "https://a.co/d/amJ1yIx", | ||
}, | ||
{ | ||
title: 'MacBook Pro 16"', | ||
description: "Daily driver. Sleek, great display, and powerful.", | ||
category: GearCategory.Everyday, | ||
image: "https://f.media-amazon.com/images/I/618d5bS2lUL._AC_SL1500_.jpg", | ||
link: "https://a.co/d/deJ5vZ1", | ||
}, | ||
{ | ||
title: "Apple AirPods Pro", | ||
description: "Perfect for on-the-go listening and calls.", | ||
category: GearCategory.Everyday, | ||
image: "https://f.media-amazon.com/images/I/61SUj2aKoEL._AC_SL1500_.jpg", | ||
link: "https://a.co/d/95nVh2Z", | ||
}, | ||
{ | ||
title: "Sony WH-1000XM5", | ||
description: "Premium noise-canceling, perfect for bass music lovers.", | ||
category: GearCategory.Everyday, | ||
image: "https://f.media-amazon.com/images/I/51aXvjzcukL._AC_SL1500_.jpg", | ||
link: "https://a.co/d/6QF6UuG", | ||
}, | ||
{ | ||
title: "Notion", | ||
description: "All-in-one workspace for notes and project planning.", | ||
category: GearCategory.Apps, | ||
image: "https://cdn.brandfetch.io/idPYUoikV7/theme/dark/symbol.svg?c=1bfwsmEH20zzEfSNTed", | ||
link: "https://notion.so", | ||
}, | ||
{ | ||
title: "Raycast", | ||
description: "Spotlight replacement with powerful workflows and extensions.", | ||
category: GearCategory.Apps, | ||
image: "https://cdn.brandfetch.io/idxxHV50Mm/theme/dark/symbol.svg?c=1bfwsmEH20zzEfSNTed", | ||
link: "https://raycast.com", | ||
}, | ||
{ | ||
title: "Cursor", | ||
description: "VS Code alternative with AI. Perfect for development.", | ||
category: GearCategory.Apps, | ||
image: "https://www.cursor.com/assets/images/logo.svg", | ||
link: "https://cursor.sh", | ||
}, | ||
]; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters