Skip to content

Commit 89a2b64

Browse files
authored
Merge pull request #15 from BlendRush/P_Dev
Added about us page
2 parents ffdc43e + 4ddf63d commit 89a2b64

File tree

5 files changed

+123
-1
lines changed

5 files changed

+123
-1
lines changed

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import ForgotPW from './Pages/forgot-pw.jsx';
88
import Menu from './Pages/Menu.jsx';
99
import Cart from './Pages/Cart.jsx';
1010
import Orders from './Pages/Order.jsx';
11+
import About from './Pages/About.jsx'; // Assuming you have an About page
1112

1213
export default function App() {
1314
return (
@@ -20,6 +21,7 @@ export default function App() {
2021
<Route path="/menu" element={<Menu />} />
2122
<Route path="/cart" element={<Cart />} />
2223
<Route path="/orders" element={<Orders />} />
24+
<Route path="/about" element={<About />} />
2325

2426
{/* Add other routes as needed */}
2527
{/* Example: <Route path="/profile" element={<Profile />} /> */}

src/Component/N-SearchBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function NavBar({ search = "", onSearchChange }) {
2020
try {
2121
localStorage.removeItem("auth:token"); // adjust if your auth key differs
2222
} catch {}
23-
navigate("/sign-in");
23+
navigate("/home");
2424
};
2525

2626
return (

src/Pages/About.jsx

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// src/Pages/About.jsx
2+
import React from "react";
3+
import { Link } from "react-router-dom";
4+
import AboutBg from "../assets/AboutBg.png"; // <-- put your about/background image here
5+
6+
export default function About() {
7+
return (
8+
<div className="min-h-screen pt-28 relative">
9+
{/* Background image */}
10+
<div
11+
className="absolute inset-0 -z-10"
12+
style={{
13+
backgroundImage: `url(${AboutBg})`,
14+
backgroundSize: "cover",
15+
backgroundPosition: "center",
16+
}}
17+
/>
18+
{/* Soft overlay for readability */}
19+
<div className="absolute inset-0 -z-10 bg-white/70 backdrop-blur-[1px]" />
20+
21+
{/* Main content */}
22+
<main className="mx-auto max-w-3xl px-4 pb-16">
23+
<h1
24+
className="text-center text-4xl sm:text-5xl lg:text-6xl xl:text-7xl font-extrabold tracking-tight
25+
bg-gradient-to-r from-emerald-700 via-emerald-600 to-emerald-500
26+
bg-clip-text text-transparent"
27+
>
28+
About blendRUSH
29+
</h1>
30+
31+
<p className="mt-10 text-slate-700">
32+
blendRUSH is a small, quality-obsessed juice bar focused on fresh smoothies,
33+
cold-pressed juices, and nourishing bowls. We keep it simple: real fruit,
34+
real flavor, blended to order—fast.
35+
</p>
36+
37+
<p className="mt-3 text-slate-700">
38+
Our menu is built around seasonal produce, balanced recipes, and feel-good
39+
nutrition. Whether you’re post-workout, mid-study, or on the go, we’ve got a
40+
cup that matches your vibe.
41+
</p>
42+
43+
<h2 className="mt-6 text-xl font-bold text-slate-900">What we stand for</h2>
44+
<ul className="mt-2 list-disc pl-5 text-slate-700 space-y-1">
45+
<li>100% natural ingredients—whole fruit and greens</li>
46+
<li>No added sugar or syrups; sweetness comes from fruit</li>
47+
<li>Made-to-order for peak freshness and flavor</li>
48+
<li>Eco-conscious packaging where possible</li>
49+
</ul>
50+
51+
<h2 className="mt-6 text-xl font-bold text-slate-900">Sourcing & sustainability</h2>
52+
<p className="mt-2 text-slate-700">
53+
We prioritize local markets and seasonal produce when possible, reduce waste
54+
with smart prep, and use recyclable/compostable cups where facilities exist.
55+
</p>
56+
57+
<div className="mt-6 grid grid-cols-1 sm:grid-cols-2 gap-4 rounded-xl border bg-white p-4">
58+
<div>
59+
<h3 className="font-semibold text-slate-900">Hours</h3>
60+
<p className="text-slate-700 text-sm mt-1">
61+
Mon–Fri: 8:00–18:00<br />
62+
Sat–Sun: 9:00–17:00
63+
</p>
64+
</div>
65+
<div>
66+
<h3 className="font-semibold text-slate-900">Contact</h3>
67+
<p className="text-slate-700 text-sm mt-1">
68+
hello@blendrush.example<br />
69+
+94 71 234 5678
70+
</p>
71+
</div>
72+
</div>
73+
74+
<div className="mt-8">
75+
<Link
76+
to="/menu"
77+
className="inline-flex items-center rounded-lg bg-emerald-600 px-4 py-2 text-white font-medium hover:bg-emerald-700"
78+
>
79+
Browse Menu
80+
</Link>
81+
</div>
82+
</main>
83+
84+
{/* Simple footer */}
85+
<footer className="border-t">
86+
<div className="mx-auto max-w-6xl px-4 py-8">
87+
<div className="flex flex-col sm:flex-row items-center sm:items-start justify-between gap-6">
88+
<div className="flex items-center gap-2">
89+
<span className="inline-grid place-items-center h-9 w-9 rounded-xl bg-emerald-500 text-white font-black">
90+
bR
91+
</span>
92+
<div className="leading-tight">
93+
<div className="text-base font-extrabold tracking-tight text-emerald-600">
94+
blend<span className="text-slate-800">RUSH</span>
95+
</div>
96+
<p className="text-xs text-slate-500">Fresh. Fast. Fruit-first.</p>
97+
</div>
98+
</div>
99+
100+
<nav className="text-sm text-slate-700 flex flex-wrap gap-4">
101+
<Link className="hover:text-slate-900" to="/home">Home</Link>
102+
<Link className="hover:text-slate-900" to="/menu">Menu</Link>
103+
<Link className="hover:text-slate-900" to="/orders">Orders</Link>
104+
<Link className="hover:text-slate-900" to="/about">About</Link>
105+
</nav>
106+
107+
<div className="text-sm text-slate-600">
108+
<div>hello@blendrush.example</div>
109+
<div>+94 71 234 5678</div>
110+
</div>
111+
</div>
112+
113+
<div className="mt-6 text-xs text-slate-500 text-center sm:text-left">
114+
© {new Date().getFullYear()} blendRUSH. All rights reserved.
115+
</div>
116+
</div>
117+
</footer>
118+
</div>
119+
);
120+
}

src/assets/About.png

1.6 MB
Loading

src/assets/AboutBg.png

1.38 MB
Loading

0 commit comments

Comments
 (0)