feat: index page carousel

This commit is contained in:
trafficlunar 2025-02-21 17:33:40 +00:00
parent c17eec6403
commit cfd9a8f198
9 changed files with 30 additions and 2 deletions

BIN
public/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

BIN
public/miku.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

BIN
public/nyan_cat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
public/pikachu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
public/portal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 MiB

BIN
public/windows.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 MiB

View file

@ -7,6 +7,7 @@ import { ThemeContext } from "@/context/Theme";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator"; import { Separator } from "@/components/ui/separator";
import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from "@/components/ui/carousel";
import ThemeIcon from "@/components/ThemeIcon"; import ThemeIcon from "@/components/ThemeIcon";
import ImageComparison from "@/components/home/ImageComparison"; import ImageComparison from "@/components/home/ImageComparison";
@ -39,8 +40,8 @@ function IndexPage() {
</header> </header>
<img <img
src="/screenshot1.png" src="/background.png"
alt="screenshot" alt="background"
className="absolute w-full object-cover -z-20" className="absolute w-full object-cover -z-20"
style={{ maskImage: "linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(255,255,255,0) 100%)" }} style={{ maskImage: "linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(255,255,255,0) 100%)" }}
/> />
@ -100,6 +101,33 @@ function IndexPage() {
</div> </div>
</section> </section>
<section className="mt-32 mx-8 max-w-2xl">
<h1 className="text-5xl font-bold mb-2 text-center">Gallery</h1>
<p className="mb-8 text-lg text-center">See examples of opening and placing art within Minecraft!</p>
<Carousel className="w-full">
<CarouselContent>
<CarouselItem>
<img src="/miku.png" className="rounded-xl border border-zinc-300 dark:border-zinc-800"></img>
</CarouselItem>
<CarouselItem>
<img src="/nyan_cat.png" className="rounded-xl border border-zinc-300 dark:border-zinc-800"></img>
</CarouselItem>
<CarouselItem>
<img src="/pikachu.png" className="rounded-xl border border-zinc-300 dark:border-zinc-800"></img>
</CarouselItem>
<CarouselItem>
<img src="/portal.png" className="rounded-xl border border-zinc-300 dark:border-zinc-800"></img>
</CarouselItem>
<CarouselItem>
<img src="/windows.png" className="rounded-xl border border-zinc-300 dark:border-zinc-800"></img>
</CarouselItem>
</CarouselContent>
<CarouselPrevious />
<CarouselNext />
</Carousel>
</section>
<section className="flex flex-col items-center mt-32 mx-8 max-w-xl"> <section className="flex flex-col items-center mt-32 mx-8 max-w-xl">
<h1 className="text-5xl font-bold mb-2 text-center">See the difference</h1> <h1 className="text-5xl font-bold mb-2 text-center">See the difference</h1>
<p className="mb-8 text-lg text-center"> <p className="mb-8 text-lg text-center">