nit: added footer with version and github.

This commit is contained in:
2025-10-08 16:32:04 +03:00
parent 584ced252f
commit f292bd7149
3 changed files with 55 additions and 0 deletions

View File

@@ -612,4 +612,40 @@ body::-webkit-scrollbar-corner,
.exception-remove:hover { .exception-remove:hover {
background: #d00030; background: #d00030;
}
/* Footer Styles */
.footer {
margin-top: 16px;
padding: 12px 16px;
border-top: 1px solid var(--input-border);
background: var(--section-bg);
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.8em;
color: var(--text-color);
opacity: 0.7;
}
.version {
font-weight: 500;
}
.github-link {
display: flex;
align-items: center;
gap: 4px;
color: var(--text-color);
text-decoration: none;
opacity: 0.7;
transition: opacity 0.2s ease, color 0.2s ease;
}
.github-link:hover {
opacity: 1;
color: var(--accent);
} }

View File

@@ -149,6 +149,16 @@
</div> </div>
</div> </div>
<footer class="footer">
<div class="footer-content">
<span class="version">v<span id="version-number">...</span></span>
<a href="https://github.com/obsqrbtz/goose-highlighter" target="_blank" class="github-link">
<i class="fa-brands fa-github"></i>
<span>GitHub</span>
</a>
</div>
</footer>
<script type="module" src="../dist/popup/popup.js"></script> <script type="module" src="../dist/popup/popup.js"></script>
</body> </body>

View File

@@ -15,8 +15,17 @@ function localizePage(): void {
}); });
} }
function displayVersion(): void {
const manifest = chrome.runtime.getManifest();
const versionElement = document.getElementById('version-number');
if (versionElement && manifest.version) {
versionElement.textContent = manifest.version;
}
}
document.addEventListener('DOMContentLoaded', async () => { document.addEventListener('DOMContentLoaded', async () => {
localizePage(); localizePage();
displayVersion();
const controller = new PopupController(); const controller = new PopupController();
await controller.initialize(); await controller.initialize();
}); });