From 765e096d4fc0c0d5570542ed0874d171e3381466 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Fri, 16 Aug 2024 11:11:26 +0200 Subject: [PATCH] chore: Update privacy policy markdown styles and add back button to theme page --- src/app/privacy-policy/markdown.css | 4 ++++ src/components/marketplace.tsx | 2 +- src/components/theme-page.tsx | 10 ++++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/app/privacy-policy/markdown.css b/src/app/privacy-policy/markdown.css index 27d5953..293b725 100644 --- a/src/app/privacy-policy/markdown.css +++ b/src/app/privacy-policy/markdown.css @@ -5,6 +5,10 @@ font-weight: bold; } +#policy h1:first-child { + margin-top: 0 !important; +} + #policy h2 { font-size: 1.5em; margin: 0.83em 0; diff --git a/src/components/marketplace.tsx b/src/components/marketplace.tsx index 0678b98..4e9348a 100644 --- a/src/components/marketplace.tsx +++ b/src/components/marketplace.tsx @@ -13,7 +13,7 @@ export default function MarketplacePage() { }, []); return ( -
+

Themes Marketplace

diff --git a/src/components/theme-page.tsx b/src/components/theme-page.tsx index e536aa8..522778e 100644 --- a/src/components/theme-page.tsx +++ b/src/components/theme-page.tsx @@ -3,6 +3,7 @@ import { Button } from "./ui/button"; import { useEffect, useState } from "react"; import Markdown from "react-markdown"; import '../app/privacy-policy/markdown.css'; +import { ChevronLeft, MoveLeftIcon } from "lucide-react"; export default function ThemePage({ theme }: { theme: ZenTheme }) { const [readme, setReadme] = useState(null); @@ -11,7 +12,7 @@ export default function ThemePage({ theme }: { theme: ZenTheme }) { }, []); return ( -
+
{theme.name}

{theme.name}

@@ -33,7 +34,12 @@ export default function ThemePage({ theme }: { theme: ZenTheme }) { >Install Theme

You need to have Zen Browser installed to install this theme. Download now!

-
+
+
+
window.history.back()}> + +

Go back

+
{`${readme}`}