necessary changes

This commit is contained in:
Aashirwadrunjan
2024-09-03 00:37:40 +05:30
23 changed files with 7311 additions and 214 deletions

View File

@@ -1,5 +1,4 @@
"use client";
import { addDownload } from "@/lib/db";
import { useState, useEffect } from "react";
import styled, { keyframes } from "styled-components";
import { ny } from "@/lib/utils";
@@ -158,7 +157,6 @@ export default function DownloadPage() {
window.location.replace(`${BASE_URL}/${releases[releaseTarget]}`);
}
setHasDownloaded(true);
addDownload(releaseTarget);
throwConfetti();
};
@@ -221,16 +219,16 @@ export default function DownloadPage() {
web with Zen!
</p>
<div className="flex font-bold mt-5 items-center justify-between mx-auto">
<Link href="https://github.com/zen-browser">Source Code</Link>
<Link
<a href="https://github.com/zen-browser">Source Code</a>
<a
className="ml-5"
href="https://patreon.com/zen_browser?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink"
>
Donate
</Link>
<Link className="ml-5" href="/release-notes/latest">
</a>
<a className="ml-5" href="/release-notes/latest">
Release Notes
</Link>
</a>
</div>
{selectedPlatform === "MacOS" && (
<div className="mt-12 flex flex-col items-start border justify-between rounded-md bg-background p-5">
@@ -570,13 +568,13 @@ export default function DownloadPage() {
<InfoCircledIcon className="size-4 mr-2" />
<p className="text-muted-foreground">
Confused about which build to choose?{" "}
<Link
<a
href="https://docs.zen-browser.app/guides/generic-optimized"
target="_blank"
className="text-blue-400"
>
System requirements
</Link>
</a>
.
</p>
</div>