yt-playlist-features/src/options/options.html

88 lines
2.5 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<style>
body {
font-family: "Roboto", "Arial", sans-serif;
font-size: 14px;
padding: 16px;
min-width: 360px;
color: #333;
}
h2 {
font-size: 16px;
margin: 0 0 12px;
}
label {
display: block;
font-size: 12px;
color: #606060;
margin-bottom: 4px;
}
input[type="text"] {
width: 100%;
box-sizing: border-box;
padding: 8px 10px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 13px;
font-family: "Roboto Mono", monospace;
}
.hint {
font-size: 11px;
color: #999;
margin-top: 4px;
}
.actions {
margin-top: 12px;
display: flex;
gap: 8px;
}
button {
padding: 6px 16px;
border: 1px solid #ccc;
border-radius: 16px;
background: #fff;
font-size: 13px;
cursor: pointer;
}
button:hover {
background: #f2f2f2;
}
button.primary {
background: #065fd4;
color: #fff;
border-color: #065fd4;
}
button.primary:hover {
background: #0554b8;
}
.status {
font-size: 12px;
margin-top: 8px;
color: #1a8a1a;
}
</style>
</head>
<body>
<h2>YT Playlist Features</h2>
<label for="apiKey">YouTube Data API Key</label>
<input type="text" id="apiKey" placeholder="..." />
<div class="hint">
Leave blank to use the default key.
<a
href="https://console.cloud.google.com/apis/credentials"
target="_blank"
>Get your own key</a
>
</div>
<div class="actions">
<button class="primary" id="save">Save</button>
<button id="clear">Clear</button>
</div>
<div class="status" id="status"></div>
<script src="options.js"></script>
</body>
</html>