forked from sudiptasarkar011/FusionVision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
207 lines (191 loc) · 13.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="Logo.png">
<title>Fusion Vision</title>
<!-- Add Inter font -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet">
</head>
<body>
<header class="header" style="background: rgba(255, 255, 255, 0.5);">
<div class="logo-section">
<img src="Logo.png" alt="Fusion Vision Logo" class="logo zoomable">
<h1 class="brand-title">Fusion Vision</h1>
</div>
<nav class="nav-links">
<a href="index.html" class="nav-link active">Home</a>
<a href="about.html" class="nav-link">About</a>
<a href="features.html" class="nav-link">Features</a>
<a href="contact.html" class="nav-link">Contact</a>
<a href="reviews.html" class="nav-link">Reviews</a>
</nav>
<div class="auth-buttons">
<button class="btn-secondary" id="loginButton">Sign In</button>
<button class="btn-primary" id="registerButton">Get Started</button>
</div>
</header>
<main class="main-content">
<section class="hero-section" style="background: rgba(255, 255, 255, 0.75); padding: 10px; border-radius: 10px;">
<h2 class="hero-title">Fusion Vision</h2>
<p class="hero-subtitle">Experience real-time object detection powered by advanced AI technology.</p>
<div class="center-button">
<button class="btn-primary btn-large" id="startScanning" onclick="window.location.href='camera.html'">
Start Scanning
<svg class="arrow-icon" viewBox="0 0 24 24">
<path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/>
</svg>
</button>
</div>
</section>
</main>
<!-- Scroll-to-Top Button -->
<button id="scrollToTopBtn" class="scroll-to-top" title="Go to top">↑</button>
<!-- Modern Modal Design -->
<div class="modal" id="loginModal">
<div class="modal-content">
<div class="modal-header">
<h2>Welcome Back</h2>
<button class="close-button" onclick="closeModal('loginModal')">×</button>
</div>
<form id="loginForm" class="auth-form">
<div class="form-group">
<label for="loginEmail">Email</label>
<input type="email" id="loginEmail" placeholder="Enter your email" required>
</div>
<div class="form-group">
<label for="loginPassword">Password</label>
<input type="password" id="loginPassword" placeholder="Enter your password" required>
</div>
<button type="submit" class="btn-primary btn-full">Sign In</button>
<p class="form-footer">
Don't have an account?
<a href="#" onclick="switchModal('loginModal', 'registerModal')">Sign up</a>
</p>
</form>
</div>
</div>
<div class="modal" id="registerModal">
<div class="modal-content">
<div class="modal-header">
<h2>Create Account</h2>
<button class="close-button" onclick="closeModal('registerModal')">×</button>
</div>
<form id="registerForm" class="auth-form">
<div class="form-group">
<label for="registerName">Name</label>
<input type="text" id="registerName" placeholder="Enter your name" required>
</div>
<div class="form-group">
<label for="registerEmail">Email</label>
<input type="email" id="registerEmail" placeholder="Enter your email" required>
</div>
<div class="form-group">
<label for="registerPassword">Password</label>
<input type="password" id="registerPassword" placeholder="Create a password" required>
<div class="password-strength" id="passwordStrength"></div>
</div>
<button type="submit" class="btn-primary btn-full">Create Account</button>
<p class="form-footer">
Already have an account?
<a href="#" onclick="switchModal('registerModal', 'loginModal')">Sign in</a>
</p>
</form>
</div>
</div>
<footer>
<div class="footer-content" style="display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; padding: 20px; background: rgba(255, 255, 255, 0); color: black;">
<div class="footer-section about" style="flex: 2; min-width: 300px; display: flex; align-items:flex-start; margin: 10px; transition: transform 0.3s ease-in-out;" onmouseover="this.style.transform='scale(1.02)'" onmouseout="this.style.transform='scale(1)'">
<img src="Logo.png" alt="Fusion Vision Logo" style="width: 100px; margin-right: 20px;">
<p style="margin: 0;">Fusion Vision is an advanced object detection platform that leverages cutting-edge AI technology to provide real-time object recognition and analysis.</p>
</div>
<div class="footer-section services" style="flex: 1; min-width: 150px; margin: 10px;">
<h2 style="font-size: 18px; margin-bottom: 10px; transition: color 0.3s ease;" onmouseover="this.style.color='#e67e22'" onmouseout="this.style.color='black'">Fusion Vision</h2>
<ul style="list-style: none; padding: 0;">
<li><a href="whoweare.html" style="color: black; text-decoration: none; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.paddingLeft='10px'" onmouseout="this.style.color='black'; this.style.paddingLeft='0'">Who We Are</a></li>
<li><a href="#" style="color: black; text-decoration: none; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.paddingLeft='10px'" onmouseout="this.style.color='black'; this.style.paddingLeft='0'">Blog</a></li>
<li><a href="#" style="color: black; text-decoration: none; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.paddingLeft='10px'" onmouseout="this.style.color='black'; this.style.paddingLeft='0'">Work With Us</a></li>
<li><a href="#" style="color: black; text-decoration: none; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.paddingLeft='10px'" onmouseout="this.style.color='black'; this.style.paddingLeft='0'">Investor Relations</a></li>
<li><a href="contact.html" style="color: black; text-decoration: none; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.paddingLeft='10px'" onmouseout="this.style.color='black'; this.style.paddingLeft='0'">Contact Us</a></li>
</ul>
</div>
<div class="footer-section learn-more" style="flex: 1; min-width: 150px; margin: 10px;">
<h2 style="font-size: 18px; margin-bottom: 10px; transition: color 0.3s ease;" onmouseover="this.style.color='#e67e22'" onmouseout="this.style.color='black'">Learn More</h2>
<ul style="list-style: none; padding: 0;">
<li><a href="privacyp.html" style="color: black; text-decoration: none; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.paddingLeft='10px'" onmouseout="this.style.color='black'; this.style.paddingLeft='0'">Privacy Policy</a></li>
<li><a href="#" style="color: black; text-decoration: none; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.paddingLeft='10px'" onmouseout="this.style.color='black'; this.style.paddingLeft='0'">Security</a></li>
<li><a href="Terms.html" style="color: black; text-decoration: none; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.paddingLeft='10px'" onmouseout="this.style.color='black'; this.style.paddingLeft='0'">Terms of Service</a></li>
</ul>
</div>
<div class="footer-section social-links" style="flex: 1; min-width: 150px; margin: 10px;">
<h2 style="font-size: 18px; margin-bottom: 10px; transition: color 0.3s ease;" onmouseover="this.style.color='#e67e22'" onmouseout="this.style.color='black'">Follow Us</h2>
<ul class="social-icons" style="list-style: none; padding: 0; display: flex; gap: 10px;">
<li><a href="#" style="color: black; text-decoration: none; font-size: 24px; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.transform='scale(1.2)'; this.style.display='inline-block'" onmouseout="this.style.color='black'; this.style.transform='scale(1)'"><i class="fab fa-instagram"></i></a></li>
<li><a href="#" style="color: black; text-decoration: none; font-size: 24px; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.transform='scale(1.2)'; this.style.display='inline-block'" onmouseout="this.style.color='black'; this.style.transform='scale(1)'"><i class="fab fa-facebook"></i></a></li>
<li><a href="#" style="color: black; text-decoration: none; font-size: 24px; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.transform='scale(1.2)'; this.style.display='inline-block'" onmouseout="this.style.color='black'; this.style.transform='scale(1)'"><i class="fab fa-linkedin"></i></a></li>
<li><a href="#" style="color: black; text-decoration: none; font-size: 24px; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.transform='scale(1.2)'; this.style.display='inline-block'" onmouseout="this.style.color='black'; this.style.transform='scale(1)'"><i class="fa-brands fa-x-twitter"></i></a></li>
<li><a href="#" style="color: black; text-decoration: none; font-size: 24px; transition: all 0.3s ease;" onmouseover="this.style.color='#e67e22'; this.style.transform='scale(1.2)'; this.style.display='inline-block'" onmouseout="this.style.color='black'; this.style.transform='scale(1)'"><i class="fab fa-youtube"></i></a></li>
</ul>
</div>
</div>
<div class="footer-bottom" style="padding: 10px; text-align: center; background-color: white;">
<p style="margin: 0; color: black; transition: color 0.3s ease;" onmouseover="this.style.color='#e67e22'" onmouseout="this.style.color='black'">© 2024 Fusion Vision. All rights reserved.</p>
</div>
</footer>
<script>
window.addEventListener('load', () => {
// Stop speech synthesis when the page is unloaded
window.addEventListener('beforeunload', () => {
window.speechSynthesis.cancel();
});
// Small delay to ensure voices are loaded
setTimeout(() => {
const welcomeMessage = "Welcome to Fusion Vision, Start Scanning objects around you and know about your surroundings with us";
const utterance = new SpeechSynthesisUtterance(welcomeMessage);
// Get available voices and select a female voice
const voices = window.speechSynthesis.getVoices();
const femaleVoice = voices.find(voice =>
voice.name.includes('female') ||
voice.name.includes('Female') ||
voice.name.includes('Samantha') ||
voice.name.includes('Google UK English Female')
);
// Configure the voice
utterance.voice = femaleVoice;
utterance.lang = 'en-IN';
utterance.rate = 0.9; // Slightly slower for clarity
utterance.pitch = 1.2; // Slightly higher pitch for female voice
utterance.volume = 1; // Full volume
// Ensure voices are loaded before speaking
if (window.speechSynthesis.getVoices().length === 0) {
window.speechSynthesis.addEventListener('voiceschanged', () => {
window.speechSynthesis.speak(utterance);
});
} else {
window.speechSynthesis.speak(utterance);
}
// Optional: Add visual feedback while speaking
const heroTitle = document.querySelector('.hero-title');
if (heroTitle) {
heroTitle.style.animation = 'pulse 2s ease-in-out';
}
}, 1000);
});
// Add this CSS to your existing styles
const style = document.createElement('style');
style.textContent = `
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
`;
document.head.appendChild(style);
</script>
<script src="script.js"></script>
</body>
</html>