Update mobile-nav and features components

This commit is contained in:
mr. M 2024-10-12 15:07:10 +02:00
parent 8b369ccc7b
commit 3082be1dc6
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
13 changed files with 56 additions and 2 deletions

View file

@ -0,0 +1,46 @@
"use client";
import { ny } from "@/lib/utils";
import CachedImage from "./CachedImage";
import { Slider } from "./ui/slider";
import React from "react";
import { ChevronLeft, ChevronRight } from "lucide-react";
export default function BrowserComplexityExample() {
const [selectedImage, setSelectedImage] = React.useState([1]);
return (
<div className="flex h-screen items-center flex-col mx-auto mb-32 xl:mb-64 w-full md:w-5/6 lg:w-3/4">
<div className="flex items-center text-2xl cursor-default font-bold select-none">
<span>🌱</span>
<div className="flex mx-5 items-center opacity-10">
<ChevronLeft className="w-5 h-5" style={{ marginInlineEnd: "-0.8rem" }} />
<span className="w-24 bg-black dark:bg-white h-0.5"></span>
<ChevronRight className="w-5 h-5" style={{ marginInlineStart: "-0.8rem" }} />
</div>
<span>🌳</span>
</div>
<p className="mt-4 text-center text-md mx-auto w-2/3 text-muted-foreground">
Zen Browser is designed to be simple and easy to use. We believe that the best software is
the one that you don't notice. However, we can assure you that if you want customization, we have you covered
</p>
<div className="w-64 mb-6 mt-24">
<Slider step={1} max={3} showSteps="half" value={selectedImage} onValueChange={setSelectedImage} />
</div>
<div className="mx-auto md:mb-36 flex justify-center">
{[...Array(4)].map((_, i) => (
<CachedImage
width={1620}
height={900}
priority
key={i}
src={`www/public/browsers/image${i + 1}.png`}
alt="Zen Browser"
className={ny("rounded-md object-cover shadow object-right mx-12 w-full", selectedImage[0] === i
? "" //"animate-fade-up duration-500 !opacity-100"
: "hidden")}
/>
))}
</div>
</div>
)
}