diff options
Diffstat (limited to 'src/pages/Gear.tsx')
| -rw-r--r-- | src/pages/Gear.tsx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/pages/Gear.tsx b/src/pages/Gear.tsx deleted file mode 100644 index a1984ee..0000000 --- a/src/pages/Gear.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import Card from '../components/Card'; - -import { - dailyDrivers, - desktopParts, - nasParts, - type Part, -} from '../data/gear'; - -function PartsGroup({ title, parts }: { title?: string; parts: Part[] }) { - return ( - <> - {title && <h2 className="text-2xl font-semibold my-8">{title}</h2>} - <ul className="space-y-2"> - {parts.map((p) => ( - <li key={p.name}> - <Card - title={p.name} - body={p.description} - href={p.url} - imgSrc={p.image} - /> - </li> - ))} - </ul> - </> - ); -} - -export default function Gear() { - return ( - <> - <title>߸ gear</title> - <h1>Gear</h1> - - <PartsGroup parts={dailyDrivers} /> - - <PartsGroup title="Desktop" parts={desktopParts} /> - - <PartsGroup title="NAS" parts={nasParts} /> - </> - ); -} |
