-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
109 lines (108 loc) · 2.74 KB
/
popup.html
File metadata and controls
109 lines (108 loc) · 2.74 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
<!DOCTYPE html>
<html>
<head>
<title>Add to Deck</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<style>
body {
width: 350px;
font-family: 'Roboto', sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 15px;
}
h1 {
font-size: 1.5em;
color: #333;
text-align: center;
margin-bottom: 15px;
}
#profile {
display: flex;
align-items: center;
background-color: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#profile img {
width: 80px;
height: 80px;
border-radius: 50%;
margin-right: 15px;
}
#profile-info {
display: flex;
flex-direction: column;
}
#name {
font-size: 1.2em;
font-weight: 500;
color: #222;
margin: 0;
}
#title {
font-size: 0.9em;
color: #555;
margin: 5px 0;
}
#username {
font-size: 0.8em;
color: #777;
margin: 0;
}
#addToDeck {
width: 100%;
padding: 12px;
margin-top: 15px;
border: none;
border-radius: 5px;
background-color: #0073b1;
color: white;
font-size: 1em;
cursor: pointer;
transition: background-color 0.3s;
}
#addToDeck:hover {
background-color: #005582;
}
#data-preview {
margin-top: 15px;
padding: 10px;
background-color: #e9e9e9;
border-radius: 5px;
}
#data-preview h3 {
margin-top: 0;
font-size: 1em;
color: #333;
}
#data-preview pre {
white-space: pre-wrap;
word-wrap: break-word;
font-size: 0.9em;
background-color: #fff;
padding: 10px;
border-radius: 5px;
}
</style>
</head>
<body>
<h1>Add to Deck</h1>
<div id="profile">
<img id="photo" src="" alt="Profile picture">
<div id="profile-info">
<h2 id="name"></h2>
<p id="title"></p>
<p id="username"></p>
</div>
</div>
<div id="data-preview">
<h3>Data to be sent:</h3>
<pre id="deck-data"></pre>
</div>
<button id="addToDeck">Add to Deck</button>
<div id="status"></div>
<script src="popup.js"></script>
</body>
</html>