Optimize image loading in components

This commit is contained in:
mauro 🤙
2024-08-27 23:20:36 +00:00
parent b69f2d25e4
commit 61a8f73364
5 changed files with 7 additions and 7 deletions

View File

@@ -220,7 +220,7 @@ export default function DownloadPage() {
</p> </p>
<div className="flex font-bold mt-5 items-center justify-between mx-auto"> <div className="flex font-bold mt-5 items-center justify-between mx-auto">
<a href="https://github.com/zen-browser">Source Code</a> <a href="https://github.com/zen-browser">Source Code</a>
<Link <a
className="ml-5" className="ml-5"
href="https://patreon.com/zen_browser?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink" href="https://patreon.com/zen_browser?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink"
> >
@@ -551,7 +551,7 @@ export default function DownloadPage() {
<InfoCircledIcon className="size-4 mr-2" /> <InfoCircledIcon className="size-4 mr-2" />
<p className="text-muted-foreground"> <p className="text-muted-foreground">
Confused about which build to choose?{" "} Confused about which build to choose?{" "}
<Link <a
href="https://docs.zen-browser.app/guides/generic-optimized" href="https://docs.zen-browser.app/guides/generic-optimized"
target="_blank" target="_blank"
className="text-blue-400" className="text-blue-400"

View File

@@ -6,7 +6,7 @@ export default function Footer() {
return ( return (
<div className="font-medium flex-col md:flex-row px-10 md:px-0 border-t w-full border-grey py-10 mt-10 flex justify-center align-center"> <div className="font-medium flex-col md:flex-row px-10 md:px-0 border-t w-full border-grey py-10 mt-10 flex justify-center align-center">
Zen Browser © {new Date().getFullYear()} - Made with by the Zen team. Zen Browser © {new Date().getFullYear()} - Made with by the Zen team.
<Link <a
href={"https://github.com/zen-browser"} href={"https://github.com/zen-browser"}
target="_blank" target="_blank"
className="mt-5 md:mt-0 md:ml-2 font-bold" className="mt-5 md:mt-0 md:ml-2 font-bold"

View File

@@ -94,7 +94,7 @@ function MobileLink({
}: MobileLinkProps) { }: MobileLinkProps) {
const router = useRouter() const router = useRouter()
return ( return (
<Link <a
href={href} href={href}
onClick={() => { onClick={() => {
router.push(href.toString()) router.push(href.toString())

View File

@@ -64,7 +64,7 @@ export function Navigation() {
<ul className="grid gap-3 p-6 md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]"> <ul className="grid gap-3 p-6 md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]">
<li className="row-span-3"> <li className="row-span-3">
<NavigationMenuLink asChild> <NavigationMenuLink asChild>
<Link <a
className="flex h-full w-full select-none flex-col justify-end rounded-md bg-gradient-to-b from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md" className="flex h-full w-full select-none flex-col justify-end rounded-md bg-gradient-to-b from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md"
href="/" href="/"
> >

View File

@@ -15,7 +15,7 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
</p> </p>
<p className="text-md mt-4 text-muted-foreground"> <p className="text-md mt-4 text-muted-foreground">
If you encounter any issues, please report them on{" "} If you encounter any issues, please report them on{" "}
<Link <a
href="https://github.com/zen-browser/desktop/issues/" href="https://github.com/zen-browser/desktop/issues/"
className="text-underline text-blue-500" className="text-underline text-blue-500"
> >
@@ -81,7 +81,7 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
<li key={index} className="mt-1 text-muted-foreground"> <li key={index} className="mt-1 text-muted-foreground">
{fix.description} {fix.description}
{fix.issue && ( {fix.issue && (
<Link <a
href={`https://github.com/zen-browser/desktop/issues/${fix.issue}`} href={`https://github.com/zen-browser/desktop/issues/${fix.issue}`}
target="_blank" target="_blank"
className="ml-1 text-blue-500" className="ml-1 text-blue-500"