From 8011104658d75fd615573dffbbb425ac45381fcf Mon Sep 17 00:00:00 2001 From: Mahyar Khanbolooki Date: Tue, 15 Jul 2025 00:32:14 +0330 Subject: [PATCH] add: about page --- src/app/[name]/about/page.tsx | 142 ++++++++++++++++++ src/app/globals.css | 4 - src/components/navigation/BottomNavBar.tsx | 2 + .../wrapper/ClientMenuRouteWrapper.tsx.tsx | 8 +- 4 files changed, 148 insertions(+), 8 deletions(-) create mode 100644 src/app/[name]/about/page.tsx diff --git a/src/app/[name]/about/page.tsx b/src/app/[name]/about/page.tsx new file mode 100644 index 0000000..a6d8ba7 --- /dev/null +++ b/src/app/[name]/about/page.tsx @@ -0,0 +1,142 @@ +import { ArrowDown2, CallCalling, Clock, Gallery, Instagram, Location, MouseCircle, Whatsapp } from 'iconsax-react'; +import { Metadata } from 'next'; +import Image from 'next/image'; +import React from 'react' + +type Params = { name: string }; + +export async function generateMetadata({ params }: { params: Params }): Promise { + const { name } = await params; + const data = { title: 'درباره ما | ' + name, description: 'همه چیز درباره مجموعه ' + name } + + return { + title: data.title || `About | ${name}`, + description: data.description || `This is the about-us page for ${name}.`, + }; +} + +export async function generateStaticParams() { + return [{ name: 'zhivan' }, { name: 'dake' }]; +} + +function AboutIndex() { + return ( +
+
+
+
+
کافه رستوران ژیوان
+
تاسیس:1392
+
نوع محصولات: ایرانی، خارجی
+
+
+ logo +
+
+
+
درباره مجموعه
+

+ لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده از طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است، و برای شرایط فعلی تکنولوژی مورد نیاز، و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد +

+
+ + عکس های رستوران +
+
+
+ +
+
ارتباط
+
+ + + + + + + + + + + + +
+
+ +
+
آدرس
+
خیابان دانشگاه روبروی بیمارستان خوانساری ساختمان مهر
+
+ + عکس های رستوران +
+
+ +
+
+ +
باز
+
+
امروز از ساعت 10:30 تا 17:30
+
+
+ +
+
+ +
+
+ شنبه +
+
+ 10:30 - 17:30 +
+
+ +
+
+ شنبه +
+
+ 10:30 - 17:30 +
+
+ +
+
+ شنبه +
+
+ 10:30 - 17:30 +
+
+ +
+
+ شنبه +
+
+ 10:30 - 17:30 +
+
+
+ ) +} + + +export default AboutIndex \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index e45ca82..2863116 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -89,10 +89,6 @@ input[type="password"] { } @theme inline { - --radius-sm: calc(var(--radius) - 4px); - --radius-md: calc(var(--radius) - 2px); - --radius-lg: var(--radius); - --radius-xl: calc(var(--radius) + 4px); --color-background: var(--background); --color-foreground: var(--foreground); --color-card: var(--card); diff --git a/src/components/navigation/BottomNavBar.tsx b/src/components/navigation/BottomNavBar.tsx index ef20dd8..13f9104 100644 --- a/src/components/navigation/BottomNavBar.tsx +++ b/src/components/navigation/BottomNavBar.tsx @@ -1,3 +1,5 @@ +'use client'; + import React from 'react' import BottomNavLink from './BottomNavLink' import BottomNavHighlightLink from './BottomNavLinkBig' diff --git a/src/components/wrapper/ClientMenuRouteWrapper.tsx.tsx b/src/components/wrapper/ClientMenuRouteWrapper.tsx.tsx index 3496b6a..99f74ca 100644 --- a/src/components/wrapper/ClientMenuRouteWrapper.tsx.tsx +++ b/src/components/wrapper/ClientMenuRouteWrapper.tsx.tsx @@ -36,15 +36,15 @@ function ClientMenuRouteWrapper({ children }: Props) { // }, [location]) return ( -
-
+
+
-
+
{children}
-