This repository has been archived by the owner on Nov 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
executable file
·163 lines (158 loc) · 4.64 KB
/
popup.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap" rel="stylesheet">
<style>
body {
display: flex;
flex-direction: column;
width: fit-content;
font-family: 'Ubuntu', sans-serif;
background-color: whitesmoke;
}
a {
text-decoration: none;
}
header {
display: flex;
justify-content: space-between;
width: 100%;
}
#header {
text-align: center;
color: #2c3e50;
}
#skillTreeIcon {
width: 100px;
}
#profile-icon {
width: 20px;
}
main {
display: flex;
flex-direction: column;
}
input {
border-radius: 4px;
border: 1.5px solid #2c3e50;
display: block;
width: 350px;
height: 1.5rem;
margin-top: 0.25rem;
padding-left: 0.5rem;
color: #2c3e50;
margin-bottom: 0.5rem;
}
#resource-img {
object-fit: contain;
height: 120px;
border-radius: 6px;
margin-bottom: 0.5rem;
}
#resource-dur, #resource-site-name {
display: inline-block;
width: 25%;
}
#save-button {
width: 40%;
background-color: #2c3e50;
color: whitesmoke;
}
.input-section {
display: flex;
flex-direction: column;
}
#submit-section {
display: flex;
justify-content: center;
}
#clear-button {
width: 10%;
background-color: #e74c3c;
color: whitesmoke;
border-radius: 4px;
}
#help-button {
position: absolute;
bottom: 0.5rem;
right: 0.5rem;
width: 20px;
height: 20px;
background-color: gray;
border-radius: 100%;
text-align: center;
}
.hidden {
visibility: hidden;
}
</style>
</head>
<body>
<header>
<div id="header-left">
<a href="">
<img id="skillTreeIcon" src="images/skillTreeLogo.png" alt="Skill Tree Logo" />
</a>
</div>
<div id="header-right">
<a href="">
option 1
</a>
<a href="">
option 2
</a>
<a href="http://www.skilltree.com/profile/">
<img id="profile-icon" src="images/defaultProfile.png" alt="Profile" />
</a>
</div>
</header>
<main>
<h3 id="header"></h3>
<form action="/send_result.js" method="POST">
<div class="input-section">
<img src="" id="resource-img" alt="resource img" />
<input type="text" id="resource-img-text" name="img" placeholder="Image URL" value="" />
</div>
<div class="input-section">
<label for="resource-name">Title*</label>
<input type="text" id="resource-name" name="title" placeholder="eg. A Beginner's Guide to Space Travel" value="" />
</div>
<div class="input-section">
<label for="resource-authors">Author(s)*</label>
<input type="textbox" id="resource-authors" name="authors" placeholder="eg. Bruce Lee & Kevin Lee" value="" />
</div>
<div class="input-section">
<label for="resource-desc">Description</label>
<input type="text" id="resource-desc" name="desc" placeholder="" value="" />
</div>
<div class="inline-section">
<div class="input-section" title="hh:mm:ss or #pages">
<label for="resource-dur">Length</label>
<input type="text" id="resource-dur" name="dur" placeholder='hh:mm:ss' value="" />
</div>
<div class="input-section">
<label for="resource-site-name">Publisher</label>
<input type="text" id="resource-site-name" name="site" placeholder="eg. YouTube" value="" />
</div>
<div>
<div class="input-section">
<label for="resource-link">URL</label>
<input type="text" id="resource-link" name="url" placeholder="" value="" />
</div>
<div class="input-section">
<label for="json">JSON</label>
<input type="text" id="json" name="json" placeholder="" value="" />
</div>
<div id="submit-section">
<input type="submit" value="Send to SkillTree" id="save-button" />
<button onclick="clearForm()" id="clear-button">D</button>
</div>
<!-- <input type="text" id="resource-tags" name="tags" placeholder="" value="" /> -->
</form>
<a id="help-button" href="">a</a>
</main>
<footer>
</footer>
<script src="popup.js"></script>
</body>
</html>