Refactor layout component to enable dark theme by default

This commit is contained in:
mauro-balades 2024-09-16 23:34:51 +02:00
parent 84bea350b3
commit 8c5f86d8ce
4 changed files with 10 additions and 1 deletions

BIN
public/releases/1.0.1-a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View file

@ -36,7 +36,7 @@ export default async function RootLayout({
/>
</head>
<body className={inter.className}>
<ThemeProvider attribute="class" enableSystem defaultTheme="system">
<ThemeProvider attribute="class" enableSystem defaultTheme="dark" storageKey="zen.theme">
<StyledComponentsRegistry>
<div>
{children}

View file

@ -43,6 +43,13 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
</a>
. Thanks everyone for your feedback!
</p>
{data.image && (
<img
src={`https://cdn.jsdelivr.net/gh/zen-browser/www/public/images/releases/${data.version}.png`}
alt="Release Image"
className="mt-8 w-full rounded-lg"
/>
)}
{data.extra && (
<p
className="text-md mt-8 text-muted-foreground"

View file

@ -7,6 +7,7 @@ export interface ReleaseNote {
version: string;
date: string;
extra?: string;
image?: boolean;
fixes?: Fix[];
features?: string[];
breakingChanges?: string[];
@ -798,6 +799,7 @@ export const releaseNotes: ReleaseNote[] = [
{
version: "1.0.1-a",
date: "15/09/2024",
image: true,
extra: "This version marks a more stable alpha release.\nThis release brings a few improvements to the UI and some important quality of life features for workspaces, such as separate pinned tabs, custom icons and assigned tab conainers!",
features: [
"Added verified digital signnature to Windows builds",