Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 22 additions & 24 deletions components/layout/directory-results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,31 @@ export default function DirectoryResults({ users }: { users: UserProps[] }) {
{users.map((user) => (
<li key={user.username}>
<Link href={`/${user.username}`}>
<a>
<div className="relative px-6 py-4 flex items-center space-x-3 focus-within:ring-0">
<div className="flex-shrink-0 h-12 w-12 rounded-full overflow-hidden">
<BlurImage
src={user.image}
alt={user.name}
width={300}
height={300}
/>
</div>
<div className="flex-1 min-w-0">
{/* Extend touch target to entire panel */}
<span className="absolute inset-0" aria-hidden="true" />
<div className="flex items-center space-x-1">
<p className="text-sm font-medium text-white truncate">
{user.name}
</p>
{user.verified && (
<CheckInCircleIcon className="w-4 h-4 text-white" />
)}
</div>
<p className="text-sm text-dark-accent-5 truncate">
@{user.username}
<div className="relative px-6 py-4 flex items-center space-x-3 focus-within:ring-0">
<div className="flex-shrink-0 h-12 w-12 rounded-full overflow-hidden">
<BlurImage
src={user.image}
alt={user.name}
width={300}
height={300}
/>
</div>
<div className="flex-1 min-w-0">
{/* Extend touch target to entire panel */}
<span className="absolute inset-0" aria-hidden="true" />
<div className="flex items-center space-x-1">
<p className="text-sm font-medium text-white truncate">
{user.name}
</p>
{user.verified && (
<CheckInCircleIcon className="w-4 h-4 text-white" />
)}
</div>
<p className="text-sm text-dark-accent-5 truncate">
@{user.username}
</p>
</div>
</a>
</div>
</Link>
</li>
))}
Expand Down
8 changes: 3 additions & 5 deletions components/layout/directory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ export default function Directory({
<aside className="flex-shrink-0 w-full bg-black sm:w-96 h-full overflow-scroll border-r border-gray-800">
<div className="px-6 pt-6 pb-0 sticky top-0 bg-black z-20">
<Link href="/">
<a>
<div className="bg-dark-accent-1 hover:bg-dark-accent-2 transition-all rounded-2xl h-12 w-12 flex justify-center items-center">
<DirectoryIcon className="text-white" />
</div>
</a>
<div className="bg-dark-accent-1 hover:bg-dark-accent-2 transition-all rounded-2xl h-12 w-12 flex justify-center items-center">
<DirectoryIcon className="text-white" />
</div>
</Link>
<p className="mt-8 text-2xl text-white font-bold">Directory</p>
<p className="mt-2 text-sm text-dark-accent-5">
Expand Down