Spaces:
Runtime error
Runtime error
fix css
Browse files- components/main/index.tsx +31 -31
components/main/index.tsx
CHANGED
@@ -71,37 +71,37 @@ export const Main = () => {
|
|
71 |
)}
|
72 |
</div>
|
73 |
</div>
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
</div>
|
106 |
<p
|
107 |
className="text-white/70 font-medium text-sm flex items-center justify-center lg:justify-start gap-2 hover:text-white cursor-pointer mt-3"
|
|
|
71 |
)}
|
72 |
</div>
|
73 |
</div>
|
74 |
+
</div>
|
75 |
+
<div
|
76 |
+
className={classNames(
|
77 |
+
"flex items-center justify-center lg:justify-end text-right gap-1 mt-4 lg:mt-0 pr-2 lg:pr-4",
|
78 |
+
{
|
79 |
+
"text-gray-300 text-xs": !user?.sub,
|
80 |
+
"text-white text-sm": user?.sub,
|
81 |
+
}
|
82 |
+
)}
|
83 |
+
>
|
84 |
+
{user?.sub ? (
|
85 |
+
<>
|
86 |
+
Logged as
|
87 |
+
<Link
|
88 |
+
href={user?.profile}
|
89 |
+
target="_blank"
|
90 |
+
className="hover:text-blue-500 flex items-center justify-end gap-2"
|
91 |
+
>
|
92 |
+
@{user?.preferred_username}
|
93 |
+
<Image
|
94 |
+
src={user?.picture}
|
95 |
+
width={24}
|
96 |
+
height={24}
|
97 |
+
className="rounded-full ring-1 ring-white/60 border border-black"
|
98 |
+
alt={user?.preferred_username}
|
99 |
+
/>
|
100 |
+
</Link>
|
101 |
+
</>
|
102 |
+
) : (
|
103 |
+
"to save your generations in your own gallery"
|
104 |
+
)}
|
105 |
</div>
|
106 |
<p
|
107 |
className="text-white/70 font-medium text-sm flex items-center justify-center lg:justify-start gap-2 hover:text-white cursor-pointer mt-3"
|