Add R2 image display in homepage with CDN support
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import Image from "next/image";
|
||||
import { cdnUrl } from "@/lib/cdn";
|
||||
import { PostHogTestButton } from "./posthog-test-button";
|
||||
|
||||
export default function Home() {
|
||||
@@ -8,6 +10,13 @@ export default function Home() {
|
||||
<p className="text-xl text-muted-foreground">
|
||||
Производитель фасадной плитки
|
||||
</p>
|
||||
<Image
|
||||
src={cdnUrl("test/Frame 55.png")}
|
||||
alt="Test R2 image"
|
||||
width={600}
|
||||
height={486}
|
||||
className="rounded-lg shadow-lg"
|
||||
/>
|
||||
<div className="flex gap-4 text-sm text-muted-foreground">
|
||||
<span>Next.js</span>
|
||||
<span>+</span>
|
||||
|
||||
Reference in New Issue
Block a user