Skip to content

Commit

Permalink
refactor: purge blog components
Browse files Browse the repository at this point in the history
and move remaining folders from /blog to /components
  • Loading branch information
mathiazom committed Oct 10, 2024
1 parent 315db19 commit 9c11a89
Show file tree
Hide file tree
Showing 53 changed files with 12 additions and 1,578 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ Sankitty follows a component-based architecture with a focus on modularity and r

- **src/app:** Contains the main application routes and layout components, organizing the site’s pages and their respective content.
- **src/api:** API routes are handled here, including form submissions and any other backend processes.
- **src/blog:** Blog-specific components and pages, including blog post layouts and previews.
- **src/components:** Houses reusable UI components, such as buttons, forms, navigation elements, and content sections. These components are the building blocks for pages.
- **src/lib:** Utility functions, data-fetching logic, and other shared code that supports the application’s functionality.
- **src/schemas:** Sanity content models (schemas) defining the structure of the content stored in the CMS.
Expand Down
16 changes: 8 additions & 8 deletions src/app/(main)/[lang]/[...path]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Metadata } from "next";

import CustomErrorMessage from "src/blog/components/customErrorMessage/CustomErrorMessage";
import Legal from "src/blog/components/legal/Legal";
import LegalPreview from "src/blog/components/legal/LegalPreview";
import { homeLink } from "src/blog/components/utils/linkTypes";
import Compensations from "src/compensations/Compensations";
import CompensationsPreview from "src/compensations/CompensationsPreview";
import CustomerCases from "src/customerCases/CustomerCases";
import CustomerCasesPreview from "src/customerCases/CustomerCasesPreview";
import Compensations from "src/components/compensations/Compensations";
import CompensationsPreview from "src/components/compensations/CompensationsPreview";
import CustomerCases from "src/components/customerCases/CustomerCases";
import CustomerCasesPreview from "src/components/customerCases/CustomerCasesPreview";
import CustomErrorMessage from "src/components/customErrorMessage/CustomErrorMessage";
import Legal from "src/components/legal/Legal";
import LegalPreview from "src/components/legal/LegalPreview";
import { homeLink } from "src/components/utils/linkTypes";
import { getDraftModeInfo } from "src/utils/draftmode";
import { fetchPageDataFromParams } from "src/utils/pageData";
import SectionRenderer from "src/utils/renderSection";
Expand Down
6 changes: 3 additions & 3 deletions src/app/(main)/[lang]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Metadata } from "next";

import CustomErrorMessage from "src/blog/components/customErrorMessage/CustomErrorMessage";
import InformationSection from "src/blog/components/informationSection/InformationSection";
import { homeLink } from "src/blog/components/utils/linkTypes";
import CustomErrorMessage from "src/components/customErrorMessage/CustomErrorMessage";
import InformationSection from "src/components/informationSection/InformationSection";
import { homeLink } from "src/components/utils/linkTypes";
import { getDraftModeInfo } from "src/utils/draftmode";
import SectionRenderer from "src/utils/renderSection";
import { fetchSeoData, generateMetadataFromSeo } from "src/utils/seo";
Expand Down
141 changes: 0 additions & 141 deletions src/blog/Blog.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions src/blog/BlogPreview.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions src/blog/blog.module.css

This file was deleted.

55 changes: 0 additions & 55 deletions src/blog/components/hero/BlogHero.stories.tsx

This file was deleted.

57 changes: 0 additions & 57 deletions src/blog/components/hero/BlogHero.tsx

This file was deleted.

Loading

0 comments on commit 9c11a89

Please sign in to comment.