diff --git a/public/glance.webm b/public/glance.webm new file mode 100644 index 0000000..430208c Binary files /dev/null and b/public/glance.webm differ diff --git a/src/components/download.astro b/src/components/download.astro new file mode 100644 index 0000000..efd92ef --- /dev/null +++ b/src/components/download.astro @@ -0,0 +1,8 @@ +--- +import { ny } from "@/lib/utils"; +const { class: className } = Astro.props; +--- + + + diff --git a/src/components/glance.astro b/src/components/glance.astro new file mode 100644 index 0000000..2b9a032 --- /dev/null +++ b/src/components/glance.astro @@ -0,0 +1,29 @@ +--- +import Download from "./download.astro"; +--- + +
+

Introducing Zen Glance 👀

+

+ Zen's glance feature allows you to quickly preview a website without leaving + your current page. It's perfect for checking out links before you click on + them, saving you time and hassle +

+ What are you waiting for? + +
+ + diff --git a/src/components/header.astro b/src/components/header.astro index 958d2ee..ce8713a 100644 --- a/src/components/header.astro +++ b/src/components/header.astro @@ -1,4 +1,5 @@ --- +import Download from "./download.astro"; import DownloadIcon from "./icons/download-icon.astro"; import LanguageIcon from "./icons/language-icon.astro"; import Navbar from "./navbar.astro"; @@ -8,7 +9,7 @@ import Navbar from "./navbar.astro";
- v1.0.1-a.17 + v1.0.1-a.17
diff --git a/src/components/hero.astro b/src/components/hero.astro index c5f9aa8..398d9a9 100644 --- a/src/components/hero.astro +++ b/src/components/hero.astro @@ -4,6 +4,7 @@ import DownloadIcon from "./icons/download-icon.astro"; import browserImage from "@/assets/Redrawn_v1_Barebones.png"; import "@fontsource/dm-sans/700.css"; import { Image } from "astro:assets"; +import Download from "./download.astro"; ---
@@ -13,7 +14,7 @@ import { Image } from "astro:assets"; care about your experience, not your data.

- Download Zen + Download Zen

Available on Windows, Mac, and Linux

@@ -37,10 +38,6 @@ import { Image } from "astro:assets"; @apply drop-shadow-md md:text-center; } - .description { - @apply max-w-prose text-xl text-muted drop-shadow-sm md:text-center; - } - .download { @apply center flex flex-col gap-sm; } diff --git a/src/components/how-much/index.astro b/src/components/how-much.astro similarity index 98% rename from src/components/how-much/index.astro rename to src/components/how-much.astro index a74b751..98007cd 100644 --- a/src/components/how-much/index.astro +++ b/src/components/how-much.astro @@ -217,11 +217,11 @@ const modes: ModesOptions[] = ["compact", "collapsed", "standard", "split"]; } label { - @apply flex cursor-pointer items-center gap-3 rounded-md p-3 transition-colors duration-200 hover:bg-secondary; + @apply flex cursor-pointer items-center gap-3 rounded-lg p-3 hover:bg-secondary hover:text-white; } label:has(input:checked) { - @apply bg-secondary; + @apply bg-secondary text-white; } label span { diff --git a/src/components/why-zen.astro b/src/components/why-zen.astro new file mode 100644 index 0000000..615dbbb --- /dev/null +++ b/src/components/why-zen.astro @@ -0,0 +1,61 @@ +
+

Why Zen?

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ZenArc
Customization◯✗
Open Source◯✗
Privacy◯✗
Ad block◯△*
+
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index b6d1ab6..06ae95a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,10 +1,14 @@ --- -import HowMuch from "../components/how-much/index.astro"; -import Hero from "../components/hero.astro"; -import Layout from "../layouts/main.astro"; +import HowMuch from "@/components/how-much.astro"; +import Hero from "@/components/hero.astro"; +import Layout from "@/layouts/main.astro"; +import Glance from "@/components/glance.astro"; +// import WhyZen from "@/components/why-zen.astro"; --- + + diff --git a/tailwind.config.cjs b/tailwind.config.cjs index ba2239b..b72aa1f 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -18,7 +18,7 @@ module.exports = { colors: { // primary: "hsl(258, 48%, 23%)", primary: "hsl(0 0% 20%)", - secondary: "hsl(22, 96%, 60%)", + secondary: "hsl(22, 100%, 50%)", muted: "hsl(0 0% 30%)", }, spacing: { @@ -74,11 +74,11 @@ module.exports = { "@apply font-bold text-primary leading-none": {}, }, h3: { - fontSize: `clamp(${theme("fontSize.5xl")}, 10vw, calc(${theme("fontSize.5xl")} + 1rem))`, + fontSize: `clamp(${theme("fontSize.4xl")}, 10vw, calc(${theme("fontSize.4xl")} + 1rem))`, "@apply font-bold text-primary leading-none": {}, }, p: { - "@apply text-primary leading-none": {}, + "@apply text-primary": {}, }, }); addComponents({ @@ -99,6 +99,10 @@ module.exports = { "@apply bg-black text-primary font-semibold py-3 px-6 rounded-full w-fit flex items-center gap-2 text-lg drop-shadow-lg hover:drop-shadow-xl transition-all duration-300 dark:bg-white": {}, }, + ".description": { + "@apply max-w-prose text-xl text-muted drop-shadow-sm md:text-center": + {}, + }, }); }), ],