From 3b7dd8cd0125d2949cdd08e0783e3c4cd1c08f87 Mon Sep 17 00:00:00 2001 From: c00b3r Date: Wed, 9 Jul 2025 17:15:46 +0500 Subject: [PATCH] refactor: update localization text and clean up layout components --- public/locales/en.json | 2 +- src/app/(main)/blog/layout.tsx | 13 ++++----- src/app/(main)/blog/page.tsx | 16 ++++++------ src/app/(main)/layout.tsx | 12 ++++----- src/components/Layout/Footer.tsx | 45 +++++++++++++++++--------------- src/components/Layout/Header.tsx | 2 +- 6 files changed, 47 insertions(+), 43 deletions(-) diff --git a/public/locales/en.json b/public/locales/en.json index 3292f5c..bda2651 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -4,7 +4,7 @@ "about": "About", "blog": "Blog", "projects": "Projects", - "submit_request": "Get Started", + "submit_request": "Contact us", "main": "Main Page", "case": "View cases", "contacts": "Contacts" diff --git a/src/app/(main)/blog/layout.tsx b/src/app/(main)/blog/layout.tsx index 0553cc8..8ae7e4a 100644 --- a/src/app/(main)/blog/layout.tsx +++ b/src/app/(main)/blog/layout.tsx @@ -1,14 +1,15 @@ -import { NotFoundPage } from '@/components/pages/NotFoundPage'; -import { StoriesButton } from '@/ui/StoriesButton'; -import { Title } from '@/ui/Title'; -import { Metadata, ResolvingMetadata } from 'next'; +import { NotFoundPage } from "@/components/pages/NotFoundPage"; +import { StoriesButton } from "@/ui/StoriesButton"; +import { Title } from "@/ui/Title"; +import { Metadata, ResolvingMetadata } from "next"; +import { InProcess } from "@/components/pages/InProcess"; export async function generateMetadata( {}, __: ResolvingMetadata ): Promise { return { - title: 'Blog', + title: "Blog", }; } @@ -29,6 +30,6 @@ export default async function BlogLayout({ // //
{children}
// - + ); } diff --git a/src/app/(main)/blog/page.tsx b/src/app/(main)/blog/page.tsx index b15e001..97fa346 100644 --- a/src/app/(main)/blog/page.tsx +++ b/src/app/(main)/blog/page.tsx @@ -1,20 +1,20 @@ -import { api } from '@/api'; -import { ArticlesList } from '@/components/pages/BlogPage/ArticlesList'; -import { ArticlesPageActions } from '@/components/pages/BlogPage/ArticlesPageActions'; -import { IArticle } from '@/types/IArticle'; +import { api } from "@/api"; +import { ArticlesList } from "@/components/pages/BlogPage/ArticlesList"; +import { ArticlesPageActions } from "@/components/pages/BlogPage/ArticlesPageActions"; +import { IArticle } from "@/types/IArticle"; import { dehydrate, HydrationBoundary, QueryClient, -} from '@tanstack/react-query'; -import { Suspense } from 'react'; +} from "@tanstack/react-query"; +import { Suspense } from "react"; export default async function BlogPage() { const queryClient = new QueryClient(); await queryClient.prefetchQuery({ - queryKey: ['articles'], - queryFn: () => api.get('articles').json(), + queryKey: ["articles"], + queryFn: () => api.get("articles").json(), }); return ( diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index 2e58c82..9771f01 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -1,11 +1,11 @@ -import { Feedback } from '@/components/Layout/Feedback'; -import { Footer } from '@/components/Layout/Footer'; -import dynamic from 'next/dynamic'; -import { PropsWithChildren } from 'react'; +import { Feedback } from "@/components/Layout/Feedback"; +import { Footer } from "@/components/Layout/Footer"; +import dynamic from "next/dynamic"; +import { PropsWithChildren } from "react"; export default function MainLayout({ children }: PropsWithChildren) { const Header = dynamic( - () => import('@/components/Layout/Header').then((mod) => mod.Header), + () => import("@/components/Layout/Header").then((mod) => mod.Header), { ssr: false } ); @@ -14,7 +14,7 @@ export default function MainLayout({ children }: PropsWithChildren) {
{children} - + {/* */}