From 041638addebc10e5d1a14b21aa10febfd2cacc05 Mon Sep 17 00:00:00 2001 From: akash Date: Sat, 27 Sep 2025 15:01:38 +0530 Subject: [PATCH] Menu page arrow responsive and contact page form and image equal height updated --- app/blog/[slug]/page.js | 30 +++++++-- app/contact/page.js | 124 ++++++++++++++++++++++------------- components/RestaurantMenu.js | 2 +- layout/Footer.js | 2 +- public/assets/css/style.css | 97 +++++++++++++++++++++++---- utility/constant.utils.js | 12 +++- 6 files changed, 197 insertions(+), 70 deletions(-) diff --git a/app/blog/[slug]/page.js b/app/blog/[slug]/page.js index 32c7803..568cdf0 100644 --- a/app/blog/[slug]/page.js +++ b/app/blog/[slug]/page.js @@ -1,8 +1,24 @@ -// app/blog/[slug]/page.tsx +// app/blog/[slug]/page.js import PageBanner from "@/components/PageBanner"; import WellFoodLayout from "@/layout/WellFoodLayout"; import { Blog } from "@/utility/constant.utils"; +export async function generateMetadata({ params }) { + const blog = Blog.find((item) => item.slug === params.slug); + + if (!blog) { + return { + title: "Blog not found", + description: "The blog you are looking for does not exist.", + }; + } + + return { + title: blog.metatitle, + description: blog.metadescription, + }; +} + export async function generateStaticParams() { return Blog.map((item) => ({ slug: item.slug, @@ -11,7 +27,6 @@ export async function generateStaticParams() { export default function BlogPage({ params }) { const { slug } = params; - const blog = Blog.find((item) => item.slug === slug); if (!blog) { @@ -20,7 +35,10 @@ export default function BlogPage({ params }) { return ( - +
@@ -33,7 +51,11 @@ export default function BlogPage({ params }) { data-aos-duration={1500} data-aos-offset={50} > - Blog Standard + {blog.title}
{ - return ( - -
+ + + {/* === Contact Info Cards === */} +
-
{ contact us

Get In Touch With Us

-
-
-
-
-
- Location -

7166 Airport Road, Mississauga, Ontario L4T 2H2, Canada.

+ + {/* Cards Row with Spacing */} +
+
+
+
+
-
-
-
-
-
- Email Address + + Call Us +

- info@shivasakthi.ca -
-
+ 905 677 3555

-
-
-
+ +
+
+
+ +
- Call Us + + Email Address +

- 905 677 3555 -
-
+ info@shivasakthi.ca +

+
+
+
+ +
+
+
+ +
+
+ + Location + +

+ 7166 Airport Road, Mississauga, Ontario L4T 2H2, Canada.

-
+ {/* === Contact Form & Image (Equal Height) === */}
-
-
+
+
- -
- - Contact ShivaSakthi - +
+ Contact ShivaSakthi
- +
+ +
-
@@ -113,6 +142,7 @@ const page = () => {
+ {/* === Google Map === */}
diff --git a/components/RestaurantMenu.js b/components/RestaurantMenu.js index 0f37588..8be1eed 100644 --- a/components/RestaurantMenu.js +++ b/components/RestaurantMenu.js @@ -1784,7 +1784,7 @@ const RestaurantMenu = ({ menus }) => {
{/* margin-end to add space */}
- {menu.title} + {menu.title}
diff --git a/layout/Footer.js b/layout/Footer.js index 374c5dc..3f9ccb0 100644 --- a/layout/Footer.js +++ b/layout/Footer.js @@ -125,7 +125,7 @@ const DefaultFooter = () => {

- Copyright {new Date().getFullYear()} © Shivas Dosa Restaurant. Powered by MetatronCube. All Right Reserved.{" "} + Copyright {new Date().getFullYear()} © Shivas Dosa Restaurant. Powered by MetatronCube. All Right Reserved.{" "}

diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 92a37ee..687eb04 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -9,8 +9,8 @@ Note: This is Main Style CSS File. */ /*---------------------------------------------------------------------- - CSS INDEX - ---------------------- +CSS INDEX +---------------------- ## Default Style ## Common Classes @@ -783,6 +783,8 @@ a.theme-btn.style-three:hover { .food-menu-tab .nav-link { padding-top: 12px; padding-bottom: 8px; + padding-left: 12px; + padding-right: 12px; } } @@ -805,20 +807,20 @@ a.theme-btn.style-three:hover { } .food-menu-tab .nav-link span { - font-size: 18px; + font-size: 16px; margin-top: 10px; } @media only screen and (max-width: 991px) { .food-menu-tab .nav-link span { - font-size: 16px; + font-size: 15px; } } @media only screen and (max-width: 575px) { .food-menu-tab .nav-link span { margin-top: 0; - font-size: 16px; + font-size: 15px; } } @@ -946,20 +948,54 @@ a.theme-btn.style-three:hover { /* Slick Arrows */ .slick-arrow { + position: absolute; + top: 40%; + right: 100%; + transform: translateY(-50%); font-size: 20px; -webkit-transition: 0.5s; -o-transition: 0.5s; transition: 0.5s; padding-top: 2px; - width: 65px; - height: 65px; - background: white; - line-height: 65px; + width: 40px; + height: 40px; + background: black; + line-height: 40px; border-radius: 50%; text-align: center; - color: var(--heading-color); + color: #ffff; -webkit-box-shadow: 0px 4px 60px rgba(0, 0, 0, 0.15); box-shadow: 0px 4px 60px rgba(0, 0, 0, 0.15); + z-index: 10; + cursor: pointer; +} + +@media (max-width: 1024px) { + + .slick-arrow { + right: 98%; + } +} + +@media (max-width: 992px) { + + .slick-arrow { + right: 97%; + } +} + +@media (max-width: 500px) { + + .slick-arrow { + right: 92%; + } +} + +@media (max-width: 992px) { + + .slick-prev { + left: -1% !important; + } } .slick-arrow:focus, @@ -4549,6 +4585,12 @@ h6, } } +.new-class{ + + font-size: 16px; + +} + .main-header .logo { z-index: 9; padding: 2px 0; @@ -8206,6 +8248,12 @@ h6, margin-left: 20px; } +@media(max-width:425px) { + .food-menu-item.style-two .content h5 .price { + margin-left: 5px; +} +} + .food-menu-item.style-two .content p { margin-bottom: 0; } @@ -8225,7 +8273,11 @@ h6, } } - +@media(max-width:425px) { + .food-menu-item.style-two .content h5 { + font-size: 17px; + } +} .popular-menu-wrap { @@ -12281,6 +12333,8 @@ blockquote .blockquote-footer:before { .slick-prev, .slick-next { position: absolute; + top: 50%; + transform: translateY(-50%); width: 40px; height: 40px; background: #222222; @@ -12289,16 +12343,18 @@ blockquote .blockquote-footer:before { align-items: center; justify-content: center; border-radius: 50%; + z-index: 10; } + .slick-prev { - left: 0%; - top: 25%; + left: -3%; + top: 40%; } .slick-next { right: -3% !important; - top: 25% + top: 40% } .about-biryani-category-1 { @@ -12315,6 +12371,13 @@ blockquote .blockquote-footer:before { right: -40px !important; } +@media (max-width: 1200px) { + + .custom-next-arrow { + right: 0px !important; + } +} + /* For screen widths 1024px and below */ @media (max-width: 1024px) { .custom-prev-arrow { @@ -12352,4 +12415,10 @@ blockquote .blockquote-footer:before { .about-biryani-category-1 { margin-bottom: 20px; } +} + +@media (max-width: 320px) { + .slick-arrow { + right: 87%; + } } \ No newline at end of file diff --git a/utility/constant.utils.js b/utility/constant.utils.js index b8b2e2d..87d0c22 100644 --- a/utility/constant.utils.js +++ b/utility/constant.utils.js @@ -3,8 +3,10 @@ export const Blog = [ id: 1, slug: "the-flavors-of-north-india-more-than-just-curries", image: "/assets/images/blog/blog-1.webp", - bigImage:"/assets/images/blog/blog-large-1.webp", + bigImage: "/assets/images/blog/blog-large-1.webp", title: "The Flavors of North India: More Than Just Curries", + metatitle: "Flavors of North India: Beyond Just Curries | Shiva Shakthi", + metadescription: "Explore the aromatic breads, tandoori delights, rice dishes & hearty vegetarian staples that make North Indian cuisine so much more than just curries.", user: "Admin", date: "05 Dec 2024", short_des: "Exploring the Bread, Tandoor, and Delights of North Indian Cuisine 'North Indian cuisine is not only about rich curries but also a vibrant array of breads, tandoor-cooked", @@ -123,8 +125,10 @@ export const Blog = [ id: 2, slug: "the-secret-to-perfect-north-indian-curries", image: "/assets/images/blog/blog-2.webp", - bigImage:"/assets/images/blog/blog-large-2.webp", + bigImage: "/assets/images/blog/blog-large-2.webp", title: "The Secret to Perfect North Indian Curries", + metatitle: "The Secret to Perfect North Indian Curries | Shiva Shakthi", + metadescription: "Discover how Shiva Shakthi crafts irresistible North Indian curries — from slow-cooked bases and toasted spices to creamy textures and balanced flavors.", user: "Admin", date: "05 Dec 2024", short_des: "Unlocking the Flavors of Authentic North Indian CuisineNorth Indian curries are the heart and soul of Indian cuisine, known for their rich textures, deep flavors, and", @@ -229,8 +233,10 @@ export const Blog = [ id: 3, slug: "the-rich-history-of-south-indian-cuisine", image: "/assets/images/blog/blog-3.webp", - bigImage:"/assets/images/blog/blog-large-3.webp", + bigImage: "/assets/images/blog/blog-large-3.webp", title: "The Rich History of South Indian Cuisine", + metatitle: "The Rich History of South Indian Cuisine | Shiva Sakthi", + metadescription: "Explore the rich history of South Indian cuisine from dosa and sambar origins to regional diversity & authentic flavors at Shiva Sakthi’s culinary journey.", user: "Admin", date: "05 Dec 2024", short_des: "A Journey Through Time: The Story of South Indian Cuisine",