feat: 做了一些个人中心
This commit is contained in:
parent
e274c1425c
commit
94f3767031
|
|
@ -54,10 +54,10 @@ const RoleCard: React.FC<any> = React.memo(({ item }) => {
|
||||||
</div>
|
</div>
|
||||||
<Tags
|
<Tags
|
||||||
className="mt-2.5"
|
className="mt-2.5"
|
||||||
options={[
|
options={item.tags?.slice(0, 3).map((tag: any) => ({
|
||||||
{ label: 'tag1', value: 'tag1' },
|
label: tag.name,
|
||||||
{ label: 'tag2', value: 'tag2' },
|
value: tag.tagId,
|
||||||
]}
|
}))}
|
||||||
/>
|
/>
|
||||||
<div className="text-text-color/60 mt-4 line-clamp-3 text-sm">
|
<div className="text-text-color/60 mt-4 line-clamp-3 text-sm">
|
||||||
{item.description}
|
{item.description}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ export default function RootLayout({
|
||||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||||
>
|
>
|
||||||
<Script
|
<Script
|
||||||
src="//at.alicdn.com/t/c/font_5054282_g1w4osco3ua.js"
|
src="//at.alicdn.com/t/c/font_5054282_0nn29bocnyn.js"
|
||||||
strategy="afterInteractive"
|
strategy="afterInteractive"
|
||||||
async
|
async
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ export default function Avatar() {
|
||||||
inBody
|
inBody
|
||||||
open={isOpen}
|
open={isOpen}
|
||||||
>
|
>
|
||||||
<div className="h-full w-full bg-[rgba(26,23,34,1)] px-10 pt-7">
|
<div className="flex h-full w-full flex-col items-center bg-[rgba(26,23,34,1)] px-10 pt-7">
|
||||||
<div className="flex justify-between">
|
<div className="flex w-full justify-between">
|
||||||
<span onClick={() => setIsOpen(false)}>
|
<span onClick={() => setIsOpen(false)}>
|
||||||
<IconFont
|
<IconFont
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
|
|
@ -31,6 +31,32 @@ export default function Avatar() {
|
||||||
size={18}
|
size={18}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
<span className="relative">
|
||||||
|
<IconFont
|
||||||
|
className="cursor-pointer"
|
||||||
|
type="icon-xitongtongzhi"
|
||||||
|
size={24}
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="relative h-15 w-15">
|
||||||
|
<img
|
||||||
|
src="/avator.png"
|
||||||
|
className="rounded-full"
|
||||||
|
alt="avatar"
|
||||||
|
width={60}
|
||||||
|
height={60}
|
||||||
|
/>
|
||||||
|
<span className="flex-center absolute right-0 bottom-0 h-5 w-5 rounded-full bg-blue-600">
|
||||||
|
♂
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="font-bold">Darvy</div>
|
||||||
|
<div className="flex items-center gap-1 text-xs">
|
||||||
|
<span className="h-3 w-3 rounded-sm bg-[rgba(255,102,0,1)]">
|
||||||
|
ID
|
||||||
|
</span>
|
||||||
|
<span className="font-bold text-white/60">user12345</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue