-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
76 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use client" | ||
|
||
import clsx from "clsx" | ||
import { ChevronRight } from "lucide-react" | ||
import Link from "next/link" | ||
import { usePathname } from "next/navigation" | ||
|
||
export default function SettingsSectionBar({ tag, href }: { tag: string; href: string }) { | ||
const pathname = usePathname() | ||
|
||
return ( | ||
<Link href={href} passHref> | ||
<div | ||
className={clsx( | ||
"relative flex items-center justify-between p-3 transition hover:bg-neutral-200", | ||
pathname.startsWith(href) && | ||
"after:absolute after:right-0 after:h-full after:w-[3px] after:bg-misskey", | ||
)}> | ||
<span>{tag}</span> | ||
<ChevronRight size={20} /> | ||
</div> | ||
</Link> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { HTMLProps } from "react" | ||
|
||
export default function H3(props: HTMLProps<HTMLHeadingElement>) { | ||
return <h2 className={"mx-4 my-2 mb-1 text-lg font-bold"} {...props} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters