-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsidepanel.html
More file actions
93 lines (84 loc) · 2.55 KB
/
Copy pathsidepanel.html
File metadata and controls
93 lines (84 loc) · 2.55 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Runway Virtual Try On</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
<div class="header">
<img src="logo.svg" alt="Runway Virtual Try On" height="24" />
</div>
<div class="section">
<div class="section-header">
<h2>Step 1:</h2>
<p>Upload a picture of yourself</p>
</div>
<div id="drop-area">
<input type="file" id="file-input" accept="image/*" />
<p>Drag & drop an image here<br />or click to select</p>
</div>
<div id="preview-container">
<img id="preview-image" src="" alt="Preview" />
<div id="remove-image-btn" class="delete-btn"></div>
</div>
</div>
<div class="section">
<div class="section-header">
<h2>Step 2:</h2>
<p>Right click on an image and select "Try on with Runway"</p>
</div>
<div id="wardrobe-container">
<div class="empty-wardrobe">No processed images yet</div>
</div>
</div>
<div class="section">
<div class="section-header">
<h2>Step 3:</h2>
<p>Enter your Runway API Key</p>
</div>
<div class="form-group">
<input
type="password"
id="api-key-input"
placeholder="Enter your API key"
/>
<p class="helper-text">
Don't have an API key?
<a href="https://dev.runwayml.com/" target="_blank">Get one here</a>
</p>
</div>
</div>
<div class="footer">
<button class="btn" id="try-on-btn">Try On</button>
</div>
</div>
<!-- Templates -->
<template id="wardrobe-item-template">
<div class="wardrobe-item">
<img src="" alt="Wardrobe item" />
<div class="delete-btn"></div>
<div class="loading-overlay" style="display: none">
<div class="spinner"></div>
<div class="loading-text">Loading, please wait...</div>
</div>
</div>
</template>
<!-- Try On Result Template -->
<template id="try-on-result-template">
<div class="try-on-result">
<div class="try-on-content">
<img
class="result-image"
src=""
alt="Try On Result"
style="display: none"
/>
<button class="btn close-btn">Close</button>
</div>
</div>
</template>
<script src="sidepanel.js"></script>
</body>
</html>