diff --git a/src/app/page.tsx b/src/app/page.tsx index 2506dfc..6bbb4ab 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,6 +1,6 @@ -// ... existing imports ... import Header from '@/components/layout/header'; -import { t } from '@/locales/translates'; +import AboutTopInfo from '@/components/pages/about/TopInfo'; +import HomePageProducts from '@/components/pages/home/Products'; async function getData() { await new Promise((resolve) => setTimeout(resolve, 1000)); @@ -13,6 +13,8 @@ export default async function Home() { return (
+ +
- ) + ); } diff --git a/src/components/layout/sectionTitle/index.tsx b/src/components/layout/sectionTitle/index.tsx index ec31a5e..dc424f4 100644 --- a/src/components/layout/sectionTitle/index.tsx +++ b/src/components/layout/sectionTitle/index.tsx @@ -4,13 +4,16 @@ export default function SectionTitle({ title, description, description_bold, + reverseColor, }: ISectionTitleProps) { return ( -
-
-

{title}

+
+
+

{title}

-

+

{description} {description_bold && ( {description_bold} diff --git a/src/components/layout/sectionTitle/sectionTitle.d.ts b/src/components/layout/sectionTitle/sectionTitle.d.ts index 278436b..2a6d00e 100644 --- a/src/components/layout/sectionTitle/sectionTitle.d.ts +++ b/src/components/layout/sectionTitle/sectionTitle.d.ts @@ -2,4 +2,5 @@ export interface ISectionTitleProps { title: string; description: string; description_bold?: string; + reverseColor?: boolean; } diff --git a/src/components/pages/about/TopInfo.tsx b/src/components/pages/about/TopInfo.tsx index 74f44f7..9625a0f 100644 --- a/src/components/pages/about/TopInfo.tsx +++ b/src/components/pages/about/TopInfo.tsx @@ -23,7 +23,7 @@ export default function AboutTopInfo() {
@@ -37,7 +37,7 @@ export default function AboutTopInfo() {
diff --git a/src/components/pages/home/Products.tsx b/src/components/pages/home/Products.tsx new file mode 100644 index 0000000..64d2dd0 --- /dev/null +++ b/src/components/pages/home/Products.tsx @@ -0,0 +1,63 @@ +import images from '@/assets/images/images'; +import SectionTitle from '@/components/layout/sectionTitle'; +import { t } from '@/locales/translates'; + +export default function HomePageProducts() { + const productCategories = [ + { + title: 'Brick Categories', + count: 30, + }, + { + title: 'Brick Categories', + count: 30, + }, + { + title: 'Brick Categories', + count: 30, + }, + { + title: 'Brick Categories', + count: 30, + }, + ]; + + return ( +
+
+
+
+ +

+ {t('com_home_products_description') as string} +

+
+
+ +
+
+ {productCategories.map((category, index) => ( +
+

+ {category.title} +

+

+ {`Includes ${category.count} Products`} +

+
+ ))} +
+
+
+ ); +} diff --git a/src/locales/en.ts b/src/locales/en.ts index 3e3689d..58e315a 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -29,6 +29,12 @@ const en = { com_about_info_achievements_2: 'Advanced Automation', com_about_info_achievements_3: 'Efficient Production Processes', com_about_info_achievements_4: 'Reliable Delivery Services', + + com_home_products_title: 'The Qualified bricks for Your Projects', + com_home_products_description: + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ', + + page_products_title: 'Products', }; export default en;