This commit is contained in:
2026-02-14 22:25:51 -05:00
parent 6963dffeb5
commit 566378004b
15 changed files with 329 additions and 291 deletions
+8 -10
View File
@@ -1,5 +1,3 @@
import Picture from "../Picture";
const images = [
"https://storage.alexav.gg/content/1f822215-0768-424d-893a-13bcd10aa98b.jpg",
"https://storage.alexav.gg/content/de890eaf-fc73-42a4-9fbe-a62313394a4c.jpg",
@@ -8,19 +6,19 @@ const images = [
"https://storage.alexav.gg/content/2f36c1dd-eaf8-4fd3-a3cd-1d25fe8f5a07.jpg",
];
export default function PictureCarousel({
onClick,
}: {
onClick: (url: string) => void;
}) {
export default function PictureCarousel() {
return (
<div className="border border-white border-solid rounded-lg p-2">
<h1 className="text-2xl font-bold italic">pictures</h1>
<div className="whitespace-nowrap overflow-x-auto">
<div className="my-2 space-x-2">
{images.map((v, k) => {
return <Picture key={k} image={v} onClick={() => onClick(v)} />;
return (
<img
key={k}
src={v}
className="inline w-[200px] max-h-[100px] object-cover"
/>
);
})}
</div>
</div>