Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] 네비게이션 디자인 수정 및 경로 수정 #181

Merged
merged 19 commits into from
Nov 24, 2024
Merged
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
3 changes: 1 addition & 2 deletions apps/wow-docs/app/overview/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import Space from "@components/Space";
import Text from "@components/Text";
import { routePath } from "@constants/routePath";
import { css } from "@styled-system/css";
import Image from "next/image";
import Link from "next/link";
import { RightArrow } from "wowds-icons";

import { routePath } from "@/constants/routePath";

import OverviewBackgroundImage from "../../public/overview-background.png";

const OverviewPage = () => {
Expand Down
3 changes: 1 addition & 2 deletions apps/wow-docs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { routePath } from "@constants/routePath";
import { redirect } from "next/navigation";

import { routePath } from "@/constants/routePath";

const Home = () => {
return redirect(routePath.overview);
};
Expand Down
2 changes: 1 addition & 1 deletion apps/wow-docs/components/NavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const NavItem = ({ href, icon: Icon, alt, label, children }: NavItemProps) => {
<li key={child.href} role="none">
<Link
aria-label={child.label}
href={child.href}
href={`${href}${child.href}`}
role="menuitem"
className={navItemStyle({
type:
Expand Down
5 changes: 5 additions & 0 deletions apps/wow-docs/constants/routePath.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const routePath = {
overview: "/overview",
foundation: "/foundation",
component: "/component",
};
2 changes: 1 addition & 1 deletion apps/wow-docs/panda.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
outExtension: "js",
polyfill: true,
jsxFramework: "react",
include: ["./app/**/*.{ts,tsx,js,jsx}"],
include: ["./app/**/*.{ts,tsx,js,jsx}", "./components/**/*.{ts,tsx,js,jsx}"],
exclude: [],
outdir: "styled-system",
hooks: {
Expand Down
3 changes: 2 additions & 1 deletion apps/wow-docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"paths": {
"@/*": ["app/*"],
"@styled-system/*": ["./styled-system/*"],
"@components/*": ["./components/*"]
"@components/*": ["./components/*"],
"@constants/*": ["./constants/*"]
},
"module": "ESNext",
"moduleResolution": "Bundler",
Expand Down
Loading