mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
add new images disk
This commit is contained in:
parent
5426fc4f14
commit
5022905047
26
web/components/ui/image-with-caption.tsx
Normal file
26
web/components/ui/image-with-caption.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
"use client"
|
||||
|
||||
import Image from "next/image"
|
||||
|
||||
interface ImageWithCaptionProps {
|
||||
src: string
|
||||
alt: string
|
||||
caption: string
|
||||
width?: number
|
||||
height?: number
|
||||
}
|
||||
|
||||
export function ImageWithCaption({ src, alt, caption, width = 800, height = 450 }: ImageWithCaptionProps) {
|
||||
return (
|
||||
<figure className="my-4">
|
||||
<Image
|
||||
src={src || "/placeholder.svg"}
|
||||
alt={alt}
|
||||
width={width}
|
||||
height={height}
|
||||
className="rounded-lg shadow-md w-full"
|
||||
/>
|
||||
<figcaption className="text-center text-sm text-gray-600 mt-2">{caption}</figcaption>
|
||||
</figure>
|
||||
)
|
||||
}
|
BIN
web/public/disk/assignment-ct.png
Normal file
BIN
web/public/disk/assignment-ct.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
BIN
web/public/disk/result-point.png
Normal file
BIN
web/public/disk/result-point.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
Loading…
x
Reference in New Issue
Block a user