forked from UKSOURCE/ipv6
Merge pull request 'Build ipv6' (#16) from feat/duong-11052026-IPV6SUBMIT into develop
Reviewed-on: UKSOURCE/ipv6#16
This commit is contained in:
@@ -5,7 +5,7 @@ const BASE = process.env.NEXT_PUBLIC_BASE_PATH || "";
|
||||
type GalleryItem = {
|
||||
src: string;
|
||||
alt: string;
|
||||
span: "wide" | "normal" | "full";
|
||||
span: string;
|
||||
};
|
||||
|
||||
type Props = {
|
||||
@@ -18,14 +18,14 @@ type Props = {
|
||||
};
|
||||
|
||||
// Map span → Tailwind col-span classes
|
||||
const spanClass: Record<GalleryItem["span"], string> = {
|
||||
const spanClass: Record<string, string> = {
|
||||
wide: "md:col-span-2 lg:col-span-2",
|
||||
normal: "",
|
||||
full: "md:col-span-2 lg:col-span-3",
|
||||
};
|
||||
|
||||
// Map span → chiều cao ảnh
|
||||
const heightClass: Record<GalleryItem["span"], string> = {
|
||||
const heightClass: Record<string, string> = {
|
||||
wide: "h-[240px] md:h-[340px] lg:h-[420px]",
|
||||
normal: "h-[240px] md:h-[340px] lg:h-[420px]",
|
||||
full: "h-[260px] md:h-[360px] lg:h-[480px]",
|
||||
|
||||
Reference in New Issue
Block a user