Skip to content

Commit

Permalink
Column 4 UI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pogseal committed Jan 9, 2025
1 parent 4995484 commit 8368f6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 41 deletions.
12 changes: 0 additions & 12 deletions app/routes/_exploreuser+/components/Discover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,18 +217,6 @@ export function Discover() {
{site.about}
</div>
<div className="flex items-center justify-between pt-1">
{site?.followers && (
<div className="text-[10px] flex items-center gap-1">
<Icon
name="users-2"
size={12}
className="text-1"
/>
<span className="dark:text-zinc-500 text-zinc-400">
{site?.followers}
</span>
</div>
)}
<span className="text-xs dark:text-zinc-500 text-zinc-400 flex items-center gap-1">
<Icon
name="link-2"
Expand Down
16 changes: 2 additions & 14 deletions app/routes/_site+/_components/Column-4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function AboutSection({
)}
<div
className={clsx(
hasTrending ? "" : "border-b pt-2 pb-5 border-color",
hasTrending ? "" : "border-b mb-4 pt-2 pb-5 border-color",
"space-y-1",
)}
>
Expand Down Expand Up @@ -116,19 +116,7 @@ export function ColumnFour() {
>
<div className="flex flex-col justify-between flex-grow">
<div>
{/* <div>Remove Ads</div> */}
<section className="grid grid-cols-3 gap-4 py-4 relative z-20 max-laptop:max-w-[728px] max-tablet:px-4 max-laptop:mx-auto mx-4 max-laptop:w-full">
<div
className="dark:bg-dark400 dark:laptop:bg-bg3Dark max-laptop:dark:border-zinc-600/50 bg-white max-laptop:dark:shadow-zinc-800/60
dark:laptop:shadow-zinc-800 shadow-sm border border-color px-3 py-1.5 rounded-lg"
>
<div className="text-xs font-bold text-center">
{site.followers ? site.followers : "-"}
</div>
<div className="text-xs text-1 text-center">
Followers
</div>
</div>
<section className="grid grid-cols-2 gap-4 py-4 relative z-20 max-laptop:max-w-[728px] max-tablet:px-4 max-laptop:mx-auto mx-4 max-laptop:w-full">
<div
className="dark:bg-dark400 dark:laptop:bg-bg3Dark max-laptop:dark:border-zinc-600/50 bg-white max-laptop:dark:shadow-zinc-800/60
dark:laptop:shadow-zinc-800 shadow-sm border border-color px-3 py-1.5 rounded-lg"
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_site+/_components/Contributors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function Contributors({
<>
<section
className={clsx(
site?.trendingPages?.length == 0 ? "w-full py-4" : "pb-4",
"relative z-20 mx-auto max-laptop:max-w-[728px] laptop:px-4 max-tablet:px-4",
site?.trendingPages?.length == 0 ? "w-full py-4" : "",
"relative z-20 mx-auto max-laptop:max-w-[728px] py-4 laptop:px-4 max-tablet:px-4",
)}
>
<div className="flex items-center pb-3">
Expand Down
15 changes: 2 additions & 13 deletions app/routes/_site+/_components/SiteHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function SiteHeader({
>
<div
className="dark:bg-dark450 border dark:border-zinc-600 shadow-1 bg-zinc-50 overflow-hidden flex-none
text-1 flex size-11 items-center justify-center dark:group-hover:border-zinc-600 border-zinc-300/60
text-1 flex size-10 items-center justify-center dark:group-hover:border-zinc-600 border-zinc-300/60
rounded-xl shadow-sm transition duration-300 active:translate-y-0.5 group-hover:border-zinc-300"
>
{site?.icon?.url ? (
Expand All @@ -76,21 +76,10 @@ export function SiteHeader({
</>
)}
</div>
<div className="truncate pl-3 text-sm">
<div className="truncate pl-3 font-header">
<div className="font-bold truncate group-hover:underline decoration-zinc-300 underline-offset-2 dark:decoration-zinc-600">
{site.name}
</div>
{site?.followers && (
<div className="text-[10px] flex items-center gap-1">
<Icon
name="users-2"
className="text-1 size-3"
/>
<span className="dark:text-zinc-500 text-zinc-400">
{site?.followers}
</span>
</div>
)}
</div>
</Link>
</div>
Expand Down

0 comments on commit 8368f6e

Please sign in to comment.