diff --git a/app/layout.tsx b/app/layout.tsx index 730bc8c..74df7dd 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,9 +1,9 @@ -import { Footer } from "components/footer"; -import { CMS_NAME, HOME_OG_IMAGE_URL } from "lib/constants"; +import { Footer } from "../components/footer"; +import { CMS_NAME, HOME_OG_IMAGE_URL } from "../lib/constants"; import type { Metadata } from "next"; import { Inter } from "next/font/google"; import cn from "classnames"; -import { ThemeSwitcher } from "components/theme-switcher"; +import { ThemeSwitcher } from "../components/theme-switcher"; import "./globals.css"; const inter = Inter({ subsets: ["latin"] }); diff --git a/app/page.tsx b/app/page.tsx index d84d086..2fa1e6a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,8 +1,8 @@ -import { Container } from "components/container"; -import { HeroPost } from "components/hero-post"; -import { Intro } from "components/intro"; -import { MoreStories } from "components/more-stories"; -import { getAllPosts } from "lib/api"; +import { Container } from "../components/container"; +import { HeroPost } from "../components/hero-post"; +import { Intro } from "../components/intro"; +import { MoreStories } from "../components/more-stories"; +import { getAllPosts } from "../lib/api"; export default function Page() { const allPosts = getAllPosts(); diff --git a/app/posts/[slug]/page.tsx b/app/posts/[slug]/page.tsx index f648bcd..c36c247 100644 --- a/app/posts/[slug]/page.tsx +++ b/app/posts/[slug]/page.tsx @@ -1,13 +1,13 @@ import { Metadata } from "next"; import { notFound } from "next/navigation"; -import { getAllPosts, getPostBySlug } from "lib/api"; +import { getAllPosts, getPostBySlug } from "../../../lib/api"; // import { CMS_NAME } from "@/lib/constants"; -import markdownToHtml from "lib/markdownToHtml"; -import { Alert } from "components/alert"; -import { Container } from "components/container"; -import { Header } from "components/header"; -import { PostBody } from "components/post-body"; -import { PostHeader } from "components/post-header"; +import markdownToHtml from "../../../lib/markdownToHtml"; +import { Alert } from "../../../components/alert"; +import { Container } from "../../../components/container"; +import { Header } from "../../../components/header"; +import { PostBody } from "../../../components/post-body"; +import { PostHeader } from "../../../components/post-header"; type Params = { params: { diff --git a/components/Footer.tsx b/components/Footer.tsx index 14562fc..6c105d3 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,4 +1,4 @@ -import { Container } from "components/container"; +import { Container } from "./container"; // import { EXAMPLE_PATH } from "@/lib/constants"; export function Footer() { diff --git a/components/alert.tsx b/components/alert.tsx index 8183cf5..05e4a20 100644 --- a/components/alert.tsx +++ b/components/alert.tsx @@ -1,4 +1,4 @@ -import { Container } from "components/container"; +import { Container } from "./container"; // import { EXAMPLE_PATH } from "@/lib/constants"; import cn from "classnames"; diff --git a/components/hero-post.tsx b/components/hero-post.tsx index 7acfe3b..eab4908 100644 --- a/components/hero-post.tsx +++ b/components/hero-post.tsx @@ -1,8 +1,8 @@ -import { Avatar } from "components/avatar"; -import { CoverImage } from "components/cover-image"; -import { type Author } from "interfaces/author"; +import { Avatar } from "./avatar"; +import { CoverImage } from "./cover-image"; +import { type Author } from "../interfaces/author"; import Link from "next/link"; -import { DateFormatter } from "components/date-formatter"; +import { DateFormatter } from "./date-formatter"; type Props = { title: string; @@ -29,7 +29,7 @@ export function HeroPost({