icons
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M18.94 5.41994L13.77 2.42994C12.78 1.85994 11.23 1.85994 10.24 2.42994L5.01996 5.43994C2.94996 6.83994 2.82996 7.04994 2.82996 9.27994V14.7099C2.82996 16.9399 2.94996 17.1599 5.05996 18.5799L10.23 21.5699C10.73 21.8599 11.37 21.9999 12 21.9999C12.63 21.9999 13.27 21.8599 13.76 21.5699L18.98 18.5599C21.05 17.1599 21.17 16.9499 21.17 14.7199V9.27994C21.17 7.04994 21.05 6.83994 18.94 5.41994ZM12 15.2499C10.21 15.2499 8.74996 13.7899 8.74996 11.9999C8.74996 10.2099 10.21 8.74994 12 8.74994C13.79 8.74994 15.25 10.2099 15.25 11.9999C15.25 13.7899 13.79 15.2499 12 15.2499Z" fill="#292D32"/>
|
||||
<path d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81V16.18C2 19.83 4.17 22 7.81 22H16.18C19.82 22 21.99 19.83 21.99 16.19V7.81C22 4.17 19.83 2 16.19 2ZM10.95 17.51C10.66 17.8 10.11 18.08 9.71 18.14L7.25 18.49C7.16 18.5 7.07 18.51 6.98 18.51C6.57 18.51 6.19 18.37 5.92 18.1C5.59 17.77 5.45 17.29 5.53 16.76L5.88 14.3C5.94 13.89 6.21 13.35 6.51 13.06L10.97 8.6C11.05 8.81 11.13 9.02 11.24 9.26C11.34 9.47 11.45 9.69 11.57 9.89C11.67 10.06 11.78 10.22 11.87 10.34C11.98 10.51 12.11 10.67 12.19 10.76C12.24 10.83 12.28 10.88 12.3 10.9C12.55 11.2 12.84 11.48 13.09 11.69C13.16 11.76 13.2 11.8 13.22 11.81C13.37 11.93 13.52 12.05 13.65 12.14C13.81 12.26 13.97 12.37 14.14 12.46C14.34 12.58 14.56 12.69 14.78 12.8C15.01 12.9 15.22 12.99 15.43 13.06L10.95 17.51ZM17.37 11.09L16.45 12.02C16.39 12.08 16.31 12.11 16.23 12.11C16.2 12.11 16.16 12.11 16.14 12.1C14.11 11.52 12.49 9.9 11.91 7.87C11.88 7.76 11.91 7.64 11.99 7.57L12.92 6.64C14.44 5.12 15.89 5.15 17.38 6.64C18.14 7.4 18.51 8.13 18.51 8.89C18.5 9.61 18.13 10.33 17.37 11.09Z" fill="#292D32"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 703 B After Width: | Height: | Size: 1.1 KiB |
@@ -5,6 +5,7 @@ import PageTitle from "@/components/settings/PageTitle";
|
||||
import Roules from "@/components/settings/settings/Roules";
|
||||
import UserDetails from "@/components/settings/UserDetails";
|
||||
import { navLinks } from "@/constants";
|
||||
import { staticIconUrl } from "@/components/main/BaseUrl";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import React from "react";
|
||||
@@ -28,7 +29,7 @@ function Settings() {
|
||||
width={24}
|
||||
height={24}
|
||||
alt={item?.title}
|
||||
src={`/images/icons/${item?.icon}`}
|
||||
src={staticIconUrl(`/images/icons/${item?.icon}`)}
|
||||
className="dark:invert"
|
||||
/>
|
||||
<span>{item?.title}</span>
|
||||
|
||||
@@ -40,7 +40,7 @@ export const IMAGE_BASE_URL = getStorageBaseUrl();
|
||||
|
||||
/** نسخه آیکونها — با هر تغییر آیکون این مقدار را افزایش دهید */
|
||||
export const ICON_VERSION =
|
||||
process.env.NEXT_PUBLIC_ICON_VERSION ?? "5";
|
||||
process.env.NEXT_PUBLIC_ICON_VERSION ?? "6";
|
||||
|
||||
/** URL آیکون استاتیک با cache-busting */
|
||||
export function staticIconUrl(path: string): string {
|
||||
|
||||
@@ -101,7 +101,7 @@ function ModelContentPosts({ filters, token, _id }: InfinitePostsProps) {
|
||||
<button
|
||||
type="button"
|
||||
key={post._id}
|
||||
className="relative aspect-square cursor-pointer overflow-hidden rounded-sm sm:rounded-lg group focus:outline-none focus-visible:ring-2 focus-visible:ring-pink-500"
|
||||
className="relative aspect-square cursor-pointer overflow-hidden rounded-md sm:rounded-xl group focus:outline-none focus-visible:ring-2 focus-visible:ring-pink-500"
|
||||
onClick={() => openPost(post)}
|
||||
aria-label="مشاهده پست"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user