Spaces:
Runtime error

TrustLensAI-fixed / contact.html
bhoomee's picture
Upload 15 files
f675e17 verified
Raw History Blame Contribute Delete
23.1 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Contact - TrustLens AI</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", Arial, sans-serif; } body { min-height: 100vh; background: radial-gradient(circle at top left, #dbeafe 0%, transparent 35%), linear-gradient(135deg, #eef5ff, #f8fbff); color: #172554; } /* ================= NAVBAR ================= */ header { min-height: 72px; padding: 12px 7%; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid #dbeafe; box-shadow: 0 2px 15px rgba(30, 64, 175, 0.08); position: sticky; top: 0; z-index: 100; } .logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: #172554; } .logo-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; font-size: 21px; box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25); } .logo span { color: #2563eb; } nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: flex-end; } nav a { color: #475569; text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.2s; } nav a:hover { color: #2563eb; } nav a:last-child { color: #2563eb; } /* ================= HERO ================= */ .hero { width: 90%; max-width: 1000px; margin: 70px auto 35px; text-align: center; } .badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; background: #dbeafe; border: 1px solid #bfdbfe; border-radius: 30px; color: #1d4ed8; font-size: 13px; font-weight: 600; margin-bottom: 18px; } .hero h1 { font-size: 46px; line-height: 1.15; color: #172554; margin-bottom: 15px; } .hero h1 span { color: #2563eb; } .hero p { max-width: 650px; margin: auto; color: #64748b; font-size: 16px; line-height: 1.7; } /* ================= MAIN CONTENT ================= */ .contact-wrapper { width: 90%; max-width: 1000px; margin: 45px auto 70px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 25px; } /* ================= LEFT INFORMATION ================= */ .contact-info { padding: 32px; background: #ffffff; border: 1px solid #dbeafe; border-radius: 20px; box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08); } .contact-info h2 { color: #172554; font-size: 24px; margin-bottom: 10px; } .contact-info > p { color: #64748b; font-size: 14px; line-height: 1.7; margin-bottom: 25px; } .info-card { display: flex; align-items: flex-start; gap: 14px; padding: 17px; margin-top: 13px; background: #f8fbff; border: 1px solid #dbeafe; border-radius: 13px; transition: 0.2s; } .info-card:hover { border-color: #93c5fd; transform: translateY(-2px); box-shadow: 0 7px 18px rgba(37, 99, 235, 0.08); } .info-icon { width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #dbeafe; font-size: 20px; } .info-card h3 { color: #172554; font-size: 14px; margin-bottom: 4px; } .info-card p { color: #64748b; font-size: 13px; line-height: 1.5; } /* ================= CONTACT FORM ================= */ .contact-form { padding: 32px; background: #ffffff; border: 1px solid #dbeafe; border-radius: 20px; box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08); } .contact-form h2 { color: #172554; font-size: 24px; margin-bottom: 8px; } .form-subtitle { color: #64748b; font-size: 13px; margin-bottom: 23px; } .form-group { margin-bottom: 17px; } .form-group label { display: block; margin-bottom: 7px; color: #334155; font-size: 13px; font-weight: 600; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fbff; color: #172554; font-size: 14px; outline: none; transition: 0.2s; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #2563eb; background: #ffffff; box-shadow: 0 0 0 3px #dbeafe; } .form-group textarea { min-height: 130px; resize: vertical; } .form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; } /* ================= SUBMIT BUTTON ================= */ .submit-btn { width: 100%; padding: 14px; margin-top: 4px; border: none; border-radius: 11px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.2s; box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2); } .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28); } /* ================= SECURITY NOTE ================= */ .security-note { margin-top: 18px; padding: 13px; display: flex; align-items: center; gap: 9px; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px; color: #475569; font-size: 12px; line-height: 1.5; } /* ================= SUCCESS POPUP ================= */ .popup-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(5px); z-index: 9999; padding: 20px; } .popup-overlay.show { display: flex; animation: fadeIn 0.25s ease; } .success-popup { width: 100%; max-width: 420px; padding: 35px 30px; text-align: center; background: white; border-radius: 22px; border: 1px solid #dbeafe; box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25); animation: popupScale 0.3s ease; } .success-icon { width: 70px; height: 70px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 34px; font-weight: bold; border: 5px solid #f0fdf4; } .success-popup h2 { color: #172554; font-size: 24px; margin-bottom: 10px; } .success-popup p { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 22px; } .popup-close { width: 100%; padding: 12px; border: none; border-radius: 10px; background: #2563eb; color: white; font-size: 14px; font-weight: 700; cursor: pointer; transition: 0.2s; } .popup-close:hover { background: #1d4ed8; transform: translateY(-1px); } /* ================= POPUP ANIMATIONS ================= */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes popupScale { from { opacity: 0; transform: scale(0.85) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } } /* ================= FOOTER ================= */ footer { margin-top: 20px; padding: 30px 20px; text-align: center; color: #64748b; border-top: 1px solid #dbeafe; background: #ffffff; font-size: 13px; line-height: 1.7; } .footer-logo { color: #172554; font-size: 18px; font-weight: 700; margin-bottom: 5px; } .footer-logo span { color: #2563eb; } /* ================= MOBILE ================= */ @media (max-width: 900px) { header { flex-direction: column; gap: 15px; } nav { justify-content: center; } .hero h1 { font-size: 40px; } .contact-wrapper { grid-template-columns: 1fr; } } @media (max-width: 600px) { nav { gap: 12px; } nav a { font-size: 12px; } .hero { margin-top: 45px; } .hero h1 { font-size: 32px; } .hero p { font-size: 14px; } .contact-info, .contact-form { padding: 23px; } .success-popup { padding: 30px 22px; } } .continue-btn { display: block; width: 100%; padding: 13px; border-radius: 10px; background: #2563eb; color: white; text-decoration: none; font-size: 15px; font-weight: 700; } </style> </head> <body> <!-- ================= NAVBAR ================= --> <header> <div class="logo"> <div class="logo-icon"> 🛡️ </div> <div> Trust<span>Lens</span> AI </div> </div> <nav> <a href="/"> Home </a> <a href="/dashboard"> Dashboard </a> <a href="/about"> About </a> <a href="/awareness"> Scam Awareness </a> <a href="/link-check"> Fake Link Detection </a> <a href="/report"> Report Scam </a> <a href="/contact"> Contact </a> </nav> </header> <!-- ================= HERO ================= --> <section class="hero"> <div class="badge"> 🛡️ We're Here to Help </div> <h1> Get in <span>Touch</span> </h1> <p> Have questions, feedback, or found something suspicious? Contact the TrustLens AI team and help us make digital spaces safer for everyone. </p> </section> <!-- ================= CONTACT CONTENT ================= --> <section class="contact-wrapper"> <!-- ================= CONTACT INFORMATION ================= --> <div class="contact-info"> <h2> Contact TrustLens AI </h2> <p> Whether you need help with the platform, want to share feedback, or would like to report a suspicious activity, we're here to listen. </p> <div class="info-card"> <div class="info-icon"> 📧 </div> <div> <h3> Email Support </h3> <p> Contact our team for questions, feedback and project-related queries. </p> </div> </div> <div class="info-card"> <div class="info-icon"> 💡 </div> <div> <h3> Feedback </h3> <p> Share your suggestions and help us improve the TrustLens AI experience. </p> </div> </div> <div class="info-card"> <div class="info-icon"> 🚨 </div> <div> <h3> Report a Scam </h3> <p> Found a suspicious message or website? Use our dedicated Report Scam page. </p> </div> </div> <div class="info-card"> <div class="info-icon"> 🔐 </div> <div> <h3> Digital Safety </h3> <p> Never share passwords, OTPs, PINs or sensitive financial information. </p> </div> </div> </div> <!-- ================= CONTACT FORM ================= --> <div class="contact-form"> <h2> Send Us a Message </h2> <p class="form-subtitle"> Fill in the form below and let us know how we can help. </p> <form action="/contact" method="POST" id="contactForm" > <div class="form-group"> <label for="name"> Your Name </label> <input type="text" id="name" name="name" placeholder="Enter your name" required > </div> <div class="form-group"> <label for="email"> Email Address </label> <input type="email" id="email" name="email" placeholder="Enter your email" required > </div> <div class="form-group"> <label for="subject"> Subject </label> <select id="subject" name="subject" required > <option value=""> Select a subject </option> <option value="general"> General Question </option> <option value="feedback"> Feedback </option> <option value="technical"> Technical Support </option> <option value="scam"> Report a Scam </option> <option value="other"> Other </option> </select> </div> <div class="form-group"> <label for="message"> Message </label> <textarea id="message" name="message" placeholder="Write your message here..." required ></textarea> </div> <button type="submit" class="submit-btn" id="submitButton" > 📩 Send Message </button> <div class="security-note"> 🔒 <span> For your safety, never include passwords, OTPs, PINs, card numbers or other sensitive financial information in your message. </span> </div> </form> </div> </section> <!-- ================= SUCCESS POPUP ================= --> <div class="popup-overlay" id="successPopup" > <div class="success-popup"> <div class="success-icon"> ✓ </div> <h2> Message Sent Successfully! </h2> <p> Thank you for contacting TrustLens AI. Your message has been received and our team will review it shortly. </p> <button class="popup-close" id="popupClose" type="button" > <a href="home.html" class="continue-btn" > Continue </a> </button> </div> </div> <!-- ================= FOOTER ================= --> <footer> <div class="footer-logo"> Trust<span>Lens</span> AI </div> AI-Based Multilingual Scam Detection & Digital Fraud Awareness Platform <br> © 2026 TrustLens AI. Stay alert. Stay safe. </footer> <!-- ================= POPUP JAVASCRIPT ================= --> <script> const contactForm = document.getElementById("contactForm"); const successPopup = document.getElementById("successPopup"); const popupClose = document.getElementById("popupClose"); const submitButton = document.getElementById("submitButton"); contactForm.addEventListener("submit", function(event) { event.preventDefault(); /* * Check HTML5 validation first. */ if (!contactForm.checkValidity()) { contactForm.reportValidity(); return; } /* * Disable button so the user cannot * click it multiple times. */ submitButton.disabled = true; submitButton.innerHTML = "✓ Message Sent"; /* * Show success popup. */ successPopup.classList.add("show"); /* * Submit the form to Flask after * showing the popup. */ }); /* * Close popup button. */ popupClose.addEventListener("click", function() { successPopup.classList.remove("show"); }); /* * Close popup if user clicks outside * the popup box. */ successPopup.addEventListener("click", function(event) { if (event.target === successPopup) { successPopup.classList.remove("show"); } }); /* * Close popup with ESC key. */ document.addEventListener("keydown", function(event) { if ( event.key === "Escape" && successPopup.classList.contains("show") ) { successPopup.classList.remove("show"); } }); </script> </body> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Contact - TrustLens AI</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Segoe UI", Arial, sans-serif;
}
body {
min-height: 100vh;
background:
radial-gradient(circle at top left, #dbeafe 0%, transparent 35%),
linear-gradient(135deg, #eef5ff, #f8fbff);
color: #172554;
}
/* ================= NAVBAR ================= */
header {
min-height: 72px;
padding: 12px 7%;
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(255, 255, 255, 0.96);
border-bottom: 1px solid #dbeafe;
box-shadow:
0 2px 15px rgba(30, 64, 175, 0.08);
position: sticky;
top: 0;
z-index: 100;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 21px;
font-weight: 700;
color: #172554;
}
.logo-icon {
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background:
linear-gradient(135deg, #2563eb, #1d4ed8);
color: white;
font-size: 21px;
box-shadow:
0 5px 15px rgba(37, 99, 235, 0.25);
}
.logo span {
color: #2563eb;