Files
"use client"
import * as React from "react"
import { motion } from "motion/react"
const images = [
"/img/hero-1.jpg",
"/img/chat-1-light.jpg",
"/img/hero-2.jpg",
"/img/dashboard-1-dark.jpg",
"/img/login-1.jpg",
"/img/hero-1.jpg",
"/img/chat-1-light.jpg",
"/img/hero-2.jpg",
"/img/dashboard-1-dark.jpg",
"/img/login-1.jpg",
]
export function HeroSection() {
return (
<section className="relative h-full w-full overflow-hidden bg-background">
<div className="relative h-full w-full overflow-hidden">
<motion.div
className="absolute left-1/2 top-[50%] h-full w-full"
style={{
x: "-50%",
y: "-50%",
}}
animate={{ rotate: 360 }}
transition={{
duration: 35,
repeat: Infinity,
ease: "linear",
}}
>
{images.map((src, index) => {
const angle = (index * 360) / images.length
const radiusX = 500
const radiusY = 500
const x = Math.cos((angle * Math.PI) / 180) * radiusX
const y = Math.sin((angle * Math.PI) / 180) * radiusY
return (
<div
key={`${src}-${index}`}
className="absolute left-1/2 top-1/2"
style={{
transform: `
translate(-50%, -50%)
translate(${x}px, ${y}px)
`,
}}
>
{/* COUNTER ROTATION */}
<motion.div
animate={{ rotate: -360 }}
transition={{
duration: 35,
repeat: Infinity,
ease: "linear",
}}
>
<div className="h-30 w-full aspect-video overflow-hidden border border-white/10 shadow-2xl">
<img
src={src}
alt={`Designali work ${index + 1}`}
draggable={false}
className="h-full w-full object-cover"
/>
</div>
</motion.div>
</div>
)
})}
</motion.div>
{/* CENTER CONTENT - STATIC */}
<div className="relative z-20 flex min-h-screen flex-col items-center justify-center px-6 pb-20 text-center">
{/* Badge */}
<div className="mb-6 inline-flex items-center gap-2 rounded-full border border-border bg-muted/50 px-4 py-1.5 text-xs text-muted-foreground backdrop-blur-md">
<span className="h-2 w-2 rounded-full bg-primary animate-pulse" />
Designali Studio · Design se code tak
</div>
<h1 className="max-w-[700px] text-4xl font-normal tracking-[-0.04em] md:text-6xl">
Your Brand Ideas
<br />
To Life With Designali
</h1>
<p className="mt-5 max-w-[520px] text-sm leading-6 text-muted-foreground">
Brand identity, UI/UX design and production-ready websites by Ali Imam. Thoughtful design meets production-ready code.
</p>
<div className="mt-7 flex flex-col sm:flex-row items-center gap-3">
<button
type="button"
className="flex items-center gap-3 rounded-full bg-foreground px-6 py-3 text-sm font-medium text-background transition-transform active:scale-95"
>
Start a Project
</button>
<button
type="button"
className="flex items-center gap-2 rounded-full border border-border bg-background px-6 py-3 text-sm font-medium text-foreground hover:bg-muted/50"
>
Explore Work
</button>
</div>
<div className="mt-12 grid w-full max-w-[650px] md:grid-cols-3 md:border-t border-border/60 pt-7">
<div className="px-4 text-center">
<h3 className="font-sans text-base font-medium">
Brand Identity
</h3>
<p className="m-2 text-[11px] text-muted-foreground">
Logos, type and colour systems that stand out.
</p>
</div>
<div className="border-y md:border-y-0 md:border-x border-border/60 p-4 text-center">
<h3 className="font-sans text-base font-medium">
UI/UX Design
</h3>
<p className="m-2 text-[11px] text-muted-foreground">
Interfaces that look great and feel intuitive.
</p>
</div>
<div className="px-4 text-center">
<h3 className="font-sans text-base font-medium">
Production Code
</h3>
<p className="mt-2 text-[11px] text-muted-foreground">
Fast Next.js sites built with Tailwind CSS.
</p>
</div>
</div>
</div>
</div>
</section>
)
}A simple gallery section.
gallery-01


Files
"use client"
import * as React from "react"
import { motion } from "framer-motion"
const images = [
"/images/templates/portfolio-simple.jpg",
"/images/templates/design-agency.jpg",
"/images/templates/resort.jpg",
"/images/templates/ai.jpg",
"/images/templates/vercel.jpg",
"/images/templates/aliimam-comp.jpg",
"/images/templates/dalim-agency-old.jpg",
"/images/templates/dalim-ui-old.jpg",
"/images/templates/dalim-works-old.jpg",
]
export function HeroSection() {
const total = images.length
const centerIndex = (total - 1) / 2
return (
<section className="relative flex h-screen w-full items-center justify-center">
<div className="flex flex-col h-screen items-center justify-center">
{/* Heading */}
<motion.h1
className="relative pt-40 z-50 max-w-2xl text-center text-4xl font-normal leading-[1.15] tracking-tight md:text-6xl"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{
duration: 0.7,
ease: "easeOut",
}}
>
A place to <br /> display <br />
<span className="font-semibold">designali work.</span>
</motion.h1>
{/* Circular Gallery */}
<div className="absolute left-1/2 bottom-1/3 h-full w-full -translate-x-1/2">
{images.map((src, index) => {
const offset = index - centerIndex
/*
* Horizontal position
*/
const x = offset * 90
/*
* Circle / arc calculation.
*
* Center images stay higher.
* Outer images move downward.
*/
const radius = 650
const y =
Math.sqrt(
Math.max(0, radius * radius - x * x)
) - radius
/*
* Flip the curve downward
*/
const arcY = -y
/*
* Rotate according to position on arc
*/
const rotate =
Math.asin(
Math.min(1, Math.max(-1, x / radius))
) *
(180 / Math.PI)
return (
<motion.div
key={index}
className="absolute left-1/2 top-1/2"
style={{
zIndex: index,
}}
initial={{
x: "-50%",
y: "-50%",
opacity: 0,
scale: 0.75,
rotate: rotate - 10,
}}
animate={{
x: `calc(-50% + ${x}px)`,
y: `calc(-50% + ${arcY}px)`,
opacity: 1,
scale: 1,
rotate,
}}
transition={{
delay: 0.15 + index * 0.08,
duration: 0.9,
ease: [0.22, 1, 0.36, 1],
}}
whileHover={{
y: `calc(-50% + ${arcY - 20}px)`,
scale: 1.08,
rotate: rotate * 0.6,
zIndex: 200,
transition: {
duration: 0.25,
},
}}
>
<div className="h-36 w-48 overflow-hidden border-4 rounded-xl border-foreground bg-background shadow-xl md:h-40 md:w-56">
<img
src={src}
alt={`Designali project ${index + 1}`}
className="h-full w-full select-none object-cover"
draggable={false}
/>
</div>
</motion.div>
)
})}
</div>
{/* Description */}
<motion.p
className="relative z-50 px-10 mt-14 max-w-60 md:max-w-md text-center text-xs leading-relaxed text-muted-foreground sm:text-sm"
initial={{ opacity: 0, y: 15 }}
animate={{ opacity: 1, y: 0 }}
transition={{
delay: 1.2,
duration: 0.6,
}}
>
Templates, websites and brand projects designed and built by Ali
Imam at Designali. Design se code tak.
</motion.p>
{/* Buttons */}
<motion.div
className="relative z-50 mt-7 flex items-center gap-4"
initial={{ opacity: 0, y: 15 }}
animate={{ opacity: 1, y: 0 }}
transition={{
delay: 1.35,
duration: 0.6,
}}
>
<button
type="button"
className="rounded-full bg-foreground px-6 py-3 text-xs font-medium text-background shadow-md transition-all hover:bg-foreground"
>
Explore Templates
</button>
<button
type="button"
className="text-xs font-medium text-foreground underline underline-offset-4 transition-colors hover:text-foreground"
>
View work
</button>
</motion.div>
</div>
</section>
)
} A simple gallery section.
gallery-02


