Skip to content

Commit

Permalink
half of refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgill committed Apr 1, 2024
1 parent 137ff06 commit 589e6e3
Show file tree
Hide file tree
Showing 21 changed files with 18 additions and 14 deletions.
Binary file removed apps/docs/public/images/examples/animes.jpg
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";

import Callout from "@/components/callout.astro";
import MdxCard from "@/components/content/mdx-card.astro";
import MdxCard from "@/components/content/MdxCard.astro";
import { cn } from "@/lib/utils";
import { Image } from "astro:assets";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/components/theme-toggle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useMounted } from "@/hooks/use-mounted";
import { useMounted } from "@/hooks/useMounted";
import { AnimatePresence, motion } from "framer-motion";
import { useEffect, useState } from "react";

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/docs/src/layouts/base-layout.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import "@fontsource/inter";
import BaseHead from "@/components/layout/base-head.astro";
import BaseHead from "@/components/layout/BaseHead.astro";
import TailwindIndicator from "@/components/tailwind-indicator.astro";
// NOTE: work with { Toaster } from "@/components/ui/sonner" but need to update dark theme
import { Toaster } from "sonner";
Expand Down
9 changes: 5 additions & 4 deletions apps/docs/src/layouts/main-layout.astro
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
import Footer from "@/components/layout/footer.astro";
import Header from "@/components/layout/header.astro";
import Footer from "@/components/layout/Footer.astro";
import Header from "@/components/layout/Header.astro";
import { cn } from "@/lib/utils";
import BaseLayout from "./base-layout.astro";
import { SheetMobileNav } from "@/components/layout/sheet-mobile-nav";
import { SheetMobileNav } from "@/components/layout/SheetMobileNav";
import { ThemeToggle } from "@/components/theme-toggle";
import { siteConfig } from "@/config/site";
import { Icon } from "astro-icon/components";
import { marketingConfig } from "@/config/marketing";
import MainNav from "@/components/layout/main-nav.astro";
import MainNav from "@/components/layout/MainNav.astro";
type Props = {
title: string;
Expand Down Expand Up @@ -56,3 +56,4 @@ const { title, description, mainClass } = Astro.props;

<Footer />
</BaseLayout>
@/components/layout/SheetMobileNav
2 changes: 1 addition & 1 deletion apps/docs/src/pages/blog/category/[category].astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import BlogHeader from "@/components/blog-header.astro";
import BlogCard from "@/components/cards/blog-card.astro";
import BlogCard from "@/components/cards/BlogCard.astro";
import MainLayout from "@/layouts/main-layout.astro";
import { capitalizer } from "@/lib/utils";
import { getCollection } from "astro:content";
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/pages/blog/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import BlogHeader from "@/components/blog-header.astro";
import BlogCard from "@/components/cards/blog-card.astro";
import BlogCard from "@/components/cards/BlogCard.astro";
import MainLayout from "@/layouts/main-layout.astro";
import { getPosts } from "@/lib/fetchers";
Expand Down
5 changes: 3 additions & 2 deletions apps/docs/src/pages/docs/[...slug].astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { MdxComponents } from "@/components/content/mdx-components";
import DocsSidebarNav from "@/components/layout/sidebar-nav.astro";
import { MdxComponents } from "@/components/content/MdxComponents";
import DocsSidebarNav from "@/components/layout/SidebarNav.astro";
import DocsPageHeader from "@/components/page-header.astro";
import DocsPager from "@/components/pager.astro";
import { DashboardTableOfContents } from "@/components/toc";
Expand Down Expand Up @@ -80,3 +80,4 @@ if (!slug || !doc) {
</div>
</div>
</MainLayout>
@/components/content/MdxComponents
3 changes: 2 additions & 1 deletion apps/docs/src/pages/guides/[...slug].astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { MdxComponents } from "@/components/content/mdx-components";
import { MdxComponents } from "@/components/content/MdxComponents";
import GuidePostLayout from "@/layouts/guide-post.astro";
import { getCollection, type CollectionEntry } from "astro:content";
Expand Down Expand Up @@ -28,3 +28,4 @@ if (!slug || !guide) {
<GuidePostLayout {...guide}>
<Content components={MdxComponents} />
</GuidePostLayout>
@/components/content/MdxComponents
2 changes: 1 addition & 1 deletion apps/docs/src/pages/guides/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import GuideCard from "@/components/cards/guide-card.astro";
import GuideCard from "@/components/cards/GuideCard.astro";
import DocsPageHeader from "@/components/page-header.astro";
import MainLayout from "../../layouts/main-layout.astro";
import { getGuides } from "@/lib/fetchers";
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/src/pages/waitlist.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import MainLayout from "@/layouts/main-layout.astro";
import { WaitlistForm } from "@/components/forms/waitlist-form";
import { WaitlistForm } from "@/components/forms/WaitlistForm";
import { Icon } from "astro-icon/components";
---

Expand Down Expand Up @@ -33,3 +33,4 @@ import { Icon } from "astro-icon/components";
</div>
</div>
</MainLayout>
@/components/forms/WaitlistForm

0 comments on commit 589e6e3

Please sign in to comment.