diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..d4ac44f --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,126 @@ + +html { + scroll-behavior: smooth; +} + +body { + font-family: 'Inter', sans-serif; + background-color: #f8f9fa; +} + +.hero { + background: linear-gradient(45deg, #007bff, #82b4ff); + color: white; + padding: 100px 0; + text-align: center; +} + +.feature-item { + background-color: #ffffff; + padding: 30px; + border-radius: 0.5rem; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); + transition: transform 0.2s ease-in-out; + height: 100%; +} + +.feature-item:hover { + transform: translateY(-5px); +} + +.feature-item svg { + color: #007bff; +} + +.chat-widget { + position: fixed; + bottom: 20px; + right: 20px; + background-color: #007bff; + color: white; + width: 60px; + height: 60px; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + box-shadow: 0 4px 8px rgba(0,0,0,0.2); +} + +.chat-widget-container { + position: fixed; + bottom: 20px; + right: 20px; +} + +.chat-window { + display: none; + position: fixed; + bottom: 100px; + right: 20px; + width: 350px; + max-width: 90vw; + background-color: white; + border-radius: 0.5rem; + box-shadow: 0 8px 24px rgba(0,0,0,0.15); + flex-direction: column; +} + +.chat-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem; + border-bottom: 1px solid #eee; + background-color: #f8f9fa; + border-top-left-radius: 0.5rem; + border-top-right-radius: 0.5rem; +} + +.chat-header h5 { + margin: 0; + font-size: 1.1rem; +} + +.chat-body { + padding: 1rem; + overflow-y: auto; + height: 300px; + display: flex; + flex-direction: column; + gap: 0.75rem; +} + +.message { + padding: 0.5rem 1rem; + border-radius: 1rem; + max-width: 80%; + word-wrap: break-word; +} + +.user-message { + background-color: #007bff; + color: white; + align-self: flex-end; + border-bottom-right-radius: 0.25rem; +} + +.bot-message { + background-color: #f1f1f1; + color: #333; + align-self: flex-start; + border-bottom-left-radius: 0.25rem; +} + +.chat-footer { + display: flex; + padding: 1rem; + border-top: 1px solid #eee; +} + +.chat-footer .form-control { + flex-grow: 1; + margin-right: 0.5rem; +} + diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..e943f17 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,62 @@ +document.addEventListener('DOMContentLoaded', function() { + const chatWidget = document.querySelector('.chat-widget'); + const chatWindow = document.querySelector('.chat-window'); + const closeButton = document.querySelector('.chat-header .btn-close'); + const sendButton = document.querySelector('.chat-footer .btn-primary'); + const messageInput = document.querySelector('.chat-footer .form-control'); + const chatBody = document.querySelector('.chat-body'); + + if (chatWidget) { + chatWidget.addEventListener('click', function() { + if (chatWindow.style.display === 'flex') { + chatWindow.style.display = 'none'; + } else { + chatWindow.style.display = 'flex'; + } + }); + } + + if (closeButton) { + closeButton.addEventListener('click', function() { + chatWindow.style.display = 'none'; + }); + } + + function sendMessage() { + const messageText = messageInput.value.trim(); + if (messageText === '') return; + + // Add user message to chat body + const userMessage = document.createElement('div'); + userMessage.classList.add('message', 'user-message'); + userMessage.textContent = messageText; + chatBody.appendChild(userMessage); + + // Clear input + messageInput.value = ''; + + // Scroll to bottom + chatBody.scrollTop = chatBody.scrollHeight; + + // Bot reply + setTimeout(() => { + const botMessage = document.createElement('div'); + botMessage.classList.add('message', 'bot-message'); + botMessage.textContent = 'Thanks for your message! This is a pre-written response. AI integration is coming soon.'; + chatBody.appendChild(botMessage); + chatBody.scrollTop = chatBody.scrollHeight; + }, 500); + } + + if (sendButton) { + sendButton.addEventListener('click', sendMessage); + } + + if (messageInput) { + messageInput.addEventListener('keypress', function(e) { + if (e.key === 'Enter') { + sendMessage(); + } + }); + } +}); diff --git a/index.php b/index.php index 7205f3d..7c241ae 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,79 @@ - - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + Hariom Dhakad + + + + + + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

+ +
+
+

Welcome to Your AI-Powered Assistant

+

Ask questions, generate images, and interact with voice commands.

+ Get Started +
-
- + +
+

Features

+
+
+
+ +
AI Chat
+

Get instant answers from our smart chatbot.

+
+
+
+
+ +
Image Generation
+

Create images from text descriptions.

+
+
+
+
+ +
Voice Control
+

Interact with the assistant using your voice.

+
+
+
+
+ +
+
+ +
+
+
+
AI Assistant
+ +
+
+
+ Hello! How can I help you today? +
+
+ +
+
+ + + - + \ No newline at end of file