feat(icon): new nezhadash icon
@ -7,12 +7,13 @@ import { Skeleton } from "@/components/ui/skeleton";
|
|||||||
import getEnv from "@/lib/env-entry";
|
import getEnv from "@/lib/env-entry";
|
||||||
import { DateTime } from "luxon";
|
import { DateTime } from "luxon";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import Image from "next/image";
|
import { useTheme } from "next-themes";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import React, { useEffect, useRef, useState } from "react";
|
import React, { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
function Header() {
|
function Header() {
|
||||||
const t = useTranslations("Header");
|
const t = useTranslations("Header");
|
||||||
|
const { resolvedTheme } = useTheme();
|
||||||
const customLogo = getEnv("NEXT_PUBLIC_CustomLogo");
|
const customLogo = getEnv("NEXT_PUBLIC_CustomLogo");
|
||||||
const customTitle = getEnv("NEXT_PUBLIC_CustomTitle");
|
const customTitle = getEnv("NEXT_PUBLIC_CustomTitle");
|
||||||
const customDescription = getEnv("NEXT_PUBLIC_CustomDescription");
|
const customDescription = getEnv("NEXT_PUBLIC_CustomDescription");
|
||||||
@ -30,12 +31,17 @@ function Header() {
|
|||||||
className="flex cursor-pointer items-center text-base font-medium"
|
className="flex cursor-pointer items-center text-base font-medium"
|
||||||
>
|
>
|
||||||
<div className="mr-1 flex flex-row items-center justify-start">
|
<div className="mr-1 flex flex-row items-center justify-start">
|
||||||
<Image
|
<img
|
||||||
width={40}
|
width={40}
|
||||||
height={40}
|
height={40}
|
||||||
unoptimized
|
|
||||||
alt="apple-touch-icon"
|
alt="apple-touch-icon"
|
||||||
src={customLogo ? customLogo : "/apple-touch-icon.png"}
|
src={
|
||||||
|
customLogo
|
||||||
|
? customLogo
|
||||||
|
: resolvedTheme === "light"
|
||||||
|
? "/apple-touch-icon.png"
|
||||||
|
: "/apple-touch-icon-dark.png"
|
||||||
|
}
|
||||||
className="relative m-0! border-2 border-transparent h-6 w-6 object-cover object-top p-0!"
|
className="relative m-0! border-2 border-transparent h-6 w-6 object-cover object-top p-0!"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 769 B |
BIN
app/favicon.ico
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 16 KiB |
BIN
public/apple-touch-icon-dark.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 769 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |