This commit is contained in:
sagiferi
2026-10-24 13:20:55 +02:00
parent 93e06d148a
commit b33d1543fc
326 changed files with 20843 additions and 3 deletions
+115
View File
@@ -0,0 +1,115 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sites</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&amp;family=IBM+Plex+Mono:wght@400;500&amp;display=swap">
<style>
body{margin:0}
a{color:#F5B544}a:hover{color:#FFD07A}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; position: relative; overflow: hidden; background: #0A0D13; color: #E8ECF2; font-family: 'Barlow', system-ui, sans-serif; padding: 64px 20px 0">
<div style="display: flex; align-items: center; justify-content: space-between; gap: 12px">
<div style="display: flex; flex-direction: column; gap: 4px">
<h1 style="margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.01em">Horizons</h1>
<p style="margin: 0; font-size: 15px; color: #93A0B4">Artificial horizons for NINA &amp; Stellarium</p>
</div>
<button aria-label="Settings" style="width: 44px; height: 44px; border-radius: 22px; border: 1px solid #263042; background: #121722; color: #E8ECF2; display: flex; align-items: center; justify-content: center; padding: 0">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><path d="M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1"></path><circle cx="15" cy="6" r="2"></circle><circle cx="9" cy="12" r="2"></circle><circle cx="17" cy="18" r="2"></circle></svg>
</button>
</div>
<div style="margin-top: 28px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #93A0B4">Sites · 2</div>
<div style="margin-top: 12px; display: flex; flex-direction: column; gap: 14px">
<a href="Review.dc.html" style="display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: #E8ECF2; background: #121722; border: 1px solid #232C3B; border-radius: 18px; padding: 16px">
<div style="display: flex; justify-content: space-between; align-items: flex-start; gap: 12px">
<div style="display: flex; flex-direction: column; gap: 4px">
<span style="font-size: 19px; font-weight: 600">Backyard pier</span>
<span style="font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #93A0B4">47.4979° N · 19.0402° E · 112 m</span>
</div>
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#93A0B4" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="margin-top: 4px"><path d="M9 5l7 7-7 7"></path></svg>
</div>
<svg width="318" height="64" viewBox="0 0 318 64" aria-hidden="true" style="display: block">
<line x1="0" y1="64" x2="318" y2="64" stroke="#263042" stroke-width="1"></line>
<path d="{{siteA.area}}" fill="#F5B544" fill-opacity="0.16"></path>
<path d="{{siteA.line}}" fill="none" stroke="#F5B544" stroke-width="1.6" stroke-linejoin="round"></path>
</svg>
<div style="display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: #7F8CA1; margin-top: -6px">
<span>N</span><span>E</span><span>S</span><span>W</span><span>N</span>
</div>
<div style="display: flex; flex-wrap: wrap; gap: 8px; align-items: center">
<span style="font-size: 14px; color: #93A0B4">24 frames · full 360°</span>
<span style="flex: 1"></span>
<span style="display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: #1A2130; color: #C9D2DE">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#6CC3E6" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7"></path></svg>NINA</span>
<span style="display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: #1A2130; color: #C9D2DE">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#6CC3E6" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7"></path></svg>Stellarium</span>
</div>
</a>
<a href="Capture.dc.html" style="display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: #E8ECF2; background: #121722; border: 1px solid #232C3B; border-radius: 18px; padding: 16px">
<div style="display: flex; justify-content: space-between; align-items: flex-start; gap: 12px">
<div style="display: flex; flex-direction: column; gap: 4px">
<span style="font-size: 19px; font-weight: 600">Dark site</span>
<span style="font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #93A0B4">[LAT] · [LON] · [ELEV]</span>
</div>
<span style="font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: #2A2312; color: #F5B544">In progress</span>
</div>
<svg width="318" height="64" viewBox="0 0 318 64" aria-hidden="true" style="display: block">
<line x1="0" y1="64" x2="318" y2="64" stroke="#263042" stroke-width="1"></line>
<line x1="{{siteB.endX}}" y1="0" x2="318" y2="64" stroke="none"></line>
<rect x="{{siteB.endX}}" y="0" width="{{siteB.restW}}" height="64" fill="#121722" stroke="#263042" stroke-dasharray="3 4"></rect>
<path d="{{siteB.area}}" fill="#F5B544" fill-opacity="0.16"></path>
<path d="{{siteB.line}}" fill="none" stroke="#F5B544" stroke-width="1.6" stroke-linejoin="round"></path>
</svg>
<div style="display: flex; flex-direction: column; gap: 8px">
<div style="height: 6px; border-radius: 3px; background: #1A2130; overflow: hidden">
<div style="width: 58%; height: 6px; background: #F5B544"></div>
</div>
<div style="display: flex; justify-content: space-between; font-size: 14px; color: #93A0B4">
<span>210° of 360° covered</span>
<span style="color: #F5B544; font-weight: 600">Continue survey</span>
</div>
</div>
</a>
</div>
<div style="position: absolute; left: 20px; right: 20px; bottom: 34px; display: flex; flex-direction: column; gap: 10px">
<a href="Setup.dc.html" style="height: 56px; border-radius: 16px; background: #F5B544; color: #1A1204; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 700">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"></path></svg>
New horizon survey
</a>
<button style="height: 48px; border-radius: 14px; border: 1px solid #263042; background: transparent; color: #E8ECF2; font-family: inherit; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"></path><path d="M14 3v4h4"></path><path d="M12 11v6M9 14l3 3 3-3"></path></svg>
Import existing .hrz
</button>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
renderVals() {
const W = 318, H = 64, MAX = 40;
const A = [[0,12],[10,14],[20,15],[30,13],[40,9],[50,6],[60,4],[70,3],[80,3],[90,4],[100,8],[110,22],[120,26],[130,24],[140,21],[150,9],[160,5],[170,4],[180,5],[190,7],[200,12],[210,17],[220,19],[230,18],[240,16],[250,12],[260,8],[270,6],[280,5],[290,5],[300,7],[310,10],[320,11],[330,13],[340,14],[350,13],[360,12]];
const B = [[0,6],[10,7],[20,8],[30,6],[40,5],[50,4],[60,3],[70,2],[80,2],[90,3],[100,5],[110,9],[120,11],[130,8],[140,6],[150,4],[160,3],[170,3],[180,4],[190,6],[200,7],[210,6]];
const px = (az) => (az / 360 * W).toFixed(1);
const py = (alt) => (H - alt / MAX * H).toFixed(1);
const line = (pts) => pts.map((p, i) => (i ? 'L' : 'M') + px(p[0]) + ' ' + py(p[1])).join(' ');
const area = (pts) => 'M' + px(pts[0][0]) + ' ' + H + ' ' + pts.map((p) => 'L' + px(p[0]) + ' ' + py(p[1])).join(' ') + ' L' + px(pts[pts.length - 1][0]) + ' ' + H + ' Z';
const endX = Number(px(210));
return {
siteA: { line: line(A), area: area(A) },
siteB: { line: line(B), area: area(B), endX: endX, restW: (W - endX).toFixed(1) }
};
}
}
</script>
</body>
</html>