fix: trending icon

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-10-10 13:44:12 +08:00
parent 8ff4343c46
commit e09dce467b
3 changed files with 7 additions and 20 deletions
@@ -1,17 +0,0 @@
import type { SVGProps } from "react"
import React from "react"
export function IconoirBrightCrown(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" {...props}>
<path
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
d="M22 12h1M12 2V1m0 22v-1m8-2l-1-1m1-15l-1 1M4 20l1-1M4 4l1 1m-4 7h1m14.8 3.5l1.2-7l-4.2 2.1L12 8.5l-1.8 2.1L6 8.5l1.2 7z"
/>
</svg>
)
}
+6 -3
View File
@@ -5,7 +5,6 @@ import { useTranslation } from "react-i18next"
import { getTrendingAggregates } from "~/api/trending"
import { FeedIcon } from "~/components/feed-icon"
import { IconoirBrightCrown } from "~/components/icons/crown"
import { PhUsersBold } from "~/components/icons/users"
import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar"
import { ActionButton, Button } from "~/components/ui/button"
@@ -171,8 +170,12 @@ const TrendingUsers: FC<{ data: User[] }> = ({ data }) => {
<section className="w-full text-left">
<h2 className="my-2 text-xl font-bold">{t("trending.user")}</h2>
<div className="relative h-[100px]">
<div className="absolute left-[calc(50%+12px)] top-[12px] rotate-45 text-[20px] text-accent">
<IconoirBrightCrown />
<div className="absolute left-[calc(50%+15px)] top-[8px] rotate-45 text-[20px] text-accent">
<i className="i-mgc-vip-2-cute-fi" />
</div>
<div className="absolute left-[calc(33%+15px)] top-[calc(theme(spacing.3))] rotate-45 text-[20px] text-accent/80">
<i className="i-mgc-vip-2-cute-re" />
</div>
{data.slice(0, 3).map((user, index: number) => (
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="#fff" fill-opacity=".01" d="M24 0v24H0V0z"/><path stroke="#10161F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0M12 20c2.573 0 3.86 0 4.862-.66a4.19 4.19 0 0 0 .116-.08c.978-.696 1.443-1.896 2.372-4.295l1.65-4.26s-3.7.736-5.5-.205C13.7 9.559 12 6 12 6s-1.7 3.765-3.5 4.706c-1.8.941-5.5 0-5.5 0l1.65 4.259c.929 2.4 1.394 3.599 2.372 4.295l.116.08C8.14 20 9.427 20 12 20"/><path fill="#10161F" d="M4 10a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M23 10a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/></svg>

After

Width:  |  Height:  |  Size: 629 B