UNPKG

@spectrumsense/spectrum-chat-dev

Version:

Embeddable AI Widget - Add trusted, evidence-based answers directly to your website. Simple installation, enterprise-grade security.

157 lines (135 loc) 3.65 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>{% block title %}My Website{% endblock %}</title> <!-- Include configuration --> <script src="../config.js"></script> <!-- Global Chat Configuration - Only add this once in your main template! --> <script> // Configure global chat with environment-specific settings window.SpectrumChatConfig = window.SpectrumConfig.getConfig(); </script> <!-- Global Chat Script - Only include this once in your main template! --> <script src="../../dist/spectrum-chat.js"></script> <!-- Page-specific styles --> {% block styles %}{% endblock %} <style> /* Base styles for all pages */ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #1f2937; margin: 0; padding: 0; } .container { max-width: 1200px; margin: 0 auto; padding: 2rem; } .hero { text-align: center; color: white; margin-bottom: 3rem; } .hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .hero p { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto; } .demo-section { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 1rem; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); } .demo-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; } .demo-description { opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.6; } .success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; padding: 1.5rem; border-radius: 0.75rem; margin: 1.5rem 0; text-align: center; } .success h4 { font-size: 1.25rem; margin-bottom: 0.5rem; } .button { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 0.75rem 1.5rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.9rem; margin: 0.25rem; text-decoration: none; display: inline-block; transition: all 0.3s ease; backdrop-filter: blur(10px); } .button:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); } .button-container { display: flex; gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap; justify-content: center; } .nav-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; } .nav-link { background: rgba(255, 255, 255, 0.2); color: white; padding: 0.75rem 1.5rem; border-radius: 0.5rem; text-decoration: none; font-weight: 500; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); } .nav-link:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); } </style> </head> <body> <!-- Page content goes here --> {% block content %}{% endblock %} <!-- Page-specific scripts --> {% block scripts %}{% endblock %} </body> </html>