diff --git a/public/compact-mode.png b/public/compact-mode.png deleted file mode 100644 index 10f8da7..0000000 Binary files a/public/compact-mode.png and /dev/null differ diff --git a/public/feature-item-1.png b/public/feature-item-1.png index 96dae41..3fdb449 100644 Binary files a/public/feature-item-1.png and b/public/feature-item-1.png differ diff --git a/src/components/CachedImage.tsx b/src/components/CachedImage.tsx new file mode 100644 index 0000000..de0c447 --- /dev/null +++ b/src/components/CachedImage.tsx @@ -0,0 +1,9 @@ +import Image from "next/image"; + +function imageLoader({ src }: { src: string }) { + return `https://cdn.jsdelivr.net/gh/zen-browser/${src}`; +} + +export default function CachedImage({ ...props }: any) { + return ; +} diff --git a/src/components/features.tsx b/src/components/features.tsx index 702410d..bc9c946 100644 --- a/src/components/features.tsx +++ b/src/components/features.tsx @@ -1,6 +1,7 @@ 'use client'; import Sticky from 'react-sticky-el'; import { + BookmarkCheckIcon, CheckIcon, ChevronLeft, ChevronRight, @@ -18,9 +19,12 @@ import { ShieldCheck, SidebarCloseIcon, SidebarIcon, + SidebarOpenIcon, SpaceIcon, SplitSquareHorizontal, SplitSquareVertical, + SplitSquareVerticalIcon, + TableIcon, XIcon, } from 'lucide-react'; import { @@ -29,11 +33,13 @@ import { HeartFilledIcon, Link1Icon, LockClosedIcon, + QuestionMarkCircledIcon, QuestionMarkIcon, ReloadIcon, + SpaceBetweenHorizontallyIcon, UpdateIcon, } from '@radix-ui/react-icons'; -import Image from 'next/image'; +import Image from "next/legacy/image"; import Link from 'next/link'; import { Button } from './ui/button'; import { COLORS } from './create-theme'; @@ -52,6 +58,8 @@ import ThemeCard from './theme-card'; import { getAllThemes, ZenTheme } from '@/lib/themes'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './ui/accordion'; import Logo from './logo'; +import CachedImage from './CachedImage'; +import { transform } from 'next/dist/build/swc'; function Checkmark() { return ( @@ -84,8 +92,13 @@ export default function Features() { -
- Zen Browser +
+
+

Always up to date

+

Zen Browser is always up to date, ensuring that you have the latest features and security updates. With automatic updates, you can rest easy knowing that your browser is secure and up to date.

+
+ +
@@ -124,7 +137,7 @@ export default function Features() {
-

Built for simplicity

+

Built for simplicity

Zen Browser is designed to be simple and easy to use. It's built with the user in mind, so you can focus on what matters most.

@@ -141,12 +154,12 @@ export default function Features() {
- Zen Browser +
- Zen Browser +
-

Split Views

+

Split Views

Zen Browser allows you to split your view into multiple panes, so you can work on multiple things at once. It's perfect for multitasking.

@@ -155,7 +168,7 @@ export default function Features() {
-

Better tab management

+

Better tab management

Better tab management helps you stay organized and focused, reducing clutter and enhancing productivity

@@ -178,7 +191,7 @@ export default function Features() {
-

Security and Privacy is important to us

+

Security and Privacy is important to us

Zen is based on Firefox, ensuring that your browsing experience prioritizes security and privacy. With advanced tracking protection and minimal data collection, Zen keeps your online activity safe and secure, giving you peace of mind as you explore the web.

@@ -190,7 +203,7 @@ export default function Features() {
-

Sidebar

+

Sidebar

Zen Browser has a built-in sidebar that lets you quickly access your favorite websites, bookmarks, and more. It's the perfect way to stay organized.

@@ -207,12 +220,12 @@ export default function Features() {
- Zen Browser +
- Zen Browser +
-

Introducing Compact Mode

+

Introducing Compact Mode

Zen Browser's compact mode gives you more screen real estate by hiding the title bar and tabs. It's perfect for when you need to focus on your work.

@@ -220,18 +233,9 @@ export default function Features() {
-
- Zen Browser - Zen Browser - Zen Browser - {feature == "item-1" && ( -
- -
- )} -
-
- +
+

Frequently Asked Questions

+ is it firefox based? @@ -252,6 +256,42 @@ export default function Features() {
+
+ + {feature == "item-1" && ( + + )} + {feature == "item-2" && ( + + )} + {feature == "item-3" && ( + + )} +
diff --git a/src/components/header.tsx b/src/components/header.tsx index 6973c57..70613e4 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -9,7 +9,7 @@ import { BorderBeam } from "./ui/border-beam"; import { ny } from "@/lib/utils"; import { ChevronDown, ChevronRight } from "lucide-react"; import Particles from "./ui/particles"; -import Image from "next/image"; +import Image from "next/legacy/image"; import Link from "next/link"; export default function Header() { const ref = useRef(null); diff --git a/src/components/logo.tsx b/src/components/logo.tsx index eb90c92..ec4826a 100644 --- a/src/components/logo.tsx +++ b/src/components/logo.tsx @@ -1,13 +1,14 @@ "use client"; import { LOGO_COLORS } from "@/lib/logos"; import { ny } from "@/lib/utils"; -import Image from "next/image"; +import Image from "next/legacy/image"; import React from "react"; +import CachedImage from "./CachedImage"; export default function Logo({ withText, ...props }: any) { return (
- Zen Logo + {withText && zen}
); diff --git a/src/components/theme-card.tsx b/src/components/theme-card.tsx index f4f5a7b..690f307 100644 --- a/src/components/theme-card.tsx +++ b/src/components/theme-card.tsx @@ -1,4 +1,4 @@ -import Image from "next/image"; + import { getThemeAuthorLink, ZenTheme } from "@/lib/themes"; import styled from "styled-components"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./ui/dialog";import { Button } from "./ui/button"; diff --git a/src/components/theme-page.tsx b/src/components/theme-page.tsx index 89de75f..05fedfc 100644 --- a/src/components/theme-page.tsx +++ b/src/components/theme-page.tsx @@ -1,5 +1,5 @@ -import Image from "next/image"; + import { getThemeAuthorLink, getThemeFromId, getThemeMarkdown, ZenTheme } from "@/lib/themes"; import { Button } from "./ui/button"; import { useEffect, useState } from "react";