Files
const tiles = [
{
title: "Designali Agency",
meta: "Brand identity",
span: "md:col-span-2 md:row-span-2",
gradient: 'url("/images/templates/design-agency.jpg") center / cover',
},
{
title: "Dalim UI",
meta: "UI design",
span: "",
gradient: 'url("/images/templates/dalim-ui-old.jpg") center / cover',
},
{
title: "Dalim Icons",
meta: "Icon system",
span: "",
gradient: 'url("/images/templates/dalim-icons-old.jpg") center / cover',
},
{
title: "Portfolio Simple",
meta: "Template",
span: "md:row-span-2",
gradient: 'url("/images/templates/portfolio-simple.jpg") center / cover',
},
{
title: "Dalim Works",
meta: "Case study",
span: "md:col-span-2",
gradient: 'url("/images/templates/dalim-works-old.jpg") center / cover',
},
{
title: "Dalim Fonts",
meta: "Typography",
span: "",
gradient: 'url("/images/templates/dalim-fonts-old.jpg") center / cover',
},
]
export function Gallery03() {
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-6xl px-6">
<div className="flex flex-wrap items-end justify-between gap-4">
<h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
Selected Designali work
</h2>
<p className="text-sm text-muted-foreground">
Six projects by Ali Imam, design se code tak
</p>
</div>
<div className="mt-10 grid auto-rows-[180px] grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-4">
{tiles.map((tile) => (
<figure
key={tile.title}
className={`group relative overflow-hidden border border-border ${tile.span}`}
>
<div
className="absolute inset-0 transition-transform duration-500 group-hover:scale-105"
style={{ background: tile.gradient }}
/>
<figcaption className="absolute inset-x-0 bottom-0 flex items-center justify-between bg-background/80 px-4 py-2 text-xs backdrop-blur">
<span className="font-medium">{tile.title}</span>
<span className="text-muted-foreground">{tile.meta}</span>
</figcaption>
</figure>
))}
</div>
</div>
</section>
)
}
A mixed-span editorial image grid with captions.
gallery-03


Files
"use client"
import { useState } from "react"
import { cn } from "@/lib/utils"
const filters = ["All", "Branding", "Product", "Web"] as const
const items = [
{ title: "Dalim Agency", tag: "Branding", image: "/images/templates/dalim-agency-old.jpg" },
{ title: "Dalim UI", tag: "Product", image: "/images/templates/dalim-ui-old.jpg" },
{ title: "Portfolio Simple", tag: "Web", image: "/images/templates/portfolio-simple.jpg" },
{ title: "Dalim Graphic", tag: "Branding", image: "/images/templates/dalim-graphic-old.jpg" },
{ title: "Dalim Tools", tag: "Product", image: "/images/templates/dalim-tools-old.jpg" },
{ title: "Resort template", tag: "Web", image: "/images/templates/resort.jpg" },
{ title: "Dalim Fonts", tag: "Branding", image: "/images/templates/dalim-fonts-old.jpg" },
{ title: "AI template", tag: "Product", image: "/images/templates/ai.jpg" },
]
export function Gallery04() {
const [active, setActive] = useState<(typeof filters)[number]>("All")
const visible = items.filter(
(item) => active === "All" || item.tag === active
)
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-6xl px-6">
<div className="flex flex-col gap-6 border-b border-border pb-6 md:flex-row md:items-end md:justify-between">
<h2 className="text-3xl font-semibold tracking-tight">Designali archive</h2>
<div className="flex flex-wrap gap-1">
{filters.map((filter) => (
<button
key={filter}
onClick={() => setActive(filter)}
className={cn(
"border px-3 py-1.5 text-xs transition-colors",
active === filter
? "border-foreground bg-foreground text-background"
: "border-border text-muted-foreground hover:text-foreground"
)}
>
{filter}
</button>
))}
</div>
</div>
<div className="mt-8 grid grid-cols-2 gap-4 md:grid-cols-4">
{visible.map((item) => (
<figure key={item.title}>
<div
className="aspect-[4/5] border border-border"
style={{
background: `url("${item.image}") center / cover, var(--muted)`,
}}
/>
<figcaption className="mt-2 flex justify-between text-xs">
<span className="font-medium">{item.title}</span>
<span className="text-muted-foreground">{item.tag}</span>
</figcaption>
</figure>
))}
</div>
</div>
</section>
)
}
A filterable archive gallery with category tabs.
gallery-04


Files
"use client"
import { useState } from "react"
import {
ChevronLeft,
ChevronRight,
} from "@designali/icons"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const slides = [
{
title: "Designali Agency",
caption: "Brand and website, design se code tak",
gradient: 'url("/images/templates/design-agency.jpg") center / cover',
},
{
title: "Portfolio Simple",
caption: "Next.js portfolio template",
gradient: 'url("/images/templates/portfolio-simple.jpg") center / cover',
},
{
title: "Resort",
caption: "Landing page template",
gradient: 'url("/images/templates/resort.jpg") center / cover',
},
{
title: "AI",
caption: "AI product template",
gradient: 'url("/images/templates/ai.jpg") center / cover',
},
]
export function Gallery05() {
const [index, setIndex] = useState(0)
const slide = slides[index]!
const go = (step: number) =>
setIndex((i) => (i + step + slides.length) % slides.length)
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-5xl px-6">
<div
className="relative aspect-[16/9] border border-border"
style={{ background: slide.gradient }}
>
<div className="absolute bottom-0 left-0 bg-background px-5 py-4">
<p className="font-medium">{slide.title}</p>
<p className="text-xs text-muted-foreground">{slide.caption}</p>
</div>
<div className="absolute right-4 bottom-4 flex gap-2">
<Button
variant="outline"
size="icon"
onClick={() => go(-1)}
aria-label="Previous image"
>
<ChevronLeft />
</Button>
<Button
variant="outline"
size="icon"
onClick={() => go(1)}
aria-label="Next image"
>
<ChevronRight />
</Button>
</div>
</div>
<div className="mt-3 grid grid-cols-4 gap-3">
{slides.map((item, i) => (
<button
key={item.title}
onClick={() => setIndex(i)}
aria-label={`Show ${item.title}`}
className={cn(
"aspect-video border transition-opacity",
i === index
? "border-foreground"
: "border-border opacity-50 hover:opacity-100"
)}
style={{ background: item.gradient }}
/>
))}
</div>
</div>
</section>
)
}
A photo carousel with previous and next controls, captions and thumbnails.
gallery-05


Files
const heights = [
"h-64",
"h-96",
"h-72",
"h-80",
"h-56",
"h-96",
"h-64",
"h-72",
"h-80",
]
const photos = [
"CGI study",
"3D render",
"Motion frame",
"Abstract form",
"Colour study",
"Light study",
"Texture study",
"Shape study",
"Gradient study",
]
const palette = [
"var(--chart-1)",
"var(--chart-2)",
"var(--chart-3)",
"var(--chart-4)",
"var(--chart-5)",
]
export function Gallery06() {
return (
<section className="w-full bg-muted/40 py-20">
<div className="mx-auto max-w-6xl px-6">
<div className="mb-10 max-w-xl">
<p className="text-xs tracking-widest text-muted-foreground uppercase">
Designali visuals
</p>
<h2 className="mt-3 text-3xl font-semibold tracking-tight md:text-4xl">
CGI, 3D and motion by Ali Imam
</h2>
</div>
<div className="columns-1 gap-4 sm:columns-2 lg:columns-3">
{photos.map((photo, i) => (
<figure
key={photo}
className="mb-4 break-inside-avoid border border-border bg-background p-2"
>
<div
className={heights[i]}
style={{
background: `url("/img/ask/ask${i + 1}.jpg") center / cover, linear-gradient(${i * 40}deg, ${palette[i % 5]}, ${palette[(i + 2) % 5]})`,
}}
/>
<figcaption className="flex justify-between px-1 pt-2 text-xs">
<span>{photo}</span>
<span className="text-muted-foreground tabular-nums">
No. {String(i + 1).padStart(2, "0")}
</span>
</figcaption>
</figure>
))}
</div>
</div>
</section>
)
}
A masonry gallery of gradient frames laid out in responsive columns.
gallery-06


Files
const works = [
{ title: "Bloom", year: "2025", medium: "Vector study", shape: "circle" },
{ title: "Fold", year: "2025", medium: "Brand shape", shape: "fold" },
{ title: "Orbit", year: "2024", medium: "Motion loop", shape: "rings" },
{ title: "Stack", year: "2024", medium: "Illustration", shape: "bars" },
] as const
function Artwork({ shape }: { shape: (typeof works)[number]["shape"] }) {
return (
<svg viewBox="0 0 200 200" className="size-full" fill="none">
{shape === "circle" && (
<circle cx="100" cy="100" r="60" fill="var(--chart-1)" />
)}
{shape === "fold" && (
<>
<path d="M40 160 100 40 160 160Z" fill="var(--chart-2)" />
<path d="M100 40 160 160H100Z" fill="var(--chart-4)" />
</>
)}
{shape === "rings" &&
[70, 50, 30].map((r) => (
<circle
key={r}
cx="100"
cy="100"
r={r}
stroke="var(--chart-3)"
strokeWidth="8"
/>
))}
{shape === "bars" &&
[0, 1, 2, 3].map((i) => (
<rect
key={i}
x={40 + i * 32}
y={60 + i * 15}
width="22"
height={100 - i * 15}
fill="var(--chart-5)"
/>
))}
</svg>
)
}
export function Gallery07() {
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-6xl px-6">
<div className="grid gap-px border border-border bg-border sm:grid-cols-2 lg:grid-cols-4">
{works.map((work) => (
<figure key={work.title} className="group bg-background">
<div className="aspect-square bg-muted p-8 transition-colors group-hover:bg-accent">
<Artwork shape={work.shape} />
</div>
<figcaption className="border-t border-border p-4">
<div className="flex items-baseline justify-between">
<span className="font-medium">{work.title}</span>
<span className="text-xs text-muted-foreground">
{work.year}
</span>
</div>
<p className="mt-1 text-xs text-muted-foreground">
{work.medium}
</p>
</figcaption>
</figure>
))}
</div>
<p className="mt-6 text-sm text-muted-foreground">
Shape studies from the Designali illustration library. Explore more
vectors in @designali/vectors.
</p>
</div>
</section>
)
}
A generative artwork gallery built from inline SVG compositions.
gallery-07


Files
"use client"
import { useRef } from "react"
import {
ArrowLeft,
ArrowRight,
} from "@designali/icons"
import { Button } from "@/components/ui/button"
const frames = [
{
title: "Designali Agency",
place: "Brand and website",
year: "2025",
gradient: 'url("/images/templates/design-agency.jpg") center / cover',
},
{
title: "Portfolio Simple",
place: "Next.js template",
year: "2025",
gradient: 'url("/images/templates/portfolio-simple.jpg") center / cover',
},
{
title: "Ali Imam",
place: "Personal site",
year: "2024",
gradient: 'url("/images/templates/aliimam-comp.jpg") center / cover',
},
{
title: "Dalim Agency",
place: "Agency website",
year: "2024",
gradient: 'url("/images/templates/dalim-agency-old.jpg") center / cover',
},
{
title: "Dalim Visuals",
place: "CGI and motion",
year: "2023",
gradient: 'url("/images/templates/dalim-visuals-old.jpg") center / cover',
},
{
title: "Dalim Graphic",
place: "Graphic design",
year: "2023",
gradient: 'url("/images/templates/dalim-graphic-old.jpg") center / cover',
},
]
export function Gallery08() {
const track = useRef<HTMLDivElement>(null)
const scroll = (dir: number) => {
const el = track.current
if (!el) return
el.scrollBy({ left: dir * el.clientWidth * 0.8, behavior: "smooth" })
}
return (
<section className="w-full overflow-hidden bg-background py-20">
<div className="mx-auto max-w-7xl px-6">
<div className="flex flex-wrap items-end justify-between gap-6">
<div>
<p className="text-xs tracking-widest text-muted-foreground uppercase">
Designali work
</p>
<h2 className="mt-3 text-3xl font-semibold tracking-tight md:text-4xl">
Projects designed and built by Ali Imam
</h2>
</div>
<div className="flex gap-2">
<Button
variant="outline"
size="icon-lg"
aria-label="Previous"
onClick={() => scroll(-1)}
>
<ArrowLeft />
</Button>
<Button
variant="outline"
size="icon-lg"
aria-label="Next"
onClick={() => scroll(1)}
>
<ArrowRight />
</Button>
</div>
</div>
<div
ref={track}
className="-mx-6 mt-10 flex snap-x snap-mandatory gap-4 overflow-x-auto scroll-px-6 px-6 pb-4 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
>
{frames.map((frame, i) => (
<figure
key={frame.title}
className="group w-[78%] shrink-0 snap-start sm:w-[45%] lg:w-[30%]"
>
<div className="relative aspect-[3/4] overflow-hidden border border-border">
<div
className="absolute inset-0 transition-transform duration-700 group-hover:scale-105"
style={{ background: frame.gradient }}
/>
<span className="absolute top-4 left-4 bg-background/85 px-2 py-1 font-sans text-[11px] tabular-nums backdrop-blur">
{String(i + 1).padStart(2, "0")} / {String(frames.length).padStart(2, "0")}
</span>
</div>
<figcaption className="mt-3 flex items-baseline justify-between gap-4">
<span className="font-medium">{frame.title}</span>
<span className="text-xs text-muted-foreground">
{frame.place}, {frame.year}
</span>
</figcaption>
</figure>
))}
</div>
</div>
</section>
)
}
Horizontal scroll-snap strip of portrait frames with numbered counters and arrow navigation.
gallery-08


Files
"use client"
import { useEffect, useState } from "react"
import {
ChevronLeft,
ChevronRight,
Expand,
X,
} from "@designali/icons"
import { Button } from "@/components/ui/button"
const photos = [
{ title: "Glass Spheres", camera: "CGI render", gradient: 'url("/img/ask/ask1.jpg") center / cover' },
{ title: "Liquid Chrome", camera: "3D study", gradient: 'url("/img/ask/ask2.jpg") center / cover' },
{ title: "Soft Light", camera: "Motion frame", gradient: 'url("/img/ask/ask3.jpg") center / cover' },
{ title: "Folded Form", camera: "Abstract render", gradient: 'url("/img/ask/ask4.jpg") center / cover' },
{ title: "Pale Shore", camera: "Colour study", gradient: 'url("/img/ask/ask5.jpg") center / cover' },
{ title: "Night Bloom", camera: "CGI render", gradient: 'url("/img/ask/ask6.jpg") center / cover' },
{ title: "Iron Bridge", camera: "3D study", gradient: 'url("/img/ask/ask7.jpg") center / cover' },
{ title: "Fog Line", camera: "Motion frame", gradient: 'url("/img/ask/ask8.jpg") center / cover' },
]
export function Gallery09() {
const [open, setOpen] = useState<number | null>(null)
const step = (dir: number) =>
setOpen((i) => (i === null ? i : (i + dir + photos.length) % photos.length))
const isOpen = open !== null
useEffect(() => {
if (!isOpen) return
const move = (dir: number) =>
setOpen((i) => (i === null ? i : (i + dir + photos.length) % photos.length))
const onKey = (e: KeyboardEvent) => {
if (e.key === "Escape") setOpen(null)
if (e.key === "ArrowRight") move(1)
if (e.key === "ArrowLeft") move(-1)
}
window.addEventListener("keydown", onKey)
return () => window.removeEventListener("keydown", onKey)
}, [isOpen])
const active = open === null ? null : photos[open]!
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-7xl px-6">
<div className="max-w-xl">
<h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
The Designali Visuals Collection
</h2>
<p className="mt-3 text-muted-foreground">
Eight CGI and 3D pieces by Ali Imam. Click any frame to view it
full screen, use the arrow keys to move between them.
</p>
</div>
<div className="mt-10 grid grid-cols-2 gap-2 md:grid-cols-4">
{photos.map((photo, i) => (
<button
key={photo.title}
type="button"
onClick={() => setOpen(i)}
className="group relative aspect-square overflow-hidden border border-border text-left outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
<div className="absolute inset-0" style={{ background: photo.gradient }} />
<div className="absolute inset-0 flex items-end justify-between bg-gradient-to-t from-black/60 to-transparent p-3 text-white opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100">
<span className="text-sm font-medium">{photo.title}</span>
<Expand className="size-4" />
</div>
</button>
))}
</div>
</div>
{active && open !== null && (
<div
role="dialog"
aria-modal="true"
aria-label={active.title}
className="fixed inset-0 z-50 flex flex-col bg-black/90 p-4 text-white backdrop-blur-sm md:p-8"
onClick={() => setOpen(null)}
>
<div className="flex items-center justify-between text-sm">
<span className="font-sans tabular-nums">
{open + 1} / {photos.length}
</span>
<button
type="button"
aria-label="Close"
className="flex size-9 items-center justify-center border border-white/20 hover:bg-white/10"
onClick={() => setOpen(null)}
>
<X className="size-4" />
</button>
</div>
<div
className="relative mx-auto my-6 flex w-full max-w-4xl flex-1 items-center"
onClick={(e) => e.stopPropagation()}
>
<div className="aspect-[4/3] max-h-full w-full border border-white/10" style={{ background: active.gradient }} />
<Button
variant="outline"
size="icon-lg"
aria-label="Previous photo"
className="absolute left-2 border-white/20 bg-black/50 text-white hover:bg-black/70 hover:text-white"
onClick={() => step(-1)}
>
<ChevronLeft />
</Button>
<Button
variant="outline"
size="icon-lg"
aria-label="Next photo"
className="absolute right-2 border-white/20 bg-black/50 text-white hover:bg-black/70 hover:text-white"
onClick={() => step(1)}
>
<ChevronRight />
</Button>
</div>
<div className="text-center">
<p className="font-medium">{active.title}</p>
<p className="mt-1 text-xs text-white/60">{active.camera}</p>
</div>
</div>
)}
</section>
)
}
Square thumbnail grid that opens a fullscreen lightbox with keyboard and arrow navigation.
gallery-09


Files
"use client"
import { useState } from "react"
import {
MoveHorizontal,
} from "@designali/icons"
const projects = [
{
name: "Dalim Agency to Designali",
note: "Rebuilt the agency site with a new brand identity, Next.js and Tailwind CSS.",
before: 'url("/images/templates/dalim-agency-old.jpg") center / cover',
after: 'url("/images/templates/design-agency.jpg") center / cover',
},
{
name: "Ali Imam portfolio",
note: "Refreshed the personal portfolio with a cleaner layout and production-ready components.",
before: 'url("/images/templates/aliimam-old.jpg") center / cover',
after: 'url("/images/templates/aliimam-comp.jpg") center / cover',
},
{
name: "Dalim UI to Designali Blocks",
note: "Evolved the Dalim UI kit into 460+ Designali blocks with semantic design tokens.",
before: 'url("/images/templates/dalim-ui-old.jpg") center / cover',
after: 'url("/img/dashboard-1-light.jpg") center / cover',
},
]
export function Gallery10() {
const [active, setActive] = useState(0)
const [pos, setPos] = useState(50)
const project = projects[active]!
return (
<section className="w-full bg-background py-20">
<div className="mx-auto grid max-w-7xl gap-10 px-6 lg:grid-cols-[1fr_2fr] lg:items-center">
<div>
<p className="text-xs tracking-widest text-muted-foreground uppercase">
Before / After
</p>
<h2 className="mt-3 text-3xl font-semibold tracking-tight md:text-4xl">
Redesigns by Designali
</h2>
<p className="mt-4 text-muted-foreground">
Drag the handle to compare. Earlier Dalim projects by Ali Imam,
redesigned and rebuilt at Designali.
</p>
<div className="mt-8 divide-y divide-border border-y border-border">
{projects.map((p, i) => (
<button
key={p.name}
type="button"
onClick={() => {
setActive(i)
setPos(50)
}}
className={`block w-full py-4 text-left transition-colors ${i === active ? "text-foreground" : "text-muted-foreground hover:text-foreground"}`}
>
<span className="flex items-center gap-3 font-medium">
<span className="font-sans text-xs">0{i + 1}</span>
{p.name}
</span>
{i === active && (
<span className="mt-2 block pl-8 text-sm text-muted-foreground">
{p.note}
</span>
)}
</button>
))}
</div>
</div>
<div className="relative aspect-[4/3] w-full overflow-hidden border border-border select-none">
<div className="absolute inset-0" style={{ background: project.after }} />
<div
className="absolute inset-0"
style={{ background: project.before, clipPath: `inset(0 ${100 - pos}% 0 0)` }}
/>
<span className="absolute top-4 left-4 bg-background/85 px-2 py-1 text-xs font-medium backdrop-blur">
Before
</span>
<span className="absolute top-4 right-4 bg-background/85 px-2 py-1 text-xs font-medium backdrop-blur">
After
</span>
<div
className="pointer-events-none absolute inset-y-0 w-px bg-white"
style={{ left: `${pos}%` }}
>
<span className="absolute top-1/2 left-1/2 flex size-10 -translate-x-1/2 -translate-y-1/2 items-center justify-center border border-white bg-black/60 text-white">
<MoveHorizontal className="size-4" />
</span>
</div>
<input
type="range"
min={0}
max={100}
value={pos}
onChange={(e) => setPos(Number(e.target.value))}
aria-label="Comparison position"
className="absolute inset-0 h-full w-full cursor-ew-resize opacity-0"
/>
</div>
</div>
</section>
)
}
Before and after renovation comparison slider beside a selectable project list.
gallery-10


Files
const plates = [
{
title: "Spheres in motion",
body: "A CGI study in reflection and light, rendered for a Designali brand campaign.",
ratio: "aspect-[4/5]",
gradient: 'url("/img/ask/ask10.jpg") center / cover',
},
{
title: "Quiet geometry",
body: "Abstract 3D forms exploring how soft shadows can carry a brand's mood.",
ratio: "aspect-[16/10]",
gradient: 'url("/img/ask/ask11.jpg") center / cover',
},
{
title: "Fluid colour",
body: "A motion frame from a looping animation built for a landing page hero.",
ratio: "aspect-square",
gradient: 'url("/img/ask/ask12.jpg") center / cover',
},
{
title: "Design se code tak",
body: "The final plate: the moment a visual concept becomes a production-ready page.",
ratio: "aspect-[16/9]",
gradient: 'url("/img/ask/ask13.jpg") center / cover',
},
]
export function Gallery11() {
return (
<section className="w-full bg-background py-20">
<div className="mx-auto grid max-w-7xl gap-12 px-6 lg:grid-cols-[1fr_1.6fr]">
<div className="lg:sticky lg:top-20 lg:self-start">
<p className="text-xs tracking-widest text-muted-foreground uppercase">
Designali Visuals
</p>
<h2 className="mt-3 text-4xl font-semibold tracking-tight md:text-5xl">
CGI & Motion
</h2>
<p className="mt-5 max-w-sm text-muted-foreground">
Four CGI and motion studies by Ali Imam, exploring light, form and
colour for Designali brand work.
</p>
<dl className="mt-8 grid max-w-sm grid-cols-2 gap-px border border-border bg-border text-sm">
{[
["Pieces", "04"],
["Format", "4K render"],
["Medium", "CGI / 3D"],
["Studio", "Designali"],
].map(([k, v]) => (
<div key={k} className="bg-background p-4">
<dt className="text-xs text-muted-foreground">{k}</dt>
<dd className="mt-1 font-medium">{v}</dd>
</div>
))}
</dl>
</div>
<ol className="space-y-16">
{plates.map((plate, i) => (
<li key={plate.title}>
<div
className={`w-full border border-border ${plate.ratio}`}
style={{ background: plate.gradient }}
/>
<div className="mt-5 grid gap-2 sm:grid-cols-[4rem_1fr]">
<span className="font-sans text-sm text-muted-foreground">
Pl. {String(i + 1).padStart(2, "0")}
</span>
<div>
<h3 className="text-lg font-medium">{plate.title}</h3>
<p className="mt-1 text-sm text-muted-foreground">{plate.body}</p>
</div>
</div>
</li>
))}
</ol>
</div>
</section>
)
}
Editorial exhibition layout with a sticky intro panel and a vertical stack of numbered plates.
gallery-11


