Skip to content

Commit

Permalink
use unpic react
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyles Fohl authored and Gyles Fohl committed Aug 21, 2024
1 parent dc6716e commit f2b1a45
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/routes/_layout._index/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { Image } from "@unpic/react";

import { Container } from "~/components/Container";

export const Hero = () => {
return (
<Container className="">
<Container.Inner>
<div className="flex max-w-3xl flex-col">
<img
className="mb-3 inline-block h-14 w-14 rounded-full"
<Image
src="/gyles-fohl.jpg"
alt="Gyles Fohl"
alt="Gyles Fohl Portrait"
width={56}
height={56}
priority
className="mb-3 inline-block h-14 w-14 rounded-full"
/>
<h1 className="flex flex-col gap-3.5 text-5xl font-bold tracking-tight text-foreground sm:text-6xl">
Gyles Fohl
Expand Down
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@remix-run/node": "^2.11.1",
"@remix-run/react": "^2.11.1",
"@remix-run/serve": "^2.11.1",
"@unpic/react": "^0.1.14",
"@vercel/remix": "^2.11.1",
"@vercel/speed-insights": "^1.0.12",
"clsx": "^2.1.0",
Expand Down

0 comments on commit f2b1a45

Please sign in to comment.