Download tasks/linkedin/environment/reference/clone/components/Sidebar.tsx from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 2.5 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/linkedin/environment/reference/clone/components/Sidebar.tsx
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/linkedin/environment/reference/clone/components/Sidebar.tsx
-
curl -L -o Sidebar.tsx https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/linkedin/environment/reference/clone/components/Sidebar.tsx
2.5 kB
| "use client"; | |
| import Link from "next/link"; | |
| import { Bookmark, Puzzle, Users } from "lucide-react"; | |
| import { Avatar } from "./Avatar"; | |
| import { useCurrentUser } from "@/lib/client-session"; | |
| export function ProfileSidebar() { | |
| const currentUser = useCurrentUser(); | |
| return ( | |
| <aside className="profile-sidebar"> | |
| <section className="surface mini-profile"> | |
| <div className="mini-cover" /> | |
| <Link prefetch={false} href={`/profile/${currentUser.username}`}><Avatar name={currentUser.name} src={currentUser.avatarUrl ?? undefined} size="lg" /></Link> | |
| <Link prefetch={false} href={`/profile/${currentUser.username}`} className="mini-name">{currentUser.name}</Link> | |
| <p>{currentUser.headline}</p> | |
| <div className="profile-stats"> | |
| <span>Profile viewers <b>84</b></span> | |
| <span>Post impressions <b>1,204</b></span> | |
| </div> | |
| <Link prefetch={false} href="/my-network" className="saved-link"><Users size={16} /> Grow your network</Link> | |
| <Link prefetch={false} href="/jobs" className="saved-link"><Bookmark size={16} /> Saved jobs</Link> | |
| </section> | |
| </aside> | |
| ); | |
| } | |
| export function NewsSidebar() { | |
| return ( | |
| <aside className="news-sidebar"> | |
| <section className="surface news-card"> | |
| <h2>LinkedIn News</h2> | |
| <a href="#"><b>Teams rethink the management track</b><span>3h ago · 4,812 readers</span></a> | |
| <a href="#"><b>What hiring managers want now</b><span>5h ago · 2,096 readers</span></a> | |
| <a href="#"><b>Climate tech investment rebounds</b><span>7h ago · 1,834 readers</span></a> | |
| <a href="#"><b>Design systems enter their next era</b><span>9h ago · 1,412 readers</span></a> | |
| </section> | |
| <section className="surface puzzle-card"> | |
| <h2>Today's puzzles</h2> | |
| <Link prefetch={false} href="/games/logic-grid"><Puzzle size={22} /><span><b>Logic Grid</b><small>5 connections · 5 min</small></span></Link> | |
| <Link prefetch={false} href="/games/word-link"><Puzzle size={22} /><span><b>Word Link</b><small>Daily word challenge</small></span></Link> | |
| <Link prefetch={false} className="puzzle-more" href="/games">Show all games</Link> | |
| </section> | |
| <footer className="mini-footer"> | |
| <a href="#">About</a><a href="#">Accessibility</a><a href="#">Help Center</a> | |
| <a href="#">Privacy & Terms</a><a href="#">Business Services</a> | |
| <span><b>LinkedIn</b> © 2026</span> | |
| </footer> | |
| </aside> | |
| ); | |
| } | |