Files
const prints = [
{ caption: "Brand moodboard", date: "Jun 14", rotate: "-rotate-3", gradient: 'url("/img/ask/ask1.jpg") center / cover' },
{ caption: "Logo explorations", date: "Jun 21", rotate: "rotate-2", gradient: 'url("/img/ask/ask2.jpg") center / cover' },
{ caption: "UI in Figma", date: "Jul 02", rotate: "-rotate-1", gradient: 'url("/img/ask/ask3.jpg") center / cover' },
{ caption: "Next.js build", date: "Jul 03", rotate: "rotate-3", gradient: 'url("/img/ask/ask4.jpg") center / cover' },
{ caption: "Launch day", date: "Jul 19", rotate: "rotate-1", gradient: 'url("/img/ask/ask5.jpg") center / cover' },
{ caption: "Case study shoot", date: "Aug 30", rotate: "-rotate-2", gradient: 'url("/img/ask/ask6.jpg") center / cover' },
]
export function Gallery12() {
return (
<section className="relative w-full overflow-hidden bg-muted/40 py-24">
<div
className="absolute inset-0 opacity-50"
style={{
backgroundImage: "radial-gradient(var(--border) 1px, transparent 1px)",
backgroundSize: "18px 18px",
}}
/>
<div className="relative mx-auto max-w-7xl px-6">
<div className="mx-auto max-w-xl text-center">
<p className="text-xs tracking-widest text-muted-foreground uppercase">
Designali '25 - Studio album
</p>
<h2 className="mt-3 text-3xl font-semibold tracking-tight md:text-4xl">
Moments from a Designali project
</h2>
<p className="mt-3 text-muted-foreground">
From brief to launch, design se code tak. Hover a print to pick it up.
</p>
</div>
<div className="mt-14 grid grid-cols-2 gap-x-4 gap-y-8 sm:gap-x-8 md:grid-cols-3">
{prints.map((print) => (
<figure
key={print.caption}
className={`${print.rotate} bg-card p-2.5 pb-4 text-card-foreground shadow-md ring-1 ring-border transition duration-300 hover:z-10 hover:rotate-0 hover:scale-105 hover:shadow-xl sm:p-3 sm:pb-5`}
>
<div className="aspect-square w-full" style={{ background: print.gradient }} />
<figcaption className="mt-3 flex flex-col gap-0.5 px-1 sm:flex-row sm:items-baseline sm:justify-between">
<span className="truncate font-sans text-sm italic">{print.caption}</span>
<span className="font-sans text-[11px] text-muted-foreground">{print.date}</span>
</figcaption>
</figure>
))}
</div>
</div>
</section>
)
}
Scattered polaroid-style print collage on a dotted background with hover pick-up.
gallery-12


Files
const rowA = [
'url("/images/templates/portfolio-simple.jpg") center / cover',
'url("/images/templates/design-agency.jpg") center / cover',
'url("/images/templates/resort.jpg") center / cover',
'url("/images/templates/ai.jpg") center / cover',
'url("/images/templates/vercel.jpg") center / cover',
'url("/images/templates/aliimam-comp.jpg") center / cover',
]
const rowB = [
'url("/images/templates/dalim-agency-old.jpg") center / cover',
'url("/images/templates/dalim-fonts-old.jpg") center / cover',
'url("/images/templates/dalim-graphic-old.jpg") center / cover',
'url("/images/templates/dalim-icons-old.jpg") center / cover',
'url("/images/templates/dalim-tools-old.jpg") center / cover',
'url("/images/templates/dalim-works-old.jpg") center / cover',
]
const labels = ["Brand", "Web", "Product", "Templates", "Icons", "Motion"]
function Row({ tiles, reverse }: { tiles: string[]; reverse?: boolean }) {
return (
<div className="flex overflow-hidden [mask-image:linear-gradient(90deg,transparent,black_10%,black_90%,transparent)]">
<div
className="flex shrink-0 gap-4 pr-4 group-hover:[animation-play-state:paused]"
style={{ animation: `g13-marquee 40s linear infinite${reverse ? " reverse" : ""}` }}
>
{[...tiles, ...tiles].map((bg, i) => (
<div
key={i}
className="relative h-40 w-60 shrink-0 border border-border md:h-52 md:w-80"
style={{ background: bg }}
aria-hidden={i >= tiles.length}
>
<span className="absolute bottom-3 left-3 bg-background/85 px-2 py-1 text-xs font-medium backdrop-blur">
{labels[i % labels.length]}
</span>
</div>
))}
</div>
</div>
)
}
export function Gallery13() {
return (
<section className="group w-full overflow-hidden bg-background py-20">
<style>{`@keyframes g13-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}@media (prefers-reduced-motion:reduce){[style*="g13-marquee"]{animation:none!important}}`}</style>
<div className="mx-auto max-w-7xl px-6 text-center">
<h2 className="text-3xl font-semibold tracking-tight md:text-5xl">
Many projects. One studio.
</h2>
<p className="mx-auto mt-4 max-w-lg text-muted-foreground">
A continuous reel of Designali and Dalim work by Ali Imam. Hover to
pause the wall.
</p>
</div>
<div className="mt-12 space-y-4">
<Row tiles={rowA} />
<Row tiles={rowB} reverse />
</div>
</section>
)
}
Two opposing infinite marquee rows of project tiles that pause on hover.
gallery-13


Files
import {
ArrowUpRight,
} from "@designali/icons"
const panels = [
{
title: "Templates",
count: "8 templates",
body: "Next.js templates for portfolios, agencies, resorts and AI products.",
gradient: 'url("/images/templates/portfolio-simple.jpg") center / cover',
},
{
title: "Blocks",
count: "460+ blocks",
body: "Copy-and-paste sections for heroes, features, pricing and footers.",
gradient: 'url("/img/hero-1.jpg") center / cover',
},
{
title: "UI Designs",
count: "2300+ examples",
body: "Every component shown in real-world states, light and dark.",
gradient: 'url("/img/dashboard-1-dark.jpg") center / cover',
},
{
title: "Visuals",
count: "CGI and 3D",
body: "CGI, 3D and motion studies by Ali Imam for Designali brand work.",
gradient: 'url("/img/ask/ask5.jpg") center / cover',
},
{
title: "Illustration",
count: "Vectors",
body: "Abstract shapes and vectors from @designali/vectors.",
gradient: 'url("/stock/wallpaper-1.jpg") center / cover',
},
]
export function Gallery14() {
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-7xl px-6">
<div className="flex flex-wrap items-end justify-between gap-4">
<h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
Browse Designali
</h2>
<a href="/blocks" className="inline-flex items-center gap-1 text-sm font-medium hover:underline">
View all blocks <ArrowUpRight className="size-4" />
</a>
</div>
<div className="mt-10 flex h-[640px] flex-col gap-2 md:h-[480px] md:flex-row">
{panels.map((panel) => (
<a
key={panel.title}
href="#"
className="group relative flex min-h-0 flex-1 overflow-hidden border border-border transition-[flex-grow] duration-500 ease-out hover:flex-[3] focus-visible:flex-[3] focus-visible:outline-none"
>
<div
className="absolute inset-0 transition-transform duration-700 group-hover:scale-105"
style={{ background: panel.gradient }}
/>
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent" />
<div className="relative mt-auto w-full p-4 text-white md:p-5">
<div className="flex items-center justify-between gap-2">
<h3 className="text-lg font-medium md:[writing-mode:vertical-rl] md:group-hover:[writing-mode:horizontal-tb] md:group-focus-visible:[writing-mode:horizontal-tb]">
{panel.title}
</h3>
<ArrowUpRight className="size-5 shrink-0 opacity-0 transition-opacity group-hover:opacity-100" />
</div>
<div className="grid grid-rows-[0fr] transition-[grid-template-rows] duration-500 group-hover:grid-rows-[1fr] group-focus-visible:grid-rows-[1fr]">
<div className="overflow-hidden">
<p className="mt-2 max-w-xs text-sm text-white/80">{panel.body}</p>
<p className="mt-2 font-sans text-xs text-white/60">{panel.count}</p>
</div>
</div>
</div>
</a>
))}
</div>
</div>
</section>
)
}
Expanding accordion panels that widen on hover to reveal category details.
gallery-14


