bhd82 commited on
Commit
ea27a37
·
verified ·
1 Parent(s): 84c0781

Upload 6 files

Browse files
templates/about.html ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% extends "base.html" %}
2
+
3
+ {% block title %}About SkinAI - Our Mission and Technology{% endblock %}
4
+
5
+ {% block content %}
6
+ <section class="page-header">
7
+ <div class="container">
8
+ <h1>About SkinAI</h1>
9
+ <p>Using artificial intelligence to improve skin health education</p>
10
+ </div>
11
+ </section>
12
+
13
+ <section class="about-mission">
14
+ <div class="container">
15
+ <div class="about-grid">
16
+ <div class="about-content">
17
+ <h2>Our Mission</h2>
18
+ <p>At SkinAI, we believe that early detection saves lives. Our mission is to leverage the power of artificial intelligence to provide accessible skin health education and empower individuals to be proactive about their skin health.</p>
19
+ <p>Skin cancer is one of the most common types of cancer, with over 5 million cases diagnosed worldwide each year. When detected early, the 5-year survival rate for melanoma is over 99%. However, if it spreads to distant parts of the body, the survival rate drops to about 27%.</p>
20
+ <p>By creating an educational tool that helps people understand potential skin concerns, we hope to encourage earlier medical consultations and improve outcomes through early detection.</p>
21
+ </div>
22
+ <div class="about-image">
23
+ <img src="{{ url_for('static', filename='images/mission.jpg') }}" alt="Medical professionals examining skin">
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </section>
28
+
29
+ <section class="about-technology">
30
+ <div class="container">
31
+ <h2>Our Technology</h2>
32
+ <p class="section-intro">SkinAI uses state-of-the-art deep learning models trained on large datasets of dermatological images.</p>
33
+
34
+ <div class="tech-grid">
35
+ <div class="tech-card">
36
+ <div class="tech-icon">
37
+ <i class="fas fa-database"></i>
38
+ </div>
39
+ <h3>Training Data</h3>
40
+ <p>Our models are trained on the HAM10000 dataset, which contains over 10,000 dermatoscopic images of skin lesions across seven different categories.</p>
41
+ </div>
42
+
43
+ <div class="tech-card">
44
+ <div class="tech-icon">
45
+ <i class="fas fa-brain"></i>
46
+ </div>
47
+ <h3>AI Models</h3>
48
+ <p>We utilize two powerful convolutional neural network architectures:</p>
49
+ <ul>
50
+ <li><strong>MobileNetV2:</strong> A lightweight model optimized for mobile devices with 74% accuracy</li>
51
+ <li><strong>EfficientNetB0:</strong> A more complex model with 69% accuracy on skin cancer classification</li>
52
+ </ul>
53
+ </div>
54
+
55
+ <div class="tech-card">
56
+ <div class="tech-icon">
57
+ <i class="fas fa-chart-line"></i>
58
+ </div>
59
+ <h3>Continuous Improvement</h3>
60
+ <p>We regularly update our models with new training data and improved architectures to enhance accuracy and performance. Our team monitors the latest advancements in AI and dermatology to ensure SkinAI remains at the cutting edge.</p>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </section>
65
+
66
+ <section class="about-team">
67
+ <div class="container">
68
+ <h2>Our Team</h2>
69
+ <p class="section-intro">SkinAI was created by a multidisciplinary team of AI researchers, software engineers, and healthcare professionals.</p>
70
+
71
+ <div class="team-grid">
72
+ <div class="team-member">
73
+ <div class="member-image">
74
+ <img src="{{ url_for('static', filename='images/team/member1.jpg') }}" alt="Dr. Sarah Johnson">
75
+ </div>
76
+ <h3>Dr. Sarah Johnson</h3>
77
+ <p class="member-title">Medical Director</p>
78
+ <p class="member-bio">Board-certified dermatologist with over 15 years of experience in skin cancer detection and treatment.</p>
79
+ </div>
80
+
81
+ <div class="team-member">
82
+ <div class="member-image">
83
+ <img src="{{ url_for('static', filename='images/team/member2.jpg') }}" alt="Dr. Michael Chen">
84
+ </div>
85
+ <h3>Dr. Michael Chen</h3>
86
+ <p class="member-title">AI Research Lead</p>
87
+ <p class="member-bio">PhD in Computer Science with expertise in deep learning and computer vision for medical applications.</p>
88
+ </div>
89
+
90
+ <div class="team-member">
91
+ <div class="member-image">
92
+ <img src="{{ url_for('static', filename='images/team/member3.jpg') }}" alt="Emma Rodriguez">
93
+ </div>
94
+ <h3>Emma Rodriguez</h3>
95
+ <p class="member-title">Lead Developer</p>
96
+ <p class="member-bio">Full-stack developer specializing in AI-powered web applications and user experience design.</p>
97
+ </div>
98
+
99
+ <div class="team-member">
100
+ <div class="member-image">
101
+ <img src="{{ url_for('static', filename='images/team/member4.jpg') }}" alt="Dr. James Wilson">
102
+ </div>
103
+ <h3>Dr. James Wilson</h3>
104
+ <p class="member-title">Medical Advisor</p>
105
+ <p class="member-bio">Oncologist with a focus on melanoma research and early detection methodologies.</p>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ </section>
110
+
111
+ <section class="about-research">
112
+ <div class="container">
113
+ <div class="research-grid">
114
+ <div class="research-content">
115
+ <h2>Our Research</h2>
116
+ <p>The technology behind SkinAI is based on peer-reviewed research in dermatology and artificial intelligence. Our team has published several papers on the application of deep learning for skin lesion classification.</p>
117
+ <p>We collaborate with leading medical institutions to validate our models and ensure they meet high standards of accuracy and reliability. While our tool is for educational purposes only, we strive to maintain the highest level of scientific rigor in our approach.</p>
118
+ <div class="research-links">
119
+ <a href="#" class="btn btn-outline">View Publications</a>
120
+ <a href="#" class="btn btn-outline">Research Methodology</a>
121
+ </div>
122
+ </div>
123
+ <div class="research-image">
124
+ <img src="{{ url_for('static', filename='images/research.jpg') }}" alt="AI research visualization">
125
+ </div>
126
+ </div>
127
+ </div>
128
+ </section>
129
+
130
+ <section class="about-disclaimer">
131
+ <div class="container">
132
+ <div class="disclaimer-box">
133
+ <h3><i class="fas fa-exclamation-triangle"></i> Medical Disclaimer</h3>
134
+ <p>SkinAI is designed to be an educational tool only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition.</p>
135
+ <p>The information provided by SkinAI is not intended to diagnose, treat, cure, or prevent any disease. Never disregard professional medical advice or delay seeking it because of something you have read or seen on SkinAI.</p>
136
+ </div>
137
+ </div>
138
+ </section>
139
+
140
+ <section class="cta">
141
+ <div class="container">
142
+ <h2>Ready to try SkinAI?</h2>
143
+ <p>Upload an image of your skin lesion and get an AI-powered analysis in seconds.</p>
144
+ <div class="cta-buttons">
145
+ <a href="{{ url_for('detect') }}" class="btn btn-primary">Try SkinAI Now</a>
146
+ <a href="{{ url_for('faq') }}" class="btn btn-secondary">Learn More in FAQs</a>
147
+ </div>
148
+ </div>
149
+ </section>
150
+ {% endblock %}
templates/base.html ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="SkinAI - Advanced AI-powered skin lesion analysis for early detection of skin cancer">
7
+ <meta name="keywords" content="skin cancer, melanoma, AI detection, dermatology, machine learning">
8
+ <meta name="author" content="SkinAI Team">
9
+
10
+ <title>{% block title %}SkinAI - AI-Powered Skin Cancer Detection{% endblock %}</title>
11
+
12
+ <!-- Favicon -->
13
+ <link rel="shortcut icon" href="{{ url_for('static', filename='images/favicon.ico') }}" type="image/x-icon">
14
+
15
+ <!-- Fonts -->
16
+ <link rel="preconnect" href="https://fonts.googleapis.com">
17
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
18
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
19
+
20
+ <!-- CSS -->
21
+
22
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
23
+ {% if request.endpoint == 'about' %}
24
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/about.css') }}">
25
+ {% elif request.endpoint == 'faq' %}
26
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/faq.css') }}">
27
+ {% elif request.endpoint == 'contact' %}
28
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/contact.css') }}">
29
+ {% elif request.endpoint in ['terms', 'privacy'] %}
30
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/legal.css') }}">
31
+ {% endif %}
32
+
33
+ <!-- Font Awesome -->
34
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
35
+
36
+ {% block extra_css %}{% endblock %}
37
+ </head>
38
+ <body>
39
+ <header>
40
+ <nav class="navbar">
41
+ <div class="container">
42
+ <a href="{{ url_for('index') }}" class="logo">
43
+ <img src="{{ url_for('static', filename='images/logo.svg') }}" alt="SkinAI Logo">
44
+ <span>SkinAI</span>
45
+ </a>
46
+
47
+ <button class="mobile-menu-toggle" aria-label="Toggle menu">
48
+ <span class="bar"></span>
49
+ <span class="bar"></span>
50
+ <span class="bar"></span>
51
+ </button>
52
+
53
+ <div class="nav-links">
54
+ <a href="{{ url_for('index') }}" class="{% if request.path == url_for('index') %}active{% endif %}">Home</a>
55
+ <a href="{{ url_for('detect') }}" class="{% if request.path == url_for('detect') %}active{% endif %}">Detect</a>
56
+ <a href="{{ url_for('about') }}" class="{% if request.path == url_for('about') %}active{% endif %}">About</a>
57
+ <a href="{{ url_for('faq') }}" class="{% if request.path == url_for('faq') %}active{% endif %}">FAQ</a>
58
+ </div>
59
+ </div>
60
+ </nav>
61
+ </header>
62
+
63
+ <main>
64
+ {% block content %}{% endblock %}
65
+ </main>
66
+
67
+ <footer>
68
+ <div class="container">
69
+ <div class="footer-grid">
70
+ <div class="footer-col">
71
+ <h3>SkinAI</h3>
72
+ <p>Advanced AI-powered skin lesion analysis for early detection of skin cancer.</p>
73
+ <div class="social-links">
74
+ <a href="#" aria-label="Twitter"><i class="fab fa-twitter"></i></a>
75
+ <a href="#" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
76
+ <a href="#" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
77
+ <a href="#" aria-label="LinkedIn"><i class="fab fa-linkedin-in"></i></a>
78
+ </div>
79
+ </div>
80
+
81
+ <div class="footer-col">
82
+ <h3>Quick Links</h3>
83
+ <ul>
84
+ <li><a href="{{ url_for('index') }}">Home</a></li>
85
+ <li><a href="{{ url_for('detect') }}">Detect</a></li>
86
+ <li><a href="{{ url_for('about') }}">About</a></li>
87
+ <li><a href="{{ url_for('faq') }}">FAQ</a></li>
88
+ </ul>
89
+ </div>
90
+
91
+ <div class="footer-col">
92
+ <h3>Legal</h3>
93
+ <ul>
94
+ <li><a href="{{ url_for('privacy') }}">Privacy Policy</a></li>
95
+ <li><a href="{{ url_for('terms') }}">Terms of Service</a></li>
96
+ <li><a href="#">Cookie Policy</a></li>
97
+ </ul>
98
+ </div>
99
+
100
+ <div class="footer-col">
101
+ <h3>Important Notice</h3>
102
+ <p>This tool is for educational purposes only and is not a substitute for professional medical advice. Always consult with a healthcare professional for medical concerns.</p>
103
+ </div>
104
+ </div>
105
+
106
+ <div class="footer-bottom">
107
+ <p>&copy; 2025 SkinAI. All rights reserved.</p>
108
+ </div>
109
+ </div>
110
+ </footer>
111
+
112
+ <!-- Core JavaScript -->
113
+ <script src="{{ url_for('static', filename='js/main.js') }}"></script>
114
+
115
+ {% block extra_js %}{% endblock %}
116
+
117
+ <!-- Analytics (replace with your own) -->
118
+ <script async defer>
119
+ // Google Analytics or other analytics code
120
+ </script>
121
+ </body>
122
+ </html>
templates/contact.html ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% extends "base.html" %}
2
+
3
+ {% block title %}Contact Us - SkinAI{% endblock %}
4
+
5
+ {% block content %}
6
+ <section class="page-header">
7
+ <div class="container">
8
+ <h1>Contact Us</h1>
9
+ <p>Have questions or feedback? We'd love to hear from you.</p>
10
+ </div>
11
+ </section>
12
+
13
+ <section class="contact-content">
14
+ <div class="container">
15
+ <div class="contact-grid">
16
+ <div class="contact-info">
17
+ <div class="info-card">
18
+ <div class="info-icon">
19
+ <i class="fas fa-envelope"></i>
20
+ </div>
21
+ <h3>Email Us</h3>
22
+ <p>support@skinai.example.com</p>
23
+ </div>
24
+
25
+ <div class="info-card">
26
+ <div class="info-icon">
27
+ <i class="fas fa-map-marker-alt"></i>
28
+ </div>
29
+ <h3>Location</h3>
30
+ <p>123 AI Avenue<br>Tech City, TC 10101</p>
31
+ </div>
32
+
33
+ <div class="info-card">
34
+ <div class="info-icon">
35
+ <i class="fas fa-clock"></i>
36
+ </div>
37
+ <h3>Support Hours</h3>
38
+ <p>Monday - Friday<br>9:00 AM - 5:00 PM EST</p>
39
+ </div>
40
+
41
+ <div class="social-links">
42
+ <h3>Connect With Us</h3>
43
+ <div class="social-icons">
44
+ <a href="#" aria-label="Twitter"><i class="fab fa-twitter"></i></a>
45
+ <a href="#" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
46
+ <a href="#" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
47
+ <a href="#" aria-label="LinkedIn"><i class="fab fa-linkedin-in"></i></a>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ <div class="contact-form-container">
53
+ <h2>Send Us a Message</h2>
54
+ <form class="contact-form" action="/submit-contact" method="POST">
55
+ <div class="form-group">
56
+ <label for="name">Your Name</label>
57
+ <input type="text" id="name" name="name" required>
58
+ </div>
59
+
60
+ <div class="form-group">
61
+ <label for="email">Email Address</label>
62
+ <input type="email" id="email" name="email" required>
63
+ </div>
64
+
65
+ <div class="form-group">
66
+ <label for="subject">Subject</label>
67
+ <select id="subject" name="subject">
68
+ <option value="general">General Inquiry</option>
69
+ <option value="support">Technical Support</option>
70
+ <option value="feedback">Feedback</option>
71
+ <option value="other">Other</option>
72
+ </select>
73
+ </div>
74
+
75
+ <div class="form-group">
76
+ <label for="message">Message</label>
77
+ <textarea id="message" name="message" rows="5" required></textarea>
78
+ </div>
79
+
80
+ <div class="form-group checkbox-group">
81
+ <input type="checkbox" id="privacy" name="privacy" required>
82
+ <label for="privacy">I agree to the <a href="{{ url_for('privacy') }}">Privacy Policy</a></label>
83
+ </div>
84
+
85
+ <button type="submit" class="btn btn-primary">Send Message</button>
86
+ </form>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </section>
91
+
92
+ <section class="faq-preview">
93
+ <div class="container">
94
+ <h2>Frequently Asked Questions</h2>
95
+ <p>Find quick answers to common questions about SkinAI.</p>
96
+ <div class="faq-buttons">
97
+ <a href="{{ url_for('faq') }}" class="btn btn-secondary">View All FAQs</a>
98
+ </div>
99
+ </div>
100
+ </section>
101
+ {% endblock %}
templates/faq.html ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% extends "base.html" %}
2
+
3
+ {% block title %}Frequently Asked Questions - SkinAI{% endblock %}
4
+
5
+ {% block content %}
6
+ <section class="page-header">
7
+ <div class="container">
8
+ <h1>Frequently Asked Questions</h1>
9
+ <p>Find answers to common questions about SkinAI</p>
10
+ </div>
11
+ </section>
12
+
13
+ <section class="faq-content">
14
+ <div class="container">
15
+ <div class="faq-search">
16
+ <div class="search-container">
17
+ <i class="fas fa-search search-icon"></i>
18
+ <input type="text" id="faq-search" placeholder="Search questions...">
19
+ </div>
20
+ </div>
21
+
22
+ <div class="faq-categories">
23
+ <button class="category-btn active" data-category="all">All</button>
24
+ <button class="category-btn" data-category="general">General</button>
25
+ <button class="category-btn" data-category="technical">Technical</button>
26
+ <button class="category-btn" data-category="medical">Medical</button>
27
+ <button class="category-btn" data-category="privacy">Privacy & Security</button>
28
+ </div>
29
+
30
+ <div class="faq-list">
31
+ <!-- General Questions -->
32
+ <div class="faq-item" data-category="general">
33
+ <div class="faq-question">
34
+ <h3>What is SkinAI?</h3>
35
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
36
+ </div>
37
+ <div class="faq-answer">
38
+ <p>SkinAI is an educational tool that uses artificial intelligence to analyze images of skin lesions. Our AI models can help identify potential skin conditions, but the service is not intended to replace professional medical advice or diagnosis.</p>
39
+ </div>
40
+ </div>
41
+
42
+ <div class="faq-item" data-category="general">
43
+ <div class="faq-question">
44
+ <h3>Is SkinAI free to use?</h3>
45
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
46
+ </div>
47
+ <div class="faq-answer">
48
+ <p>Yes, SkinAI is currently free to use. We believe in making skin health education accessible to everyone.</p>
49
+ </div>
50
+ </div>
51
+
52
+ <!-- Technical Questions -->
53
+ <div class="faq-item" data-category="technical">
54
+ <div class="faq-question">
55
+ <h3>How accurate is the AI analysis?</h3>
56
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
57
+ </div>
58
+ <div class="faq-answer">
59
+ <p>Our models have been trained on large datasets of dermatological images. MobileNetV2 has approximately 74% accuracy on the HAM10000 dataset, while EfficientNetB0 has about 69% accuracy on skin cancer classification. However, AI analysis should never replace professional medical diagnosis.</p>
60
+ </div>
61
+ </div>
62
+
63
+ <div class="faq-item" data-category="technical">
64
+ <div class="faq-question">
65
+ <h3>What types of skin conditions can SkinAI detect?</h3>
66
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
67
+ </div>
68
+ <div class="faq-answer">
69
+ <p>Our AI models can analyze seven types of skin lesions:</p>
70
+ <ul>
71
+ <li>Actinic keratoses (akiec)</li>
72
+ <li>Basal cell carcinoma (bcc)</li>
73
+ <li>Benign keratosis-like lesions (bkl)</li>
74
+ <li>Dermatofibroma (df)</li>
75
+ <li>Melanoma (mel)</li>
76
+ <li>Melanocytic nevi (nv)</li>
77
+ <li>Vascular lesions (vasc)</li>
78
+ </ul>
79
+ </div>
80
+ </div>
81
+
82
+ <div class="faq-item" data-category="technical">
83
+ <div class="faq-question">
84
+ <h3>What image formats are supported?</h3>
85
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
86
+ </div>
87
+ <div class="faq-answer">
88
+ <p>SkinAI supports JPG, JPEG, and PNG image formats. For best results, upload clear, well-lit images with the skin lesion centered in the frame.</p>
89
+ </div>
90
+ </div>
91
+
92
+ <!-- Medical Questions -->
93
+ <div class="faq-item" data-category="medical">
94
+ <div class="faq-question">
95
+ <h3>Can SkinAI diagnose skin cancer?</h3>
96
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
97
+ </div>
98
+ <div class="faq-answer">
99
+ <p>No, SkinAI cannot provide medical diagnoses. Our AI models can analyze skin lesions and provide information about potential conditions, but this should be used for educational purposes only. Always consult a healthcare professional for proper diagnosis and treatment.</p>
100
+ </div>
101
+ </div>
102
+
103
+ <div class="faq-item" data-category="medical">
104
+ <div class="faq-question">
105
+ <h3>What should I do if SkinAI indicates a high probability of melanoma?</h3>
106
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
107
+ </div>
108
+ <div class="faq-answer">
109
+ <p>If SkinAI indicates a high probability of melanoma or any concerning skin condition, you should consult with a dermatologist or healthcare provider as soon as possible. Remember that SkinAI is an educational tool and not a diagnostic device.</p>
110
+ </div>
111
+ </div>
112
+
113
+ <div class="faq-item" data-category="medical">
114
+ <div class="faq-question">
115
+ <h3>How often should I check my skin for changes?</h3>
116
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
117
+ </div>
118
+ <div class="faq-answer">
119
+ <p>Most dermatologists recommend performing a self-examination of your skin once a month. Look for changes in existing moles or the appearance of new spots. The ABCDE rule can help identify concerning features: Asymmetry, Border irregularity, Color variation, Diameter larger than 6mm, and Evolving size, shape, or color.</p>
120
+ </div>
121
+ </div>
122
+
123
+ <!-- Privacy & Security Questions -->
124
+ <div class="faq-item" data-category="privacy">
125
+ <div class="faq-question">
126
+ <h3>Is my data private and secure?</h3>
127
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
128
+ </div>
129
+ <div class="faq-answer">
130
+ <p>Yes. We do not store your uploaded images on our servers. All processing is done in real-time, and images are not saved after analysis. Your privacy is our priority. For more details, please review our <a href="{{ url_for('privacy') }}">Privacy Policy</a>.</p>
131
+ </div>
132
+ </div>
133
+
134
+ <div class="faq-item" data-category="privacy">
135
+ <div class="faq-question">
136
+ <h3>Do you share my data with third parties?</h3>
137
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
138
+ </div>
139
+ <div class="faq-answer">
140
+ <p>No, we do not sell, trade, or otherwise transfer your information to third parties. We may share anonymized, aggregated data for research or educational purposes, but this will never include personally identifiable information or your uploaded images.</p>
141
+ </div>
142
+ </div>
143
+
144
+ <div class="faq-item" data-category="privacy">
145
+ <div class="faq-question">
146
+ <h3>Can I delete my data from your system?</h3>
147
+ <span class="faq-toggle"><i class="fas fa-chevron-down"></i></span>
148
+ </div>
149
+ <div class="faq-answer">
150
+ <p>Since we do not store your uploaded images after analysis, there is no need to request deletion. If you have any concerns about your data, please <a href="{{ url_for('contact') }}">contact us</a>.</p>
151
+ </div>
152
+ </div>
153
+ </div>
154
+
155
+ <div class="faq-not-found" style="display: none;">
156
+ <div class="not-found-icon">
157
+ <i class="fas fa-search"></i>
158
+ </div>
159
+ <h3>No matching questions found</h3>
160
+ <p>Try different keywords or <a href="{{ url_for('contact') }}">contact us</a> with your specific question.</p>
161
+ </div>
162
+ </div>
163
+ </section>
164
+
165
+ <section class="contact-cta">
166
+ <div class="container">
167
+ <h2>Still have questions?</h2>
168
+ <p>We're here to help. Reach out to our team for personalized assistance.</p>
169
+ <a href="{{ url_for('contact') }}" class="btn btn-primary">Contact Us</a>
170
+ </div>
171
+ </section>
172
+ {% endblock %}
173
+
174
+ {% block extra_js %}
175
+ <script>
176
+ document.addEventListener('DOMContentLoaded', function() {
177
+ // FAQ toggle functionality
178
+ const questions = document.querySelectorAll('.faq-question');
179
+ questions.forEach(question => {
180
+ question.addEventListener('click', function() {
181
+ const answer = this.nextElementSibling;
182
+ const isOpen = answer.style.maxHeight;
183
+
184
+ // Close all other answers
185
+ document.querySelectorAll('.faq-answer').forEach(item => {
186
+ item.style.maxHeight = null;
187
+ });
188
+
189
+ document.querySelectorAll('.faq-toggle i').forEach(icon => {
190
+ icon.className = 'fas fa-chevron-down';
191
+ });
192
+
193
+ // Toggle current answer
194
+ if (!isOpen) {
195
+ answer.style.maxHeight = answer.scrollHeight + 'px';
196
+ this.querySelector('.faq-toggle i').className = 'fas fa-chevron-up';
197
+ }
198
+ });
199
+ });
200
+
201
+ // Category filter functionality
202
+ const categoryButtons = document.querySelectorAll('.category-btn');
203
+ const faqItems = document.querySelectorAll('.faq-item');
204
+
205
+ categoryButtons.forEach(button => {
206
+ button.addEventListener('click', function() {
207
+ const category = this.getAttribute('data-category');
208
+
209
+ // Update active button
210
+ categoryButtons.forEach(btn => btn.classList.remove('active'));
211
+ this.classList.add('active');
212
+
213
+ // Filter FAQ items
214
+ faqItems.forEach(item => {
215
+ if (category === 'all' || item.getAttribute('data-category') === category) {
216
+ item.style.display = 'block';
217
+ } else {
218
+ item.style.display = 'none';
219
+ }
220
+ });
221
+
222
+ // Check if any items are visible
223
+ checkVisibleItems();
224
+ });
225
+ });
226
+
227
+ // Search functionality
228
+ const searchInput = document.getElementById('faq-search');
229
+ searchInput.addEventListener('input', function() {
230
+ const searchTerm = this.value.toLowerCase();
231
+
232
+ faqItems.forEach(item => {
233
+ const question = item.querySelector('h3').textContent.toLowerCase();
234
+ const answer = item.querySelector('.faq-answer').textContent.toLowerCase();
235
+
236
+ if (question.includes(searchTerm) || answer.includes(searchTerm)) {
237
+ item.style.display = 'block';
238
+ } else {
239
+ item.style.display = 'none';
240
+ }
241
+ });
242
+
243
+ // Check if any items are visible
244
+ checkVisibleItems();
245
+ });
246
+
247
+ function checkVisibleItems() {
248
+ const visibleItems = Array.from(faqItems).filter(item =>
249
+ item.style.display !== 'none'
250
+ );
251
+
252
+ const notFoundMessage = document.querySelector('.faq-not-found');
253
+ if (visibleItems.length === 0) {
254
+ notFoundMessage.style.display = 'block';
255
+ } else {
256
+ notFoundMessage.style.display = 'none';
257
+ }
258
+ }
259
+ });
260
+ </script>
261
+ {% endblock %}
templates/privacy.html ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% extends "base.html" %}
2
+
3
+ {% block title %}Privacy Policy - SkinAI{% endblock %}
4
+
5
+ {% block content %}
6
+ <section class="page-header">
7
+ <div class="container">
8
+ <h1>Privacy Policy</h1>
9
+ <p>Last updated: January 1, 2023</p>
10
+ </div>
11
+ </section>
12
+
13
+ <section class="privacy-content">
14
+ <div class="container">
15
+ <div class="content-card">
16
+ <h2>1. Introduction</h2>
17
+ <p>At SkinAI, we take your privacy seriously. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our service.</p>
18
+
19
+ <h2>2. Information We Collect</h2>
20
+ <p>We collect the following types of information:</p>
21
+ <ul>
22
+ <li><strong>Images:</strong> Skin lesion images that you upload for analysis</li>
23
+ <li><strong>Usage Data:</strong> Information about how you interact with our service</li>
24
+ <li><strong>Device Information:</strong> Browser type, IP address, and device type</li>
25
+ </ul>
26
+
27
+ <h2>3. How We Use Your Information</h2>
28
+ <p>We use the collected information for the following purposes:</p>
29
+ <ul>
30
+ <li>To provide and maintain our service</li>
31
+ <li>To process and analyze uploaded images</li>
32
+ <li>To improve our AI models and service</li>
33
+ <li>To respond to your inquiries and provide support</li>
34
+ </ul>
35
+
36
+ <h2>4. Data Storage and Security</h2>
37
+ <p>We do not permanently store the images you upload for analysis. All processing is done in real-time, and images are not saved after analysis is complete. We implement appropriate security measures to protect your information.</p>
38
+
39
+ <h2>5. Data Sharing</h2>
40
+ <p>We do not sell, trade, or otherwise transfer your information to third parties. We may share anonymized, aggregated data for research or educational purposes.</p>
41
+
42
+ <h2>6. Cookies and Tracking</h2>
43
+ <p>We use cookies and similar tracking technologies to enhance your experience on our website. You can set your browser to refuse cookies, but this may limit some functionality.</p>
44
+
45
+ <h2>7. Your Rights</h2>
46
+ <p>Depending on your location, you may have rights regarding your personal information, including:</p>
47
+ <ul>
48
+ <li>The right to access information we have about you</li>
49
+ <li>The right to request deletion of your data</li>
50
+ <li>The right to object to processing of your data</li>
51
+ </ul>
52
+
53
+ <h2>8. Children's Privacy</h2>
54
+ <p>Our service is not intended for individuals under the age of 18. We do not knowingly collect personal information from children.</p>
55
+
56
+ <h2>9. Changes to This Policy</h2>
57
+ <p>We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new policy on this page and updating the "Last Updated" date.</p>
58
+
59
+ <h2>10. Contact Us</h2>
60
+ <p>If you have questions about this Privacy Policy, please <a href="{{ url_for('contact') }}">contact us</a>.</p>
61
+ </div>
62
+ </div>
63
+ </section>
64
+ {% endblock %}
templates/terms.html ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% extends "base.html" %}
2
+
3
+ {% block title %}Terms of Service - SkinAI{% endblock %}
4
+
5
+ {% block content %}
6
+ <section class="page-header">
7
+ <div class="container">
8
+ <h1>Terms of Service</h1>
9
+ <p>Last updated: January 1, 2023</p>
10
+ </div>
11
+ </section>
12
+
13
+ <section class="terms-content">
14
+ <div class="container">
15
+ <div class="content-card">
16
+ <h2>1. Acceptance of Terms</h2>
17
+ <p>By accessing or using SkinAI, you agree to be bound by these Terms of Service. If you do not agree to these terms, please do not use our service.</p>
18
+
19
+ <h2>2. Description of Service</h2>
20
+ <p>SkinAI provides AI-powered analysis of skin lesions for educational purposes only. Our service is not intended to replace professional medical advice, diagnosis, or treatment.</p>
21
+
22
+ <h2>3. Medical Disclaimer</h2>
23
+ <p>SkinAI is an educational tool only and is not a substitute for professional medical advice. The analysis provided by our AI models should not be used for self-diagnosis or treatment decisions. Always consult with a qualified healthcare provider for medical concerns.</p>
24
+
25
+ <h2>4. User Responsibilities</h2>
26
+ <p>Users are responsible for:</p>
27
+ <ul>
28
+ <li>Providing clear, high-quality images for analysis</li>
29
+ <li>Not relying solely on SkinAI for medical decisions</li>
30
+ <li>Seeking professional medical advice for skin concerns</li>
31
+ <li>Using the service in compliance with applicable laws</li>
32
+ </ul>
33
+
34
+ <h2>5. Privacy</h2>
35
+ <p>Your privacy is important to us. Please review our <a href="{{ url_for('privacy') }}">Privacy Policy</a> to understand how we collect, use, and protect your information.</p>
36
+
37
+ <h2>6. Intellectual Property</h2>
38
+ <p>All content, features, and functionality of SkinAI, including but not limited to text, graphics, logos, and code, are the exclusive property of SkinAI and are protected by copyright, trademark, and other intellectual property laws.</p>
39
+
40
+ <h2>7. Limitation of Liability</h2>
41
+ <p>SkinAI and its creators shall not be liable for any direct, indirect, incidental, special, consequential, or punitive damages resulting from your use or inability to use the service.</p>
42
+
43
+ <h2>8. Changes to Terms</h2>
44
+ <p>We reserve the right to modify these Terms of Service at any time. We will provide notice of significant changes by updating the "Last Updated" date at the top of this page.</p>
45
+
46
+ <h2>9. Contact Information</h2>
47
+ <p>If you have any questions about these Terms, please <a href="{{ url_for('contact') }}">contact us</a>.</p>
48
+ </div>
49
+ </div>
50
+ </section>
51
+ {% endblock %}