Skip to content

Commit f1b88a9

Browse files
committed
chore: update popup with github link and settings demo
1 parent 8db6a6a commit f1b88a9

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

entrypoints/popup/demo.ts

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

entrypoints/popup/index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@
88
<meta name="manifest.type" content="browser_action" />
99
</head>
1010

11-
<body>
12-
<div id="root" style="width: 300px; padding: 10px;">
11+
<body style="background-color: #170b09; color:#e6d4d1;">
12+
<div id="root" style="width: 500px; padding: 10px;">
1313
<h1>NRK TV Dual Subtitles</h1>
14-
<p>Settings have moved to the builtin media-player's subtitle menu</p>
14+
<p style="margin: 0; padding: 0;">Settings have moved to the builtin media-player's subtitle menu</p>
15+
<div style="display: inline-flex; align-items: center; gap: 5px;">
16+
<p>Have a feature request or bug report? </p>
17+
<a href="https://github.com/rioam2/nrktv-dual-subs/issues" target="_blank" style="color: inherit;">
18+
Create a ticket on Github
19+
</a>
20+
</div>
1521
</div>
22+
<script type="module" src="./main.ts"></script>
1623
</body>
1724

1825
</html>

entrypoints/popup/main.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { demoSrc } from './demo';
2+
3+
const demoImg = document.createElement('img');
4+
demoImg.src = demoSrc;
5+
demoImg.style.width = '100%';
6+
demoImg.style.height = 'auto';
7+
demoImg.style.borderRadius = '8px';
8+
demoImg.style.margin = '16px 0';
9+
demoImg.style.border = '0.5px solid #ccc';
10+
11+
document.getElementById('root')?.appendChild(demoImg);

0 commit comments

Comments
 (0)