Files
"use client"
import { useState } from "react"
import {
ArrowRight,
} from "@designali/icons"
const works = [
{ title: "Portfolio Simple", artist: "Ali Imam", medium: "Next.js template", year: "2025", price: "$49", gradient: 'url("/images/templates/portfolio-simple.jpg") center / cover' },
{ title: "Design Agency", artist: "Ali Imam", medium: "Agency template", year: "2025", price: "$79", gradient: 'url("/images/templates/design-agency.jpg") center / cover' },
{ title: "Resort", artist: "Ali Imam", medium: "Landing page", year: "2025", price: "$49", gradient: 'url("/images/templates/resort.jpg") center / cover' },
{ title: "AI", artist: "Ali Imam", medium: "SaaS template", year: "2024", price: "$79", gradient: 'url("/images/templates/ai.jpg") center / cover' },
{ title: "Vercel Style", artist: "Ali Imam", medium: "Product template", year: "2024", price: "$59", gradient: 'url("/images/templates/vercel.jpg") center / cover' },
]
export function Gallery15() {
const [hover, setHover] = useState(0)
const active = works[hover]!
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-7xl px-6">
<div className="flex flex-wrap items-end justify-between gap-4 border-b border-border pb-6">
<div>
<p className="text-xs tracking-widest text-muted-foreground uppercase">
Available templates
</p>
<h2 className="mt-2 text-3xl font-semibold tracking-tight md:text-4xl">
Designali templates
</h2>
</div>
<p className="text-sm text-muted-foreground">Designali - 5 templates</p>
</div>
<div className="grid gap-10 lg:grid-cols-[1.4fr_1fr]">
<ul className="divide-y divide-border">
{works.map((work, i) => (
<li key={work.title}>
<a
href="#"
onMouseEnter={() => setHover(i)}
onFocus={() => setHover(i)}
className={`group grid grid-cols-[3.5rem_1fr_auto] items-center gap-4 py-5 transition-colors md:grid-cols-[2rem_1fr_10rem_5rem_auto] ${i === hover ? "text-foreground" : "text-muted-foreground"}`}
>
<div className="aspect-square border border-border md:hidden" style={{ background: work.gradient }} />
<span className="hidden font-sans text-xs md:block">0{i + 1}</span>
<div className="min-w-0">
<p className="truncate text-lg font-medium text-foreground">{work.title}</p>
<p className="truncate text-sm">{work.artist}</p>
</div>
<span className="hidden text-sm md:block">{work.medium}</span>
<span className="hidden text-sm tabular-nums md:block">{work.year}</span>
<span className="flex items-center gap-2 text-sm font-medium text-foreground tabular-nums">
{work.price}
<ArrowRight className="size-4 -translate-x-1 opacity-0 transition group-hover:translate-x-0 group-hover:opacity-100" />
</span>
</a>
</li>
))}
</ul>
<div className="hidden pt-6 lg:block">
<div className="sticky top-20">
<div
key={active.title}
className="aspect-[4/5] w-full border border-border animate-in fade-in duration-300"
style={{ background: active.gradient }}
/>
<div className="mt-4 flex items-baseline justify-between text-sm">
<span className="font-medium">{active.title}</span>
<span className="text-muted-foreground">{active.medium}, {active.year}</span>
</div>
</div>
</div>
</div>
</div>
</section>
)
}
Artwork catalogue list with a sticky hover preview of the highlighted piece.
gallery-15


Files
import {
Lock,
Plus,
} from "@designali/icons"
const albums = [
{ name: "Designali brand assets", count: 342, updated: "2 days ago", shared: 14, colors: ['url("/og.jpg") center / cover', 'url("/images/templates/design-agency.jpg") center / cover', 'url("/images/templates/aliimam-comp.jpg") center / cover'] },
{ name: "Dalim Agency archive", count: 86, updated: "1 week ago", shared: 3, colors: ['url("/images/templates/dalim-agency-old.jpg") center / cover', 'url("/images/templates/dalim-works-old.jpg") center / cover', 'url("/images/templates/dalim-visuals-old.jpg") center / cover'] },
{ name: "Templates - Spring drop", count: 128, updated: "3 weeks ago", shared: 6, colors: ['url("/images/templates/portfolio-simple.jpg") center / cover', 'url("/images/templates/resort.jpg") center / cover', 'url("/images/templates/ai.jpg") center / cover'] },
{ name: "Dalim archive", count: 512, updated: "1 month ago", shared: 0, colors: ['url("/images/templates/dalim-old.jpg") center / cover', 'url("/images/templates/dalim-fonts-old.jpg") center / cover', 'url("/images/templates/dalim-icons-old.jpg") center / cover'] },
{ name: "Ali Imam portraits", count: 44, updated: "2 months ago", shared: 2, colors: ['url("/ali.jpg") center / cover', 'url("/ai.jpg") center / cover', 'url("/stock/design.jpg") center / cover'] },
]
export function Gallery16() {
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-7xl px-6">
<div className="flex flex-wrap items-center justify-between gap-4">
<div>
<h2 className="text-2xl font-semibold tracking-tight md:text-3xl">Albums</h2>
<p className="mt-1 text-sm text-muted-foreground">5 Designali albums - 1,112 files - 18.4 GB used</p>
</div>
</div>
<div className="mt-10 grid grid-cols-1 gap-x-8 gap-y-12 sm:grid-cols-2 lg:grid-cols-3">
{albums.map((album) => (
<a key={album.name} href="#" className="group block">
<div className="relative mx-3 aspect-[4/3]">
<div
className="absolute inset-0 -translate-x-3 -rotate-6 border border-border opacity-70 transition duration-300 group-hover:-translate-x-6 group-hover:-rotate-[10deg]"
style={{ background: album.colors[2] }}
/>
<div
className="absolute inset-0 translate-x-3 rotate-3 border border-border opacity-85 transition duration-300 group-hover:translate-x-6 group-hover:rotate-6"
style={{ background: album.colors[1] }}
/>
<div
className="absolute inset-0 border border-border shadow-lg transition duration-300 group-hover:-translate-y-2"
style={{ background: album.colors[0] }}
/>
<span className="absolute top-3 right-3 bg-background/85 px-2 py-0.5 font-sans text-[11px] tabular-nums backdrop-blur">
{album.count}
</span>
</div>
<div className="mt-6 flex items-start justify-between gap-3">
<div className="min-w-0">
<p className="truncate font-medium">{album.name}</p>
<p className="mt-0.5 text-xs text-muted-foreground">Updated {album.updated}</p>
</div>
{album.shared > 0 ? (
<div className="flex -space-x-1.5">
{Array.from({ length: Math.min(album.shared, 3) }).map((_, i) => (
<span key={i} className="flex size-6 items-center justify-center rounded-full border-2 border-background bg-muted text-[9px] font-medium">
{["AI", "SR", "MK"][i]}
</span>
))}
{album.shared > 3 && (
<span className="flex size-6 items-center justify-center rounded-full border-2 border-background bg-foreground text-[9px] font-medium text-background">
+{album.shared - 3}
</span>
)}
</div>
) : (
<span className="flex items-center gap-1 text-xs text-muted-foreground">
<Lock className="size-3" /> Private
</span>
)}
</div>
</a>
))}
<a
href="#"
className="flex aspect-[4/3] flex-col items-center justify-center gap-2 border border-dashed border-border text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground sm:mx-3"
>
<Plus className="size-5" />
New album
</a>
</div>
</div>
</section>
)
}
Album overview grid of stacked-deck cards with photo counts and shared avatars.
gallery-16


Files
const years = [
{
year: "2025",
title: "Designali",
summary: "460+ blocks, 240+ landing pages and new templates. Design se code tak.",
tiles: [
'url("/images/templates/design-agency.jpg") center / cover',
'url("/images/templates/portfolio-simple.jpg") center / cover',
'url("/images/templates/resort.jpg") center / cover',
'url("/images/templates/ai.jpg") center / cover',
],
},
{
year: "2024",
title: "Dalim UI and Dalim Icons",
summary: "Component kits and icon sets that grew into the Designali library.",
tiles: [
'url("/images/templates/dalim-ui-old.jpg") center / cover',
'url("/images/templates/dalim-icons-old.jpg") center / cover',
'url("/images/templates/dalim-tools-old.jpg") center / cover',
],
},
{
year: "2023",
title: "Dalim Agency",
summary: "Brand identity, graphic design and CGI work for the first Dalim studio.",
tiles: [
'url("/images/templates/dalim-agency-old.jpg") center / cover',
'url("/images/templates/dalim-graphic-old.jpg") center / cover',
'url("/images/templates/dalim-visuals-old.jpg") center / cover',
'url("/images/templates/dalim-fonts-old.jpg") center / cover',
'url("/images/templates/dalim-works-old.jpg") center / cover',
],
},
]
export function Gallery17() {
return (
<section className="w-full bg-background py-20">
<div className="mx-auto max-w-7xl px-6">
<h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
Years of Designali and Dalim projects
</h2>
<p className="mt-3 max-w-lg text-muted-foreground">
A chronological archive of work by Ali Imam, from Dalim to
Designali.
</p>
<ol className="mt-14 border-l border-border">
{years.map((entry) => (
<li key={entry.year} className="relative pb-14 pl-8 last:pb-0 md:pl-12">
<span className="absolute top-1.5 -left-[5px] size-2.5 bg-foreground" />
<div className="grid gap-6 md:grid-cols-[14rem_1fr]">
<div>
<p className="font-sans text-sm text-muted-foreground">{entry.year}</p>
<h3 className="mt-1 text-xl font-medium">{entry.title}</h3>
<p className="mt-2 text-sm text-muted-foreground">{entry.summary}</p>
<a href="#" className="mt-3 inline-block text-sm font-medium underline-offset-4 hover:underline">
Open project
</a>
</div>
<div className="grid grid-cols-3 gap-2 sm:grid-cols-5">
{entry.tiles.map((bg, i) => (
<div
key={i}
className={`aspect-[3/4] border border-border transition-opacity hover:opacity-80 ${i === 0 ? "col-span-2 aspect-auto sm:col-span-2" : ""}`}
style={{ background: bg }}
/>
))}
</div>
</div>
</li>
))}
</ol>
</div>
</section>
)
}
Chronological timeline of yearly photo series with thumbnail rows per year.
gallery-17


Files
"use client"
import { useState } from "react"
import {
ChevronLeft,
ChevronRight,
} from "@designali/icons"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const covers = [
{ title: "Portfolio Simple", artist: "Designali template", gradient: 'url("/images/templates/portfolio-simple.jpg") center / cover' },
{ title: "Design Agency", artist: "Designali template", gradient: 'url("/images/templates/design-agency.jpg") center / cover' },
{ title: "Resort", artist: "Designali template", gradient: 'url("/images/templates/resort.jpg") center / cover' },
{ title: "AI", artist: "Designali template", gradient: 'url("/images/templates/ai.jpg") center / cover' },
{ title: "Vercel Style", artist: "Designali template", gradient: 'url("/images/templates/vercel.jpg") center / cover' },
{ title: "Ali Imam", artist: "Designali template", gradient: 'url("/images/templates/aliimam-comp.jpg") center / cover' },
{ title: "Dalim Agency", artist: "Designali template", gradient: 'url("/images/templates/dalim-agency-old.jpg") center / cover' },
]
export function Gallery18() {
const [index, setIndex] = useState(3)
const go = (dir: number) => setIndex((i) => Math.min(covers.length - 1, Math.max(0, i + dir)))
const current = covers[index]!
return (
<section className="w-full overflow-hidden bg-background py-20">
<div className="mx-auto max-w-7xl px-6 text-center">
<p className="text-xs tracking-widest text-muted-foreground uppercase">Ali's picks</p>
<h2 className="mt-3 text-3xl font-semibold tracking-tight md:text-4xl">
Templates of the season
</h2>
</div>
<div className="relative mt-14 h-64 [perspective:1200px] sm:h-80">
{covers.map((cover, i) => {
const offset = i - index
const abs = Math.abs(offset)
return (
<button
key={cover.title}
type="button"
onClick={() => setIndex(i)}
aria-label={`${cover.title} by ${cover.artist}`}
aria-current={offset === 0}
className={cn(
"absolute top-0 left-1/2 aspect-square h-full border border-border shadow-xl transition-all duration-500 ease-out",
abs > 3 && "pointer-events-none opacity-0"
)}
style={{
background: cover.gradient,
transform: `translateX(calc(-50% + ${offset * 38}%)) rotateY(${offset === 0 ? 0 : offset > 0 ? -45 : 45}deg) scale(${offset === 0 ? 1 : 0.8})`,
zIndex: 10 - abs,
filter: offset === 0 ? "none" : `brightness(${1 - abs * 0.15})`,
}}
/>
)
})}
</div>
<div className="mx-auto mt-10 flex max-w-7xl items-center justify-center gap-6 px-6">
<Button variant="outline" size="icon-lg" aria-label="Previous" disabled={index === 0} onClick={() => go(-1)}>
<ChevronLeft />
</Button>
<div className="w-48 text-center">
<p className="truncate font-medium">{current.title}</p>
<p className="truncate text-sm text-muted-foreground">{current.artist}</p>
</div>
<Button variant="outline" size="icon-lg" aria-label="Next" disabled={index === covers.length - 1} onClick={() => go(1)}>
<ChevronRight />
</Button>
</div>
</section>
)
}
3D coverflow carousel of album covers with a centered focus and controls.
gallery-18


