Files
andwati.com/src/components/Sidebar.tsx
T
andwati ec6401ac38 Replace Astro/Strapi site with Next.js static export
- Fresh structure: Next.js App Router + Tailwind v4 at the repo root, exported
  as static files (output: export) and served by static-web-server
- Remove the Strapi CMS, Astro app, Pagefind search, comments, old scripts,
  Lighthouse config and compose files; content in content/ is now plain
  markdown with YAML frontmatter
- Pages: About, Writing, Reading (3D bookshelf) and Portfolio, styled after
  adammaj.com
- SEO: metadata and canonicals, JSON-LD, generated OG images, sitemap, robots,
  RSS and JSON feeds, llms.txt
- Umami via PUBLIC_UMAMI_SCRIPT_URL / PUBLIC_UMAMI_WEBSITE_ID (build args)
- Dockerfile builds the export and serves it with sws.toml (security headers,
  clean URLs, .well-known, OG image content type, immutable asset caching)
- Prettier and cspell for content with a husky/lint-staged pre-commit hook
- Old redirect list dropped to start from a clean slate
2026-09-30 12:48:14 +03:00

36 lines
1.1 KiB
TypeScript

import { NavLink } from "@/components/NavLink";
import { site } from "@/lib/site";
const link = "mt-2 block w-fit text-[18px] leading-[27px]";
export function Sidebar() {
return (
<aside className="absolute right-full mr-40 hidden lg:flex">
<div className="fixed flex flex-col items-start whitespace-nowrap">
<nav>
<p className="text-[13.3333px] leading-5 font-bold">NAVIGATION</p>
{site.nav.map((item) => (
<NavLink key={item.href} href={item.href} className={link}>
{item.name}
</NavLink>
))}
</nav>
<div className="mt-10">
<p className="text-[13.3333px] leading-5 font-bold">FIND ME ON</p>
{site.social.map((item) => (
<a
key={item.href}
href={item.href}
target="_blank"
rel="noopener noreferrer"
className={`${link} text-gray-500 hover:text-black`}
>
{item.name}
</a>
))}
</div>
</div>
</aside>
);
}