Skip to content

Commit 13c461f

Browse files
Add popup html and css
1 parent 94c0f86 commit 13c461f

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

popup.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
body {
2+
font-family: 'Arial', sans-serif;
3+
width: 300px;
4+
margin: 0;
5+
padding: 20px;
6+
}
7+
8+
.container {
9+
text-align: center;
10+
}
11+
12+
h1 {
13+
font-size: 20px;
14+
color: #333;
15+
margin-bottom: 20px;
16+
}
17+
18+
button {
19+
background-color: #1e90ff;
20+
color: white;
21+
padding: 10px;
22+
border: none;
23+
border-radius: 5px;
24+
font-size: 14px;
25+
cursor: pointer;
26+
width: 100%;
27+
}
28+
29+
button:hover {
30+
background-color: #008cff;
31+
}
32+
33+
.summary-box {
34+
margin-top: 20px;
35+
background-color: #f7f7f7;
36+
padding: 15px;
37+
border-radius: 5px;
38+
font-size: 14px;
39+
color: #555;
40+
height: 120px;
41+
overflow-y: auto;
42+
display: none;
43+
}
44+

popup.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Summarize Me</title>
7+
<link rel="stylesheet" href="popup.css">
8+
</head>
9+
<body>
10+
<div class="container">
11+
<h1>Summarize Page</h1>
12+
<button id="summarizeBtn">Summarize Current Page</button>
13+
<div id="summaryResult" class="summary-box"></div>
14+
</div>
15+
<script src="popup.js"></script>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)