-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsidepanel.html
103 lines (103 loc) · 2.61 KB
/
sidepanel.html
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
<!DOCTYPE html>
<html>
<head>
<title>Runway Video Generator</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,500;1,9..40,500&display=swap"
rel="stylesheet"
/>
<style>
body {
font-family: "DM Sans", sans-serif;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
padding: 20px;
color: #0c0c0c;
font-size: 13px;
}
#videoContainer {
margin-top: 20px;
position: relative;
}
.remove-button {
position: absolute;
top: 10px;
right: 10px;
background-color: #fff;
width: 36px;
height: 36px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
border: none;
opacity: 0;
}
.remove-button:hover {
background-color: rgba(255, 255, 255, 0.5);
}
.remove-button svg {
fill: #0c0c0c;
pointer-events: none; /* prevent svg from capturing click events */
}
.video-wrapper {
position: relative;
margin-bottom: 20px;
align-items: flex-end;
display: flex;
flex-direction: column;
}
.video-wrapper:hover .remove-button {
opacity: 1;
}
video {
max-width: 100%;
}
#apiKeyForm {
margin-bottom: 20px;
}
#apiKey {
width: 250px;
}
.image-container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0;
margin-bottom: 8px;
}
.loader {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}
.remove-video:hover {
background-color: rgba(255, 0, 0, 1);
}
</style>
</head>
<body>
<div id="apiKeyForm" style="display: none">
<label for="apiKey">Enter your Runway API Key:</label>
<input type="password" id="apiKey" required />
<button id="saveApiKey">Save</button>
</div>
<div id="status">
Right click on an image and select "Generate video with Runway" to
generate a video.
</div>
<div id="videoContainer"></div>
<script src="sidepanel.js"></script>
</body>
</html>