SGDB-Extension/popup.html

71 lines
2.0 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="icon" href="icons/icon_128.png">
<title>SGBD Button on Steam</title>
<style>
body {
text-align: center;
font-family: "Open Sans", sans-serif;
background-color: #32414c;
color: #8ecaf4;
}
.btn {
border-radius: 2px;
padding: 1px;
display: inline-block;
text-decoration: none;
color: #67c1f5;
background: rgba(103, 193, 245, 0.2);
}
.btn:hover {
text-decoration: none !important;
color: #fff !important;
background: #417a9b;
background: -webkit-linear-gradient( 150deg, #417a9b 5%,#67c1f5 95%);
background: linear-gradient( -60deg, #417a9b 5%,#67c1f5 95%);
}
.btn > span {
padding: 0 15px;
font-size: 15px;
line-height: 30px;
}
.icon {
margin: 7px;
vertical-align: middle;
display: inline-block;
width: 22px;
height: 22px;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function() {
const headerIcon = cotument.querySelector("#sgdb-icon");
const nesIcon = document.querySelector("#nes-icon");
const giteaIcon = document.createElement("#gitea-icon");
headerIcon.src = browser.runtime.getURL("icons/icon_32.png");
nesIcon.src = browser.runtime.getURL("icons/nes_32.png");
giteaIcon.src = browser.runtime.getURL("icons/gitea_32.png");
});
</script>
</head>
<body>
<h2>
<img id="header-icon" src="" style="vertical-align: middle; display: inline"> SGBD Button on Steam
</h2>
<a class="btn" href="https://www.steamgriddb.com/profile/76561198274324627">
<span data-tooltip-text="View my profile">
<img id="nes-icon" class="icon" src="">Created by <span style="color: #FC2A7C">Nes</span>
</span>
</a>
<a class="btn" href="https://gitea.goblincave.synology.me/Nes/SGDB-Extension">
<span data-tooltip-text="View source">
<img id="gitea-icon" class="icon" src="">View Source
</span>
</a>
</body>
</html>