update ui and add new audio components

This commit is contained in:
2026-03-14 00:45:15 -07:00
parent aa3f23c92c
commit 843c2fe96f
13 changed files with 2458 additions and 155 deletions

View File

@@ -5,6 +5,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Stellarium NOW Wrapper</title>
<style>
:root {
--sky-embed-width: 100%;
--sky-embed-height: 106%;
--sky-embed-left: 0%;
--sky-embed-top: -2%;
--sky-brand-mask-width: 0%;
}
html,
body {
width: 100%;
@@ -32,14 +40,45 @@
#sky-embed {
position: absolute;
inset: 0;
width: 100%;
height: 106%;
top: -2%;
left: var(--sky-embed-left);
top: var(--sky-embed-top);
width: var(--sky-embed-width);
height: var(--sky-embed-height);
border: 0;
background: #000;
}
#sky-brand-mask {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: var(--sky-brand-mask-width);
pointer-events: none;
background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 58%, rgba(0, 0, 0, 0) 100%);
z-index: 3;
}
@media (max-width: 760px) {
:root {
--sky-embed-width: 122%;
--sky-embed-height: 112%;
--sky-embed-left: -10%;
--sky-embed-top: -3%;
--sky-brand-mask-width: 12%;
}
}
@media (max-width: 480px) {
:root {
--sky-embed-width: 126%;
--sky-embed-height: 116%;
--sky-embed-left: -12%;
--sky-embed-top: -4%;
--sky-brand-mask-width: 15%;
}
}
#sky-shell::before {
content: "";
position: absolute;
@@ -76,6 +115,7 @@
<body>
<div id="sky-shell">
<iframe id="sky-embed" title="Decorative sky background" scrolling="no" allow="geolocation"></iframe>
<div id="sky-brand-mask" aria-hidden="true"></div>
</div>
<script>
(function () {