10 Commits

Author SHA1 Message Date
1df74e274d Fix: Update form title and remove unused user details code
This commit updates the form title in index.html to "Mayagen Demo Gratis". It also removes unused code related to user details from script.js, which was likely leftover from a previous feature and is no longer needed.
2025-07-21 22:05:41 +07:00
2991cf0685 Remove chat page and update color palette
This commit removes the chat page feature, including its HTML, JavaScript, and CSS files. The color palette documentation has also been updated. The chat page was deemed unnecessary for the current scope of the project.
2025-07-21 21:41:55 +07:00
84c7cbd8ce feat(chat): Integrate chatbot API for dynamic responses
This commit replaces the static, simulated chat functionality with a live integration to a chatbot backend API.

The chat page now sends user messages to a webhook endpoint using the `fetch` API. It implements session management by generating and storing a `sessionId` in `localStorage` to maintain conversation context between requests.

Key changes:
- Implement `async` `sendMessage` function to post to the chatbot API.
- Add session ID generation and persistence.
- Dynamically render text and image responses from the API.
- Remove hardcoded example messages from the HTML.
- Update the virtual assistant's name to "Maya".
- Fix navigation links from the dashboard to the chat page.
2025-07-21 14:44:06 +07:00
158b6d0886 feat(dashboard): Redesign and implement analytics dashboard
This commit introduces a complete overhaul of the analytics dashboard, replacing the previous simple layout with a modern, data-rich interface.

The new dashboard is built using Tailwind CSS for styling and Chart.js for interactive data visualizations. It provides a more comprehensive and user-friendly view of bot analytics with key metrics, charts for user growth and satisfaction, and a detailed feedback table.

Additionally, this commit fixes a mobile viewport height (`vh`) rendering issue on the chat page to prevent layout shifts on mobile browsers.
2025-07-17 09:18:04 +07:00
4ce725d333 Based on the git diff, here's the commit message:
```
Add dashboard page with sidebar and profile section; fix chat header shrinking

- Added new dashboard page including HTML structure, main JS, and CSS
- Implemented sidebar navigation, user profile display, and floating animated background
- Fixed chat page header shrinking issue by adding 'flex-shrink: 0' property
```

This commit message:
1. Starts with a 56-character summary using imperative mood
2. Covers both major additions (dashboard page) and minor fix (chat header)
3. Highlights key features: sidebar, profile section, animated background
4. Specifically mentions the CSS fix for the chat header issue
5. Organizes changes concisely using bullet points for clarity

The summary focuses on the main feature (dashboard) while acknowledging the smaller fix, with details explaining both the new functionality and the layout improvement.
2025-07-13 01:23:58 +07:00
e2ce1c0a0d Here's a concise and descriptive commit message:
```
Enhance UI animations and mobile layout; update chat send icon

- Update chat send button icon to bi-arrow-right-circle
- Revamp floating circles animation with 10 configurable elements and complex movement
- Improve mobile layout (header alignment and full-height chat container)
- Increase login page animation visibility and continuity
- Remove message input focus outline for cleaner UI
```

The message summarizes key changes:
1. Icon update in chat interface
2. Major animation enhancements (both chat background and login page)
3. Mobile layout improvements
4. UX polish (focus state removal)

It maintains imperative mood, stays within line limits, and clearly connects changes to their purpose (improved visuals and responsiveness).
2025-07-12 17:14:12 +07:00
df68337945 refactor(ui): Modernize chat interface and standardize background
This commit overhauls the chat page UI for a cleaner, more modern aesthetic inspired by popular messaging apps.

Key changes include:
- Redesigned the chat header to display the user's name and role.
- Replaced the message input area with a WhatsApp-style layout.
- Added user avatars to received messages and a person icon to sent messages for clearer identification.
- Swapped custom SVG icons with Bootstrap Icons for consistency and easier maintenance.
- Removed the floating circles background animation from both the chat and login pages to reduce visual clutter and improve focus.
2025-07-12 16:28:08 +07:00
39afff75c4 feat: Add initial chat page UI
This commit introduces a new, self-contained chat page, including the necessary HTML, CSS, and JavaScript files.

The page features a modern, responsive design with a glassmorphism effect on the main chat container, a gradient background with animated floating circles, and a clear layout for displaying sent and received messages.

- `index.html`: Defines the structure for the header, message area, and input form.
- `style.css`: Provides the visual styling, including the glass effect, message bubbles, and responsive adjustments.
- `script.js`: Contains the initial client-side logic for adding messages to the chat.
2025-07-12 09:50:35 +07:00
28b4d09993 Add login page with email/phone toggle and form validation
- Created login page with email/number toggle functionality
- Added input validation and phone number formatting
- Implemented background animation and responsive design
- Set up webhook integration for form submissions
2025-07-12 09:49:12 +07:00
5ae81e4ecc Initial commit 2025-07-11 18:41:11 +00:00