Skip to content

Commit 1cc74ad

Browse files
committed
Use satori to render cleaner results
1 parent 400f8a7 commit 1cc74ad

File tree

6 files changed

+271
-58
lines changed

6 files changed

+271
-58
lines changed

Diff for: Roboto-Regular.ttf

164 KB
Binary file not shown.

Diff for: app/form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ function PollOptions({poll, onChange} : {poll: Poll, onChange: (index: number) =
345345

346346
function PollResults({poll} : {poll: Poll}) {
347347
return (
348-
<div>
348+
<div className="mb-4">
349349
<img src={`/api/image?id=${poll.id}&results=true&date=${Date.now()}`} alt='poll results'/>
350350
{/*<div className="mb-4 text-left">*/}
351351
{/* {[poll.option1, poll.option2, poll.option3, poll.option4].filter(e => e !== "").map((option, index) => (*/}

Diff for: package-lock.json

+153
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"postcss": "^8.4.33",
1919
"react": "18.2.0",
2020
"react-dom": "18.2.0",
21+
"satori": "^0.10.11",
2122
"sharp": "^0.33.2",
2223
"tailwindcss": "3.4.1",
2324
"typescript": "5.3.3",

Diff for: pages/api/image.ts

-57
This file was deleted.

0 commit comments

Comments
 (0)