All examplesInstructions for Survey Plan

Sample Webpage 2 HTML Code

HTML
<style>
.csp-glance{box-sizing:border-box;height:100vh;height:100dvh;display:flex;flex-direction:column;gap:14px;padding:16px 24px;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1f2933;background:#fff;line-height:1.45}
.csp-glance *{box-sizing:border-box}
.csp-g-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px}
.csp-g-head h1{margin:0;font-size:clamp(22px,2.6vw,32px);font-weight:700;line-height:1.15;text-wrap:balance}
.csp-g-head p{margin:2px 0 0;font-size:15px;color:#52606d}
.csp-g-live{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;background:#c81e1e;color:#fff;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap}
.csp-g-live:hover{background:#a51818}
.csp-g-live span{width:9px;height:9px;border-radius:50%;background:#fff}
.csp-g-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px}
.csp-g-left{min-height:0;display:flex;flex-direction:column;gap:14px}
.csp-g-cam{margin:0;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.csp-g-cam img{display:block;width:100%;flex:1 1 auto;min-height:0;object-fit:cover;border-radius:10px}
.csp-g-cam figcaption,.csp-g-map figcaption{font-size:13px;color:#52606d;margin-top:6px;text-wrap:pretty}
.csp-g-facts{margin:0;flex:0 0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.csp-g-facts div{background:#f1f5f9;border-radius:8px;padding:8px 12px}
.csp-g-facts dt{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#7b8794}
.csp-g-facts dd{margin:2px 0 0;font-size:15px;font-weight:600;color:#1f2933;text-wrap:pretty}
.csp-g-map{margin:0;min-height:0;display:flex;flex-direction:column}
.csp-g-map video,.csp-g-map img{display:block;width:100%;flex:1 1 auto;min-height:0;object-fit:contain;background:#fff;border-radius:10px}
.csp-credit{font-size:12px;color:#7b8794}

.csp-g-body{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
.csp-g-right{min-height:0;display:flex;flex-direction:column}
.csp-tab-in{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.csp-tabs{display:flex;gap:4px;border-bottom:1px solid #d9e2ec;margin-bottom:10px}
.csp-tabs label{cursor:pointer;padding:8px 16px;font-size:15px;font-weight:600;color:#52606d;border:1px solid transparent;border-bottom:none;border-radius:8px 8px 0 0;margin-bottom:-1px;white-space:nowrap}
.csp-tabs label:hover{color:#1f2933}
#csp-tab-map:checked~.csp-tabs label[for=csp-tab-map],#csp-tab-labels:checked~.csp-tabs label[for=csp-tab-labels]{color:#1f2933;background:#fff;border-color:#d9e2ec}
#csp-tab-map:focus-visible~.csp-tabs label[for=csp-tab-map],#csp-tab-labels:focus-visible~.csp-tabs label[for=csp-tab-labels]{outline:2px solid #2563eb;outline-offset:2px}
.csp-panel{display:none;flex:1;min-height:0}
#csp-tab-map:checked~.csp-panel-map,#csp-tab-labels:checked~.csp-panel-labels{display:flex}
.csp-full{font-size:13px;color:#2563eb}
.csp-zoom{display:flex;flex:1 1 auto;min-height:0;cursor:zoom-in}
.csp-zoom img{width:100%;height:100%;min-height:0;object-fit:contain}
.csp-lightbox{display:none}
.csp-lightbox:target{display:flex;position:fixed;inset:0;z-index:2147483000;align-items:center;justify-content:center;padding:52px 16px 16px;background:rgba(15,23,42,.94)}
.csp-lightbox-bg{position:absolute;inset:0;cursor:zoom-out}
.csp-lightbox img{position:relative;max-width:100%;max-height:100%;width:auto;height:auto;border-radius:6px;background:#fff}
.csp-lightbox-close{position:absolute;top:12px;right:16px;padding:6px 14px;border-radius:999px;background:#fff;color:#1f2933;font-weight:700;font-size:15px;text-decoration:none}

@media (max-width:760px),(max-height:520px){
  .csp-glance{height:auto;padding:16px}
  .csp-g-body{grid-template-columns:minmax(0,1fr)}
  .csp-g-cam img{flex:none;height:auto;aspect-ratio:1300/541}
  .csp-g-map video,.csp-g-map img{flex:none;height:auto}
}
</style>
<section class="csp-glance">
  <header class="csp-g-head">
    <div>
      <h1>Teton View Webcam</h1>
      <p>Grand Teton National Park, near Jackson, Wyoming</p>
    </div>
    <a class="csp-g-live" href="YOUR-LIVE-WEBCAM-URL"><span></span>Watch live</a>
  </header>
  <div class="csp-g-body">
    <div class="csp-g-left">
      <figure class="csp-g-cam">
        <img src="YOUR-WEBCAM-IMAGE-URL" alt="The view west from the camera across Jackson Hole to the Teton Range" width="1300" height="541">
        <figcaption>The view from the camera. Press Watch live for the live picture.</figcaption>
      </figure>
      <dl class="csp-g-facts">
        <div><dt>Location</dt><dd>43.7545&deg;&nbsp;N, 110.5799&deg;&nbsp;W</dd></div>
        <div><dt>Ground elevation</dt><dd>7,074&nbsp;ft (2,156&nbsp;m)</dd></div>
        <div><dt>Camera height</dt><dd>5.8&nbsp;ft (1.75&nbsp;m) above the ground</dd></div>
        <div><dt>Faces</dt><dd>West (269&deg;)</dd></div>
        <div><dt>Field of view</dt><dd>48&deg;, Static Peak to Maidenform Peak</dd></div>
        <div><dt>Highest peak in view</dt><dd>Grand Teton, 13,766&nbsp;ft, 11.1&nbsp;mi away</dd></div>
      </dl>
    </div>
    <div class="csp-g-right">
      <input class="csp-tab-in" type="radio" name="csp-view" id="csp-tab-map" checked>
      <input class="csp-tab-in" type="radio" name="csp-view" id="csp-tab-labels">
      <div class="csp-tabs">
        <label for="csp-tab-map">Map animation</label>
        <label for="csp-tab-labels">What you&rsquo;re seeing</label>
      </div>
      <figure class="csp-g-map csp-panel csp-panel-map">
        <video src="your-map-zoom-video.mp4" width="1000" height="1054" autoplay muted loop playsinline controls aria-label="Animated map zooming from the whole country in to the ground this camera can see"></video>
        <figcaption>From the whole country in to the ground this camera can see, shaded orange. <span class="csp-credit">Maps: CamStats&nbsp;PRO</span></figcaption>
      </figure>
      <figure class="csp-g-map csp-panel csp-panel-labels" id="csp-labels-view">
        <a class="csp-zoom" href="#csp-labels-full" aria-label="Open the labeled view full screen"><img src="your-labeled-camera-view.png" alt="The webcam view with each mountain, lake and glacier named, from Static Peak on the left to Maidenform Peak on the right." width="1502" height="796" loading="lazy"></a>
        <figcaption>The same view as the webcam, with each peak, lake and glacier named. Click the picture to see it full screen. <span class="csp-credit">Labels: CamStats&nbsp;PRO</span></figcaption>
      </figure>
    </div>
  </div>
  <!-- Full screen: opened by the link above, closed by Close or a click on the dark background. No script. -->
  <div class="csp-lightbox" id="csp-labels-full" role="dialog" aria-label="The labeled view, full screen">
    <a class="csp-lightbox-bg" href="#csp-labels-view" tabindex="-1" aria-hidden="true"></a>
    <img src="your-labeled-camera-view.png" alt="The webcam view with each mountain, lake and glacier named, full screen." width="1502" height="796" loading="lazy">
    <a class="csp-lightbox-close" href="#csp-labels-view">Close &times;</a>
  </div>
</section>