Skip to content
Draft
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 src/components/common/Tab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Props = {
export default function Tab({ text, isActive = false, onClick }: Props) {
return (
<HeadlessTab
className={cn("py-2", "font-bold", {
className={cn("py-2", "font-bold", "cursor-pointer", {
"border-b-2": isActive,
})}
onClick={onClick}
Expand Down
1 change: 1 addition & 0 deletions src/consts/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "~/consts/page";
13 changes: 13 additions & 0 deletions src/consts/page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* ページ関連の定数
*/

/**
* パスの定数
*/
export const PAGE_PATH = {
ABOUT: "/about",
HOME: "/home",
PRODUCTIONS: "/productions",
WORKS: "/works",
} as const;
8 changes: 5 additions & 3 deletions src/utils/cn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
import { twMerge } from "tailwind-merge";

/**
* クラス名管理カスタムヘルパー関数。
* クラス名管理カスタムヘルパー関数。\
* 引数の順番に応じてグルーピングされたスタイルが定義される。
*
* 第1引数:余白
* 第2引数:フォント
* 第1引数:余白、大きさ\
* 第2引数:配置\
* 第3引数:フォント\
* 第4引数:装飾\
* 末端引数:オブジェクトとし、条件分岐によって変わるスタイル
*
* @param inputs クラス名
Expand Down