mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 09:20:00 +02:00
Refactor layout component to enable dark theme by default
This commit is contained in:
parent
84bea350b3
commit
8c5f86d8ce
4 changed files with 10 additions and 1 deletions
BIN
public/releases/1.0.1-a.png
Normal file
BIN
public/releases/1.0.1-a.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 156 KiB |
|
@ -36,7 +36,7 @@ export default async function RootLayout({
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body className={inter.className}>
|
<body className={inter.className}>
|
||||||
<ThemeProvider attribute="class" enableSystem defaultTheme="system">
|
<ThemeProvider attribute="class" enableSystem defaultTheme="dark" storageKey="zen.theme">
|
||||||
<StyledComponentsRegistry>
|
<StyledComponentsRegistry>
|
||||||
<div>
|
<div>
|
||||||
{children}
|
{children}
|
||||||
|
|
|
@ -43,6 +43,13 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
|
||||||
</a>
|
</a>
|
||||||
. Thanks everyone for your feedback! ❤️
|
. Thanks everyone for your feedback! ❤️
|
||||||
</p>
|
</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 && (
|
{data.extra && (
|
||||||
<p
|
<p
|
||||||
className="text-md mt-8 text-muted-foreground"
|
className="text-md mt-8 text-muted-foreground"
|
||||||
|
|
|
@ -7,6 +7,7 @@ export interface ReleaseNote {
|
||||||
version: string;
|
version: string;
|
||||||
date: string;
|
date: string;
|
||||||
extra?: string;
|
extra?: string;
|
||||||
|
image?: boolean;
|
||||||
fixes?: Fix[];
|
fixes?: Fix[];
|
||||||
features?: string[];
|
features?: string[];
|
||||||
breakingChanges?: string[];
|
breakingChanges?: string[];
|
||||||
|
@ -798,6 +799,7 @@ export const releaseNotes: ReleaseNote[] = [
|
||||||
{
|
{
|
||||||
version: "1.0.1-a",
|
version: "1.0.1-a",
|
||||||
date: "15/09/2024",
|
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!",
|
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: [
|
features: [
|
||||||
"Added verified digital signnature to Windows builds",
|
"Added verified digital signnature to Windows builds",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue