Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use unpic react #16

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ node_modules
.env.production
.vercel
stats.html

.vercel
File renamed without changes
13 changes: 10 additions & 3 deletions app/routes/_layout._index/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import { Image } from "@unpic/react";

import gyles from "../../assets/gyles-fohl.jpg";
import { Container } from "~/components/Container";

export const Hero = () => {
return (
<Container className="">
<Container.Inner>
<div className="flex max-w-3xl flex-col">
<img
<Image
src={gyles}
alt="Gyles Fohl Portrait"
width={56}
height={56}
priority
className="mb-3 inline-block h-14 w-14 rounded-full"
src="/gyles-fohl.jpg"
alt="Gyles Fohl"
cdn="vercel"
/>
<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
8 changes: 8 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"images": {
"sizes": [56, 256, 384, 600, 1000],
"domains": [],
"minimumCacheTTL": 60,
"formats": ["image/webp", "image/avif"]
}
}