From 0fab8b6d42eb21a02b0ca2fef218e04debbc713e Mon Sep 17 00:00:00 2001 From: Unchained Date: Fri, 6 Mar 2026 18:51:38 +0200 Subject: [PATCH] Restore multilingual support: / for sr, /en for en with browser detection --- src/app/en/about/page.tsx | 66 ++++++++++++++++ src/app/en/contact/page.tsx | 114 ++++++++++++++++++++++++++++ src/app/en/page.tsx | 77 +++++++++++++++++++ src/app/en/products/[slug]/page.tsx | 71 +++++++++++++++++ src/app/en/products/page.tsx | 46 +++++++++++ src/i18n/routing.ts | 5 +- src/middleware.ts | 7 +- 7 files changed, 381 insertions(+), 5 deletions(-) create mode 100644 src/app/en/about/page.tsx create mode 100644 src/app/en/contact/page.tsx create mode 100644 src/app/en/page.tsx create mode 100644 src/app/en/products/[slug]/page.tsx create mode 100644 src/app/en/products/page.tsx diff --git a/src/app/en/about/page.tsx b/src/app/en/about/page.tsx new file mode 100644 index 0000000..86afd09 --- /dev/null +++ b/src/app/en/about/page.tsx @@ -0,0 +1,66 @@ +import Header from "@/components/layout/Header"; +import Footer from "@/components/layout/Footer"; + +export const metadata = { + title: "About - ManoonOils", + description: "Learn about ManoonOils - our story, mission, and commitment to natural beauty.", +}; + +export default function AboutPage() { + return ( +
+
+ +
+
+

+ Our Story +

+ +
+

+ ManoonOils was born from a passion for natural beauty and the belief + that the best skincare comes from nature itself. Our journey began with + a simple question: how can we create products that truly nurture both + hair and skin? +

+ +

+ We believe in the power of natural ingredients. Every oil in our + collection is carefully selected for its unique properties and + benefits. From nourishing oils that restore hair vitality to serums + that rejuvenate skin, we craft each product with love and attention + to detail. +

+ +

+ Our Mission +

+

+ Our mission is to provide premium quality, natural products that + enhance your daily beauty routine. We are committed to: +

+
    +
  • Using only the finest natural ingredients
  • +
  • Cruelty-free and ethical production
  • +
  • Sustainable packaging practices
  • +
  • Transparency in our formulations
  • +
+ +

+ Handmade with Love +

+

+ Every bottle of ManoonOils is handcrafted with care. We small-batch + produce our products to ensure the highest quality and freshness. + When you use ManoonOils, you can feel confident that you're using + something made with genuine care and expertise. +

+
+
+
+ +
+
+ ); +} diff --git a/src/app/en/contact/page.tsx b/src/app/en/contact/page.tsx new file mode 100644 index 0000000..3507e95 --- /dev/null +++ b/src/app/en/contact/page.tsx @@ -0,0 +1,114 @@ +"use client"; + +import { useState } from "react"; +import Header from "@/components/layout/Header"; +import Footer from "@/components/layout/Footer"; + +export default function ContactPage() { + const [formData, setFormData] = useState({ + name: "", + email: "", + message: "", + }); + const [submitted, setSubmitted] = useState(false); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + setSubmitted(true); + }; + + return ( +
+
+ +
+
+

+ Contact Us +

+ +

+ Have questions? We'd love to hear from you. +

+ + {submitted ? ( +
+

Thank you for your message!

+

We'll get back to you soon.

+
+ ) : ( +
+
+ + setFormData({ ...formData, name: e.target.value })} + className="w-full px-4 py-3 border border-border focus:outline-none focus:border-foreground" + /> +
+ +
+ + setFormData({ ...formData, email: e.target.value })} + className="w-full px-4 py-3 border border-border focus:outline-none focus:border-foreground" + /> +
+ +
+ +