feat: looser head
This commit is contained in:
@@ -93,12 +93,12 @@ export const FollowingCount: React.FC<{
|
||||
<Button
|
||||
variant="text"
|
||||
className={
|
||||
"xlog-site-followers align-middle text-zinc-500 text-sm -ml-2" +
|
||||
"xlog-site-followers align-middle text-zinc-500 -ml-2" +
|
||||
(disableList ? "" : " cursor-pointer")
|
||||
}
|
||||
onClick={() => setIsFollowListOpen(true)}
|
||||
>
|
||||
<span className="font-bold text-zinc-700 pr-[2px]">
|
||||
<span className="font-medium text-zinc-700 pr-[2px]">
|
||||
{subscriptions.data?.total || 0}
|
||||
</span>{" "}
|
||||
{t("Followers")}
|
||||
@@ -106,12 +106,12 @@ export const FollowingCount: React.FC<{
|
||||
<Button
|
||||
variant="text"
|
||||
className={
|
||||
"xlog-site-followings align-middle text-zinc-500 text-sm ml-3" +
|
||||
"xlog-site-followings align-middle text-zinc-500 ml-3" +
|
||||
(disableList ? "" : " cursor-pointer")
|
||||
}
|
||||
onClick={() => setIsToFollowListOpen(true)}
|
||||
>
|
||||
<span className="font-bold text-zinc-700 pr-[2px]">
|
||||
<span className="font-medium text-zinc-700 pr-[2px]">
|
||||
{toSubscriptions.data?.total || 0}
|
||||
</span>{" "}
|
||||
{t("Followings")}
|
||||
|
||||
@@ -195,20 +195,20 @@ export const SiteHeader: React.FC<{
|
||||
</div>
|
||||
<div className="px-5 max-w-screen-md mx-auto h-full relative flex items-center flex-col">
|
||||
<div className="mb-auto"></div>
|
||||
<div className="flex py-10 w-full">
|
||||
<div className="flex py-12 w-full">
|
||||
<div className="xlog-site-info flex space-x-6 items-center w-full">
|
||||
{site?.avatars?.[0] && (
|
||||
<Avatar
|
||||
className="xlog-site-icon"
|
||||
images={[getUserContentsUrl(site?.avatars?.[0])]}
|
||||
size={110}
|
||||
size={120}
|
||||
name={site?.name}
|
||||
imageRef={avatarRef}
|
||||
/>
|
||||
)}
|
||||
<div className="flex-1">
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="xlog-site-name text-4xl font-bold text-zinc-900 leading-snug">
|
||||
<div className="xlog-site-name text-3xl font-bold text-zinc-900 leading-snug">
|
||||
{site?.name}
|
||||
</div>
|
||||
<div className="ml-8 space-x-2 flex items-center">
|
||||
@@ -267,17 +267,17 @@ export const SiteHeader: React.FC<{
|
||||
</div>
|
||||
{site?.bio && (
|
||||
<div
|
||||
className="xlog-site-description text-gray-500 leading-snug my-1"
|
||||
className="xlog-site-description text-gray-500 leading-snug my-3"
|
||||
dangerouslySetInnerHTML={{ __html: site?.description || "" }}
|
||||
></div>
|
||||
)}
|
||||
<div className="xlog-site-others text-sm">
|
||||
<div className="xlog-site-others">
|
||||
<FollowingCount siteId={site?.username} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="text-sm text-gray-500 flex items-center justify-between w-full mt-auto">
|
||||
<div className="text-gray-500 flex items-center justify-between w-full mt-auto">
|
||||
<div className="xlog-site-navigation flex items-center space-x-5 min-w-0 overflow-x-auto font-medium">
|
||||
{leftLinks.map((link, i) => {
|
||||
return <HeaderLink link={link} key={`${link.label}${i}`} />
|
||||
|
||||
@@ -44,7 +44,7 @@ export const SiteHome: React.FC<{
|
||||
className="xlog-post sm:hover:bg-hover bg-white transition-all px-5 py-7 -mx-5 first:-mt-5 sm:rounded-xl flex flex-col sm:flex-row items-center"
|
||||
>
|
||||
<div className="flex-1 flex justify-center flex-col w-full min-w-0">
|
||||
<h3 className="xlog-post-title text-2xl font-bold">
|
||||
<h3 className="xlog-post-title text-2xl font-bold text-zinc-700">
|
||||
{post.title}
|
||||
</h3>
|
||||
<div className="xlog-post-meta text-sm text-zinc-400 mt-1 space-x-4 flex items-center mr-8">
|
||||
|
||||
Reference in New Issue
Block a user