mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +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>
|
||||
<body className={inter.className}>
|
||||
<ThemeProvider attribute="class" enableSystem defaultTheme="system">
|
||||
<ThemeProvider attribute="class" enableSystem defaultTheme="dark" storageKey="zen.theme">
|
||||
<StyledComponentsRegistry>
|
||||
<div>
|
||||
{children}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue