Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
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
2 changes: 1 addition & 1 deletion components/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function MainNav({ items }: MainNavProps) {
return (
<div className="flex gap-6 md:gap-10">
<Link href="/" className="flex items-center space-x-2">
<Icons.logo className="h-6 w-6" />
<Icons.logo className="size-6" />
<span className="inline-block font-bold">{siteConfig.name}</span>
</Link>
{items?.length ? (
Expand Down
6 changes: 3 additions & 3 deletions components/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ThemeToggle } from "@/components/theme-toggle"

export function SiteHeader() {
return (
<header className="bg-background sticky top-0 z-40 w-full border-b">
<header className="sticky top-0 z-40 w-full border-b bg-background">
<div className="container flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
<MainNav items={siteConfig.mainNav} />
<div className="flex flex-1 items-center justify-end space-x-4">
Expand All @@ -24,7 +24,7 @@ export function SiteHeader() {
variant: "ghost",
})}
>
<Icons.gitHub className="h-5 w-5" />
<Icons.gitHub className="size-5" />
<span className="sr-only">GitHub</span>
</div>
</Link>
Expand All @@ -39,7 +39,7 @@ export function SiteHeader() {
variant: "ghost",
})}
>
<Icons.twitter className="h-5 w-5 fill-current" />
<Icons.twitter className="size-5 fill-current" />
<span className="sr-only">Twitter</span>
</div>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion components/tailwind-indicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export function TailwindIndicator() {
if (process.env.NODE_ENV === "production") return null

return (
<div className="fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-xs text-white">
<div className="fixed bottom-1 left-1 z-50 flex size-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-xs text-white">
<div className="block sm:hidden">xs</div>
<div className="hidden sm:block md:hidden">sm</div>
<div className="hidden md:block lg:hidden">md</div>
Expand Down
2 changes: 1 addition & 1 deletion components/theme-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function ThemeToggle() {
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
>
<Sun className="h-[1.5rem] w-[1.3rem] dark:hidden" />
<Moon className="hidden h-5 w-5 dark:block" />
<Moon className="hidden size-5 dark:block" />
<span className="sr-only">Toggle theme</span>
</Button>
)
Expand Down