-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (98 loc) · 3.47 KB
/
index.html
File metadata and controls
121 lines (98 loc) · 3.47 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fashion Suggestor</title>
<!-- <link rel="stylesheet" href="style.css"> -->
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<header class="site-header">
<div class="logo">✨ Look Right</div>
<nav>
<ul>
<li><a href="#clothes">Clothes</a></li>
<li><a href="#jewellery">Jewellery</a></li>
<li><a href="#hairstyle">Hairstyles</a></li>
<li><a href="#footwear">Footwear</a></li>
<!-- <li><a href="{{ url_for('signup') }}">Signup</a></li>
<li><a href="/">Login</a></li> -->
<li><button id="logoutBtn" class="logout-btn">Logout</button></li>
</ul>
</nav>
</header>
<!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/posenet"></script> -->
<section class="hero">
<h1>Welcome, <span id="userName"></span> 👋</h1>
<p>Discover your personalized fashion inspirations today!</p>
</section>
<section class="scanner">
<h2>📸 Upload Your Photo</h2>
<p>Upload a full-body photo to get personalized fashion suggestions!</p>
<form action="/predict" method="post" enctype="multipart/form-data">
<input type="file" id="photoInput" name="file" accept="image/*" required>
<button id="scanBtn" type="submit">Upload & Predict</button>
<div class="preview">
<img id="photoPreview" alt="Your photo will appear here">
</div>
</form>
<!-- <input type="file" id="photoInput" accept="image/*">
<button id="scanBtn">Scan & Suggest</button> -->
<!-- <div class="preview">
<img id="photoPreview" alt="Your photo will appear here">
</div> -->
{% if result %}
<h3>Your Body Shape Is: {{ result }}</h3>
{% endif %}
<div class="occasion">
<label for="occasionSelect">Choose Occasion:</label>
<select id="occasionSelect">
<option value="casual">Casual</option>
<option value="party">Party</option>
<option value="wedding">Wedding</option>
<option value="office">Office</option>
</select>
</div>
<ul>
<li><a href="#clothes">Clothes</a></li>
<li><a href="#jewellery">Jewellery</a></li>
<li><a href="#hairstyle">Hairstyles</a></li>
<li><a href="#footwear">Footwear</a></li>
</ul>
</section>
<!-- CATEGORY SECTIONS -->
<main class="categories">
<section id="clothes" class="category">
<h2>👗 Clothes</h2>
<div class="grid">
</div>
</section>
<section id="jewellery" class="category">
<h2>💍 Jewellery</h2>
<div class="grid">
</div>
</section>
<section id="hairstyle" class="category">
<h2>💇 Hairstyles</h2>
<div class="grid">
</section>
<section id="footwear" class="category">
<h2>👠 Footwear</h2>
<div class="grid">
</div>
</section>
</main>
<footer class="site-footer">
<p>© 2025 Fashion Suggestor | Designed with ❤️ for Women</p>
</footer>
<script>
// Pass Flask variable into JS
const predictedBodyType = "{{ result if result else '' }}";
</script>
<script>
const staticUrl = "{{ url_for('static', filename='images/') }}";
</script>
<script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>