Files
"use client"
import { useState } from "react"
import {
Grid2x2,
Grid3x3,
LayoutGrid,
} from "@designali/icons"
import { cn } from "@/lib/utils"
const assets = [
{ name: "designali-og.jpg", size: "4.2 MB", dims: "3840x2160", gradient: 'url("/og.jpg") center / cover' },
{ name: "ali-imam-portrait.jpg", size: "2.8 MB", dims: "4000x3000", gradient: 'url("/ali.jpg") center / cover' },
{ name: "hero-1.jpg", size: "1.1 MB", dims: "2048x2048", gradient: 'url("/img/hero-1.jpg") center / cover' },
{ name: "hero-2.jpg", size: "3.4 MB", dims: "5472x3648", gradient: 'url("/img/hero-2.jpg") center / cover' },
{ name: "dashboard-light.jpg", size: "6.0 MB", dims: "3000x3000", gradient: 'url("/img/dashboard-1-light.jpg") center / cover' },
{ name: "dashboard-dark.jpg", size: "2.2 MB", dims: "3200x4000", gradient: 'url("/img/dashboard-1-dark.jpg") center / cover' },
{ name: "chat-light.jpg", size: "5.1 MB", dims: "6000x3376", gradient: 'url("/img/chat-1-light.jpg") center / cover' },
{ name: "login-screen.jpg", size: "0.8 MB", dims: "1600x1200", gradient: 'url("/img/login-1.jpg") center / cover' },
{ name: "stock-design.jpg", size: "7.3 MB", dims: "7200x2400", gradient: 'url("/stock/design.jpg") center / cover' },
{ name: "stock-development.jpg", size: "0.6 MB", dims: "1200x600", gradient: 'url("/stock/development.jpg") center / cover' },
{ name: "stock-strategy.jpg", size: "3.9 MB", dims: "4896x3264", gradient: 'url("/stock/strategy.jpg") center / cover' },
{ name: "wallpaper-2.jpg", size: "2.5 MB", dims: "2880x1800", gradient: 'url("/stock/wallpaper-2.jpg") center / cover' },
]
const densities = [
{ id: "comfortable", label: "Large", icon: Grid2x2, cols: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3" },
{ id: "default", label: "Medium", icon: LayoutGrid, cols: "grid-cols-2 lg:grid-cols-4" },
{ id: "compact", label: "Small", icon: Grid3x3, cols: "grid-cols-3 sm:grid-cols-4 lg:grid-cols-6" },
] as const
const ratios = { Square: "aspect-square", Landscape: "aspect-[4/3]", Portrait: "aspect-[3/4]" } as const
type Ratio = keyof typeof ratios
export function Gallery19() {
const [density, setDensity] = useState<(typeof densities)[number]["id"]>("default")
const [ratio, setRatio] = useState<Ratio>("Square")
const [details, setDetails] = useState(true)
const cols = densities.find((d) => d.id === density)!.cols
return (
<section className="w-full bg-background py-16">
<div className="mx-auto max-w-7xl px-6">
<div className="flex flex-col gap-4 border-b border-border pb-4 md:flex-row md:items-center md:justify-between">
<div>
<h2 className="text-2xl font-semibold tracking-tight">Designali brand assets</h2>
<p className="text-sm text-muted-foreground">{assets.length} files in Designali / 2025</p>
</div>
<div className="flex flex-wrap items-center gap-3">
<div className="flex border border-border" role="group" aria-label="Aspect ratio">
{(Object.keys(ratios) as Ratio[]).map((r) => (
<button
key={r}
type="button"
onClick={() => setRatio(r)}
aria-pressed={ratio === r}
className={cn("px-3 py-1.5 text-xs", ratio === r ? "bg-foreground text-background" : "hover:bg-muted")}
>
{r}
</button>
))}
</div>
<div className="flex border border-border" role="group" aria-label="Grid density">
{densities.map((d) => (
<button
key={d.id}
type="button"
aria-label={d.label}
aria-pressed={density === d.id}
onClick={() => setDensity(d.id)}
className={cn("flex size-8 items-center justify-center", density === d.id ? "bg-foreground text-background" : "hover:bg-muted")}
>
<d.icon className="size-4" />
</button>
))}
</div>
<label className="flex cursor-pointer items-center gap-2 text-xs">
<input type="checkbox" checked={details} onChange={(e) => setDetails(e.target.checked)} className="accent-foreground" />
Show details
</label>
</div>
</div>
<div className={cn("mt-6 grid gap-3", cols)}>
{assets.map((asset) => (
<figure key={asset.name} className="group min-w-0">
<div
className={cn("w-full border border-border transition-[aspect-ratio] group-hover:opacity-90", ratios[ratio])}
style={{ background: asset.gradient }}
/>
{details && density !== "compact" && (
<figcaption className="mt-2 min-w-0">
<p className="truncate text-sm font-medium">{asset.name}</p>
<p className="text-xs text-muted-foreground tabular-nums">
{asset.dims} - {asset.size}
</p>
</figcaption>
)}
</figure>
))}
</div>
</div>
</section>
)
}
Asset library grid with aspect-ratio, density and detail toggles in a toolbar.
gallery-19


Files
"use client"
import { useState } from "react"
import {
Bookmark,
Grid3x3,
Heart,
MessageCircle,
Play,
} from "@designali/icons"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const posts = Array.from({ length: 9 }, (_, i) => ({
id: i,
likes: [1284, 932, 2410, 488, 1760, 3021, 655, 1149, 870][i]!,
comments: [86, 41, 203, 17, 94, 312, 28, 77, 45][i]!,
video: i === 1 || i === 5,
gradient: `url("/img/ask/ask${i + 1}.jpg") center / cover`,
}))
const tabs = [
{ id: "posts", label: "Posts", icon: Grid3x3 },
{ id: "reels", label: "Reels", icon: Play },
{ id: "saved", label: "Saved", icon: Bookmark },
] as const
export function Gallery20() {
const [tab, setTab] = useState<(typeof tabs)[number]["id"]>("posts")
const [following, setFollowing] = useState(false)
const visible = tab === "reels" ? posts.filter((p) => p.video) : tab === "saved" ? posts.slice(2, 6) : posts
return (
<section className="w-full bg-background py-16">
<div className="mx-auto max-w-4xl px-6">
<div className="flex flex-col gap-6 sm:flex-row sm:items-center sm:gap-10">
<div className="flex size-24 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-primary via-primary to-chart-2 p-[3px] sm:size-32">
<img
src="/ali.jpg"
alt="Ali Imam"
className="size-full rounded-full border-2 border-background object-cover"
/>
</div>
<div className="min-w-0 flex-1">
<div className="flex flex-wrap items-center gap-3">
<h2 className="text-xl font-semibold">designali.code</h2>
<Button size="sm" variant={following ? "outline" : "default"} onClick={() => setFollowing((f) => !f)}>
{following ? "Following" : "Follow"}
</Button>
<Button size="sm" variant="outline">Message</Button>
</div>
<dl className="mt-4 flex gap-6 text-sm">
<div><dt className="sr-only">Posts</dt><dd><b>214</b> posts</dd></div>
<div><dt className="sr-only">Followers</dt><dd><b>{following ? "48.3k" : "48.2k"}</b> followers</dd></div>
<div><dt className="sr-only">Following</dt><dd><b>391</b> following</dd></div>
</dl>
<p className="mt-3 text-sm">
<span className="font-medium">Designali</span> - design and development studio by Ali Imam. Brand
identity, UI/UX, CGI and production-ready code. Design se code tak.
</p>
</div>
</div>
<div className="mt-10 flex justify-center gap-10 border-t border-border">
{tabs.map((t) => (
<button
key={t.id}
type="button"
onClick={() => setTab(t.id)}
className={cn(
"-mt-px flex items-center gap-1.5 border-t py-3 text-xs font-medium tracking-wider uppercase",
tab === t.id ? "border-foreground text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
)}
>
<t.icon className="size-3.5" />
{t.label}
</button>
))}
</div>
<div className="grid grid-cols-3 gap-1">
{visible.map((post) => (
<a key={post.id} href="https://www.instagram.com/designali.code/" className="group relative aspect-square overflow-hidden">
<div className="absolute inset-0" style={{ background: post.gradient }} />
{post.video && <Play className="absolute top-2 right-2 size-4 fill-white text-white" />}
<div className="absolute inset-0 flex items-center justify-center gap-4 bg-black/40 text-xs font-semibold text-white opacity-0 transition-opacity group-hover:opacity-100 sm:text-sm">
<span className="flex items-center gap-1"><Heart className="size-4 fill-white" />{post.likes.toLocaleString()}</span>
<span className="flex items-center gap-1"><MessageCircle className="size-4 fill-white" />{post.comments}</span>
</div>
</a>
))}
</div>
</div>
</section>
)
}
Social profile header with stats, tabbed content and a square post grid with hover counts.
gallery-20

