fix: add scroll animation, customer flow, and rename to Restroly #32#204
fix: add scroll animation, customer flow, and rename to Restroly #32#204HarshParmar029 wants to merge 2 commits into
Conversation
) ## Changes Made - Added new Customer Flow section in "How It Works" - Customer Journey: Scan QR → Browse Menu → Add to Cart → Place Order → Live Updates → UPI Payment - Added smooth scroll animation with connecting line - Fixed missing visual element at bottom on scroll - Fully responsive Fixes rdodiya#32
|
Hi @HarshParmar029 , Reference image for coloura
|
There was a problem hiding this comment.
Pull request overview
This PR updates the public landing page “How It Works” section to include a dual flow (restaurant owners + customers) with scroll-triggered animations and a connecting line, and aligns the frontend lockfile dependencies with the intended router/tooling versions.
Changes:
- Added a new scroll-animated “For Customers” flow (steps + connecting line) to the Landing page.
- Restructured the “How It Works” section into separate “For Restaurant Owners” and “For Customers” flows.
- Updated
package-lock.jsonto usereact-router-dom@6.xand refresh related dependency resolutions.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| RestroHub-FrontEnd/src/pages/public/Landing.jsx | Adds the dual-flow “How It Works” UI plus scroll-triggered animations and connecting line behavior. |
| RestroHub-FrontEnd/package-lock.json | Updates resolved dependency graph (notably react-router-dom to v6) and tooling package resolutions. |
Files not reviewed (1)
- RestroHub-FrontEnd/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| // Animate the connecting line | ||
| const line = document.getElementById('customer-connect-line'); | ||
| if (line) { | ||
| setTimeout(() => { | ||
| line.style.height = '100%'; |
| // Observe all scroll-animate elements | ||
| document.querySelectorAll('.scroll-animate').forEach((el) => { | ||
| observer.observe(el); | ||
| }); |
| {/* Custom Styles for Animation */} | ||
| <style dangerouslySetInnerHTML={{ | ||
| __html: ` |
| return () => obs.disconnect(); | ||
| }, []); | ||
|
|
||
| // Scroll Animation for Customer Flow (user requested insertion near top useEffects) |
| "engines": { | ||
| "node": "^14.18.0 || >=16.0.0" | ||
| "node": "^20.19.0 || >=22.12.0" | ||
| }, |
|
Closing this PR as new raised for same #214 |

Issue Link
Closes #32
Changes Made
Type of Change
Testing Performed
Frontend Testing
Functionality Demo
Screen.Recording.restrohub.mp4