refactor: Improve responsiveness of Features component layout
This commit is contained in:
@@ -3,6 +3,7 @@ import Feature, { FeatureCard } from "./feature";
|
||||
import { Button } from "./ui/button";
|
||||
import TextReveal from "./ui/text-reveal";
|
||||
import styled, { css, keyframes } from "styled-components";
|
||||
import Link from "next/link";
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
@@ -13,10 +14,21 @@ import {
|
||||
TableHeader,
|
||||
TableRow,
|
||||
} from "./ui/table";
|
||||
import { CheckIcon, EyeIcon, EyeOffIcon, RabbitIcon, XIcon } from "lucide-react";
|
||||
import { EyeClosedIcon, LockClosedIcon, QuestionMarkIcon } from "@radix-ui/react-icons";
|
||||
import {
|
||||
CheckIcon,
|
||||
EyeIcon,
|
||||
EyeOffIcon,
|
||||
RabbitIcon,
|
||||
XIcon,
|
||||
} from "lucide-react";
|
||||
import {
|
||||
EyeClosedIcon,
|
||||
LockClosedIcon,
|
||||
QuestionMarkIcon,
|
||||
} from "@radix-ui/react-icons";
|
||||
import ShineBorder from "./ui/shine-border";
|
||||
import SparklesText from "./ui/sparkles-text";
|
||||
import Image from "next/image";
|
||||
|
||||
function Checkmark() {
|
||||
return (
|
||||
@@ -40,8 +52,14 @@ export default function Features() {
|
||||
return (
|
||||
<div className="relative">
|
||||
{/*<TextReveal text="Zen will change the way you browse the web. 🌟" />*/}
|
||||
<h1 className="text-5xl font-bold mt-20 text-center p-5 md:p-0 flex flex-col md:flex-row justify-center items-center mb-2">What does Zen offer to <SparklesText className="mx-2" text="YOU" />?</h1>
|
||||
<p className="text-muted-foreground text-center mx-auto w-3/4 md:w-full p-5 lg:p-0 mb-24">Zen Browser is packed with features that will change the way you browse the web. Here are<br className="hidden md:block"/> some of the features that Zen offers.</p>
|
||||
<h1 className="text-5xl font-bold mt-20 text-center p-5 md:p-0 flex flex-col md:flex-row justify-center items-center mb-2">
|
||||
What does Zen offer to <SparklesText className="mx-2" text="YOU" />?
|
||||
</h1>
|
||||
<p className="text-muted-foreground text-center mx-auto w-3/4 md:w-full p-5 lg:p-0 mb-24">
|
||||
Zen Browser is packed with features that will change the way you browse
|
||||
the web. Here are
|
||||
<br className="hidden md:block" /> some of the features that Zen offers.
|
||||
</p>
|
||||
<div className="flex flex-col lg:flex-row w-full mt-4 p-5 lg:p-0">
|
||||
<div className="w-full flex mx-auto lg:mx-0 flex-col lg:mb-24 lg:ml-4 lg:mt-24">
|
||||
<div className="hover:border-blue-500 transition-all duration-100 bg-background relative mx-auto lg:mx-0 flex flex-col max-w-lg justify-center rounded-xl md:border-2 p-20 md:shadow-xl">
|
||||
@@ -50,7 +68,13 @@ export default function Features() {
|
||||
Split your browser into multiple views to browse multiple websites
|
||||
at once.
|
||||
</p>
|
||||
<img src="/split-view.png" className="mt-8 w-full h-full" />
|
||||
<Image
|
||||
height={500}
|
||||
width={300}
|
||||
src="/split-view.png"
|
||||
className="mt-8 w-full h-full"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<div className="hover:border-blue-500 transition-all duration-100 bg-background mx-auto lg:mx-0 relative flex flex-col mt-8 max-w-lg justify-center rounded-xl md:border-2 p-20 md:shadow-xl">
|
||||
<h1 className="text-5xl font-bold">Workspaces</h1>
|
||||
@@ -58,7 +82,13 @@ export default function Features() {
|
||||
Create workspaces to keep your tabs organized and your browsing
|
||||
experience clutter-free.
|
||||
</p>
|
||||
<img src="/workspaces.png" className="mt-8 w-full h-full" />
|
||||
<Image
|
||||
height={500}
|
||||
width={300}
|
||||
src="/workspaces.png"
|
||||
className="mt-8 w-full h-full"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-full lg:mr-4 flex flex-col">
|
||||
@@ -68,7 +98,13 @@ export default function Features() {
|
||||
Switch between profiles to keep your work and personal browsing
|
||||
separate.
|
||||
</p>
|
||||
<img src="/profiles.png" className="mt-8 w-full h-full" />
|
||||
<Image
|
||||
height={500}
|
||||
width={300}
|
||||
src="/profiles.png"
|
||||
className="mt-8 w-full h-full"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<div className="hover:border-blue-500 transition-all duration-100 bg-background relative mx-auto lg:mx-0 mt-8 flex-col flex max-w-lg justify-center rounded-xl md:border-2 p-20 md:shadow-xl">
|
||||
<h1 className="text-5xl font-bold">Side web panels</h1>
|
||||
@@ -76,7 +112,13 @@ export default function Features() {
|
||||
Access your favorite websites and services without leaving the
|
||||
page you're on.
|
||||
</p>
|
||||
<img src="/sidebar.png" className="mt-8 w-full h-full" />
|
||||
<Image
|
||||
height={500}
|
||||
width={300}
|
||||
src="/sidebar.png"
|
||||
className="mt-8 w-full h-full"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -95,9 +137,36 @@ export default function Features() {
|
||||
How Zen differs from other browsers
|
||||
</span>
|
||||
</TableHead>
|
||||
<TableHead className="py-2 font-bold text-center"><img src="/favicon.ico" className="bg-black dark:bg-white rounded-md mx-auto mb-2 w-8 h-8" />Zen</TableHead>
|
||||
<TableHead className="py-2 pl-4 pr-0 font-bold text-center opacity-60"><img src="/floorp.png" className="bg-black dark:bg-white rounded-md p-1 mx-auto mb-2 w-7 h-7" />Floorp</TableHead>
|
||||
<TableHead className="py-2 pl-0 font-bold text-center opacity-60"><img src="/librewolf.png" className="bg-black dark:bg-white rounded-md mx-auto p-1 mb-2 w-7 h-7" />LibreWolf</TableHead>
|
||||
<TableHead className="py-2 font-bold text-center">
|
||||
<Image
|
||||
height={32}
|
||||
width={32}
|
||||
src="/favicon.ico"
|
||||
className="bg-black dark:bg-white rounded-md mx-auto mb-2 w-8 h-8"
|
||||
alt="zen"
|
||||
/>
|
||||
Zen
|
||||
</TableHead>
|
||||
<TableHead className="py-2 pl-4 md:pr-0 pr-2 font-bold text-center opacity-60">
|
||||
<Image
|
||||
height={32}
|
||||
width={32}
|
||||
src="/floorp.png"
|
||||
className="bg-black dark:bg-white rounded-md p-1 mx-auto mb-2 w-7 h-7"
|
||||
alt="floorp"
|
||||
/>
|
||||
Floorp
|
||||
</TableHead>
|
||||
<TableHead className="py-2 pl-0 font-bold text-center opacity-60">
|
||||
<Image
|
||||
height={32}
|
||||
width={32}
|
||||
src="/librewolf.png"
|
||||
className="bg-black dark:bg-white rounded-md mx-auto p-1 mb-2 w-7 h-7"
|
||||
alt="librewolf"
|
||||
/>
|
||||
LibreWolf
|
||||
</TableHead>
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
@@ -162,31 +231,45 @@ export default function Features() {
|
||||
</div>
|
||||
</ShineBorder>
|
||||
<div className="flex flex-col items-center justify-center w-full mt-40">
|
||||
<div className="flex flex-col lg:flex-row w-full mt-4 p-5 justify-between items-center">
|
||||
<div className="flex flex-wrap lg:flex-row w-full mt-4 p-5 justify-between items-center">
|
||||
<RabbitIcon className="mx-auto hidden md:block w-32 h-32" />
|
||||
<div className="flex flex-col max-w-lg text-center md:text-start">
|
||||
<h1 className="text-5xl font-bold flex items-center flex-col md:flex-row">Built for <SparklesText className="md:mx-2" text="speed" /></h1>
|
||||
<p className="text-muted-foreground mt-3">
|
||||
Zen is built with speed in mind. Improving release after release, with new optimizations and technologies to make your browsing experience faster.<br /><br />
|
||||
We have been working and benchmarking Zen to make it the fastest browser out there.
|
||||
<h1 className="text-5xl font-bold flex items-center flex-col md:flex-row">
|
||||
Built for <SparklesText className="md:mx-2" text="speed" />
|
||||
</h1>
|
||||
<p className="flex flex-wrap overflow-auto text-muted-foreground mt-3">
|
||||
Zen is built with speed in mind. Improving release after release,
|
||||
with new optimizations and technologies to make your browsing
|
||||
experience faster.
|
||||
<br className="hidden md:block" />
|
||||
<br className="hidden md:block" />
|
||||
We have been working and benchmarking Zen to make it the fastest
|
||||
browser out there.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex flex-col lg:flex-row w-full mt-52 p-5 justify-between items-center">
|
||||
<div className="flex flex-col max-w-lg text-center md:text-start">
|
||||
<h1 className="text-5xl font-bold flex flex-col md:flex-row items-center">Privacy is <SparklesText className="md:mx-2" text="key" /></h1>
|
||||
<p className="text-muted-foreground mt-3">
|
||||
Zen is designed with privacy in mind. We found the perfect balance between privacy and functionality, so you can browse the web without worrying about your data.
|
||||
<div className="flex flex-wrap max-w-lg text-center md:text-start">
|
||||
<h1 className="text-5xl font-bold flex flex-wrap md:flex-row items-center">
|
||||
Privacy is <SparklesText className="md:mx-2" text="key" />
|
||||
</h1>
|
||||
<p className="text-muted-foreground mt-3 overflow-auto">
|
||||
Zen is designed with privacy in mind. We found the perfect balance
|
||||
between privacy and functionality, so you can browse the web
|
||||
without worrying about your data.
|
||||
</p>
|
||||
</div>
|
||||
<EyeClosedIcon className="mx-auto hidden md:block w-32 h-32" />
|
||||
</div>
|
||||
<div className="flex flex-col lg:flex-row w-full mt-52 p-5 justify-between items-center">
|
||||
<div className="flex flex-wrap lg:flex-row w-full mt-52 p-5 justify-between items-center">
|
||||
<LockClosedIcon className="mx-auto hidden md:block w-32 h-32" />
|
||||
<div className="flex flex-col text-center md:text-start max-w-lg">
|
||||
<h1 className="text-5xl font-bold items-center flex-col">Security is <SparklesText className="inline" text="important" /></h1>
|
||||
<p className="text-muted-foreground mt-3">
|
||||
Zen is built with security in mind. We use the latest technologies and security measures that no other firefox-based browser offers.
|
||||
<div className="flex flex-wrap text-center md:text-start max-w-lg">
|
||||
<h1 className="text-5xl font-bold items-center flex-col">
|
||||
Security is <SparklesText className="inline" text="important" />
|
||||
</h1>
|
||||
<p className=" text-muted-foreground mt-3 overflow-auto">
|
||||
Zen is built with security in mind. We use the latest technologies
|
||||
and security measures that no other firefox-based browser offers.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -199,26 +282,35 @@ export default function Features() {
|
||||
the web.
|
||||
</p>
|
||||
<div className="grid gap-5 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mt-10">
|
||||
<FeatureCard title="Beautifully designed"
|
||||
description="Zen is designed to be easy to use and beautiful to look at." />
|
||||
<FeatureCard title="Customizable"
|
||||
description="Customize Zen to fit your needs. Change the theme, layout, and more." />
|
||||
<FeatureCard title="Keyboard shortcuts"
|
||||
description="Navigate Zen with ease using keyboard shortcuts." />
|
||||
<FeatureCard title="Your browsing experience, your way"
|
||||
description="Zen is designed to be customizable to fit your needs." />
|
||||
<FeatureCard title="Tab groups"
|
||||
description="Organize your tabs into groups to keep your browsing experience organized."
|
||||
todo />
|
||||
<FeatureCard title="Vertical tabs"
|
||||
description="Keep your tabs organized with vertical tabs." />
|
||||
<FeatureCard
|
||||
title="Beautifully designed"
|
||||
description="Zen is designed to be easy to use and beautiful to look at."
|
||||
/>
|
||||
<FeatureCard
|
||||
title="Customizable"
|
||||
description="Customize Zen to fit your needs. Change the theme, layout, and more."
|
||||
/>
|
||||
<FeatureCard
|
||||
title="Keyboard shortcuts"
|
||||
description="Navigate Zen with ease using keyboard shortcuts."
|
||||
/>
|
||||
<FeatureCard
|
||||
title="Your browsing experience, your way"
|
||||
description="Zen is designed to be customizable to fit your needs."
|
||||
/>
|
||||
<FeatureCard
|
||||
title="Tab groups"
|
||||
description="Organize your tabs into groups to keep your browsing experience organized."
|
||||
todo
|
||||
/>
|
||||
<FeatureCard
|
||||
title="Vertical tabs"
|
||||
description="Keep your tabs organized with vertical tabs."
|
||||
/>
|
||||
</div>
|
||||
<Button
|
||||
onClick={() => (window.location.href = "/download")}
|
||||
className="mt-8"
|
||||
>
|
||||
Download Zen Browser
|
||||
</Button>
|
||||
<Link href="/download">
|
||||
<Button className="mt-8">Download Zen Browser</Button>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user