kevin
12 June 2026
The content provided is for general testing purposes only.
Target App
drupal_limrock
Version
v1
HTML Markup
<div id="worldtree-viewport-canvas">
<div class="worldtree-layout-grid" style="display: flex; gap: 25px; font-family: system-ui, sans-serif; padding: 20px; max-width: 1200px; margin: 0 auto;">
<aside class="layout-region left-panel" style="width: 280px; display: flex; flex-direction: column; gap: 20px; align-self: start;">
<div class="component-card" style="background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);">
<h3 style="color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px;">
👤 Student Directory
</h3>
<ul style="list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;">
{{ range $.Rosters.student }}
<li style="margin: 0;">
<a href="/api/node/?path=usa/california/la/usc/drupal_limrock/student/v1/{{ .ID }}" style="text-decoration: none; color: #334155; font-size: 0.95rem; padding: 10px 12px; display: block; border-radius: 8px; background: #f8fafc; border-left: 3px solid #10b981; font-weight: 500;">
👤 {{ index .RawData "field_2" }} {{ index .RawData "field_3" }}
</a>
</li>
{{ else }}
<li style="font-size: 0.85rem; color: #94a3b8; font-style: italic; padding: 6px 12px;">No students registered</li>
{{ end }}
</ul>
</div>
<div class="component-card" style="background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);">
<h3 style="color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px;">
📚 Ice Cream Shops!!!
</h3>
<ul style="list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;">
{{ range $.Rosters.taxonomy }}
<li style="margin: 0;">
<a href="/api/node/?path=usa/california/la/usc/drupal_limrock/restaurant/v1/{{ .ID }}" style="text-decoration: none; color: #334155; font-size: 0.95rem; padding: 10px 12px; display: block; border-radius: 8px; background: #f8fafc; border-left: 3px solid #3b82f6; font-weight: 500;">
🍔 {{ if index .RawData "name" }}{{ index .RawData "name" }}{{ else }}{{ .Name }}{{ end }}
</a>
</li>
{{ else }}
<li style="font-size: 0.85rem; color: #94a3b8; font-style: italic; padding: 6px 12px;">No taxonomy categories found</li>
{{ end }}
</ul>
</div>
<div class="component-card" style="background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);">
<h3 style="color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px;">
📚 2026 Graduating Seniors
</h3>
<ul style="list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;">
{{ range $.Rosters.views }}
<li style="margin: 0;">
<a href="/api/node/?path=usa/california/la/usc/drupal_limrock/student/v1/{{ .ID }}" style="text-decoration: none; color: #334155; font-size: 0.95rem; padding: 10px 12px; display: block; border-radius: 8px; background: #f8fafc; border-left: 3px solid #3b82f6; font-weight: 500;">
🍔 {{ if index .RawData "name" }}{{ index .RawData "name" }}{{ else }}{{ .Name }}{{ end }}
</a>
</li>
{{ else }}
<li style="font-size: 0.85rem; color: #94a3b8; font-style: italic; padding: 6px 12px;">No taxonomy categories found</li>
{{ end }}
</ul>
</div>
<div class="component-card" style="background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);">
<h3 style="color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px;">
📚 Restaurants
</h3>
<ul style="list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;">
{{ range $.Rosters.restaurant }}
<li style="margin: 0;">
<a href="/api/node/?path=usa/california/la/usc/drupal_limrock/restaurant/v1/{{ .ID }}" style="text-decoration: none; color: #334155; font-size: 0.95rem; padding: 10px 12px; display: block; border-radius: 8px; background: #f8fafc; border-left: 3px solid #3b82f6; font-weight: 500;">
📍 {{ index .RawData "field_0" }}
</a>
</li>
{{ else }}
<li style="font-size: 0.85rem; color: #94a3b8; font-style: italic; padding: 6px 12px;">No partners found</li>
{{ end }}
</ul>
</div>
</aside>
<main class="layout-region main-panel" style="flex: 1; display: flex; flex-direction: column; gap: 25px;">
<div class="component-card" style="background: #ffffff; padding: 35px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);">
{{ if $.ActiveEntity }}
<h2 style="color: #0f172a; margin-top: 0; margin-bottom: 25px; border-bottom: 2px solid #f1f5f9; padding-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px;">
<span style="display: flex; align-items: center; gap: 10px;">
<span style="background: #e0f2fe; color: #0369a1; padding: 4px 12px; border-radius: 8px; font-size: 1.1rem;">📍 Partner</span>
{{ if index $.ActiveEntity.RawData "field_1" }}
<span style="background: #f1f5f9; color: #475569; font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1px solid #e2e8f0;">
🏢 {{ index $.ActiveEntity.RawData "field_1" }} </span>
{{ end }}
</h2>
{{ if index $.ActiveEntity.RawData "field_6" }}
<div style="margin-bottom: 25px; width: 120px; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; background: #f8fafc; padding: 8px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);">
<img src="/ipfs/{{ index $.ActiveEntity.RawData "field_6" }}" style="width: 100%; height: 100%; object-fit: contain;" alt="Partner Logo Asset" />
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_1" }}
<div style="margin: 0 0 25px 0; padding: 15px 20px; background: #f8fafc; border-left: 4px solid #3b82f6; color: #334155; line-height: 1.6; font-size: 1rem; border-radius: 0 8px 8px 0;">
{{ index $.ActiveEntity.RawData "field_1" }} </div>
{{ end }}
<div class="display-fields" style="display: flex; flex-direction: column; gap: 16px;">
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">RESTAURANT ID:</span>
<span style="color: #0f172a; font-weight: 500;">{{ index $.ActiveEntity.RawData "field_0" }}</span>
</div>
{{ if index $.ActiveEntity.RawData "field_2" }}
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">ADDRESS:</span>
<span style="color: #0f172a; font-weight: 500;">{{ index $.ActiveEntity.RawData "field_2" }}</span>
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_5" }}
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">HOURS:</span>
<span style="color: #059669; font-weight: 600; font-size: 0.95rem;">⏰ {{ index $.ActiveEntity.RawData "field_5" }}</span>
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_4" }}
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">GEOLOCATION:</span>
<span style="color: #0f172a; font-weight: 500; font-family: monospace;">{{ index $.ActiveEntity.RawData "field_4" }}</span>
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_8" }}
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">WEBSITE:</span>
<a href="{{ index $.ActiveEntity.RawData "field_8" }}" target="_blank" style="color: #3b82f6; font-weight: 500; text-decoration: none; word-break: break-all;">
{{ index $.ActiveEntity.RawData "field_8" }} 🔗
</a>
</div>
{{ end }}
{{ if or (index $.ActiveEntity.RawData "field_9") (index $.ActiveEntity.RawData "field_10") }}
<div style="margin-top: 15px; background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0;">
<span style="font-weight: bold; color: #64748b; display: block; margin-bottom: 10px; font-family: monospace; font-size: 0.85rem; letter-spacing: 0.03em;">METADATA & EXTERNAL INDEXES:</span>
<div style="display: flex; flex-direction: column; gap: 8px;">
{{ if index $.ActiveEntity.RawData "field_9" }}
<div style="font-size: 0.9rem; color: #475569;">
<strong style="color: #64748b;">Wikipedia:</strong>
<a href="https://en.wikipedia.org/wiki/{{ index $.ActiveEntity.RawData "field_9" }}" target="_blank" style="color: #0369a1; text-decoration: none; margin-left: 5px;">
{{ index $.ActiveEntity.RawData "field_9" }}
</a>
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_4" }}
<div style="font-size: 0.9rem; color: #475569;">
<strong style="color: #64748b;">OpenStreetMap ID:</strong>
<span style="font-family: monospace; background: #e2e8f0; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; margin-left: 5px; color: #334155;">
{{ index $.ActiveEntity.RawData "field_4" }}
</span>
</div>
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ else }}
<div style="text-align: center; padding: 40px; color: #94a3b8; font-style: italic;">
Select a partner or entry from the left directory to inspect its active decentralized block schema data.
</div>
{{ end }}
</div>
</main>
</div>
</div>
<div class="worldtree-layout-grid" style="display: flex; gap: 25px; font-family: system-ui, sans-serif; padding: 20px; max-width: 1200px; margin: 0 auto;">
<aside class="layout-region left-panel" style="width: 280px; display: flex; flex-direction: column; gap: 20px; align-self: start;">
<div class="component-card" style="background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);">
<h3 style="color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px;">
👤 Student Directory
</h3>
<ul style="list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;">
{{ range $.Rosters.student }}
<li style="margin: 0;">
<a href="/api/node/?path=usa/california/la/usc/drupal_limrock/student/v1/{{ .ID }}" style="text-decoration: none; color: #334155; font-size: 0.95rem; padding: 10px 12px; display: block; border-radius: 8px; background: #f8fafc; border-left: 3px solid #10b981; font-weight: 500;">
👤 {{ index .RawData "field_2" }} {{ index .RawData "field_3" }}
</a>
</li>
{{ else }}
<li style="font-size: 0.85rem; color: #94a3b8; font-style: italic; padding: 6px 12px;">No students registered</li>
{{ end }}
</ul>
</div>
<div class="component-card" style="background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);">
<h3 style="color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px;">
📚 Ice Cream Shops!!!
</h3>
<ul style="list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;">
{{ range $.Rosters.taxonomy }}
<li style="margin: 0;">
<a href="/api/node/?path=usa/california/la/usc/drupal_limrock/restaurant/v1/{{ .ID }}" style="text-decoration: none; color: #334155; font-size: 0.95rem; padding: 10px 12px; display: block; border-radius: 8px; background: #f8fafc; border-left: 3px solid #3b82f6; font-weight: 500;">
🍔 {{ if index .RawData "name" }}{{ index .RawData "name" }}{{ else }}{{ .Name }}{{ end }}
</a>
</li>
{{ else }}
<li style="font-size: 0.85rem; color: #94a3b8; font-style: italic; padding: 6px 12px;">No taxonomy categories found</li>
{{ end }}
</ul>
</div>
<div class="component-card" style="background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);">
<h3 style="color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px;">
📚 2026 Graduating Seniors
</h3>
<ul style="list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;">
{{ range $.Rosters.views }}
<li style="margin: 0;">
<a href="/api/node/?path=usa/california/la/usc/drupal_limrock/student/v1/{{ .ID }}" style="text-decoration: none; color: #334155; font-size: 0.95rem; padding: 10px 12px; display: block; border-radius: 8px; background: #f8fafc; border-left: 3px solid #3b82f6; font-weight: 500;">
🍔 {{ if index .RawData "name" }}{{ index .RawData "name" }}{{ else }}{{ .Name }}{{ end }}
</a>
</li>
{{ else }}
<li style="font-size: 0.85rem; color: #94a3b8; font-style: italic; padding: 6px 12px;">No taxonomy categories found</li>
{{ end }}
</ul>
</div>
<div class="component-card" style="background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);">
<h3 style="color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px;">
📚 Restaurants
</h3>
<ul style="list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;">
{{ range $.Rosters.restaurant }}
<li style="margin: 0;">
<a href="/api/node/?path=usa/california/la/usc/drupal_limrock/restaurant/v1/{{ .ID }}" style="text-decoration: none; color: #334155; font-size: 0.95rem; padding: 10px 12px; display: block; border-radius: 8px; background: #f8fafc; border-left: 3px solid #3b82f6; font-weight: 500;">
📍 {{ index .RawData "field_0" }}
</a>
</li>
{{ else }}
<li style="font-size: 0.85rem; color: #94a3b8; font-style: italic; padding: 6px 12px;">No partners found</li>
{{ end }}
</ul>
</div>
</aside>
<main class="layout-region main-panel" style="flex: 1; display: flex; flex-direction: column; gap: 25px;">
<div class="component-card" style="background: #ffffff; padding: 35px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);">
{{ if $.ActiveEntity }}
<h2 style="color: #0f172a; margin-top: 0; margin-bottom: 25px; border-bottom: 2px solid #f1f5f9; padding-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px;">
<span style="display: flex; align-items: center; gap: 10px;">
<span style="background: #e0f2fe; color: #0369a1; padding: 4px 12px; border-radius: 8px; font-size: 1.1rem;">📍 Partner</span>
{{ if index $.ActiveEntity.RawData "field_1" }}
<span style="background: #f1f5f9; color: #475569; font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1px solid #e2e8f0;">
🏢 {{ index $.ActiveEntity.RawData "field_1" }} </span>
{{ end }}
</h2>
{{ if index $.ActiveEntity.RawData "field_6" }}
<div style="margin-bottom: 25px; width: 120px; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; background: #f8fafc; padding: 8px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);">
<img src="/ipfs/{{ index $.ActiveEntity.RawData "field_6" }}" style="width: 100%; height: 100%; object-fit: contain;" alt="Partner Logo Asset" />
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_1" }}
<div style="margin: 0 0 25px 0; padding: 15px 20px; background: #f8fafc; border-left: 4px solid #3b82f6; color: #334155; line-height: 1.6; font-size: 1rem; border-radius: 0 8px 8px 0;">
{{ index $.ActiveEntity.RawData "field_1" }} </div>
{{ end }}
<div class="display-fields" style="display: flex; flex-direction: column; gap: 16px;">
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">RESTAURANT ID:</span>
<span style="color: #0f172a; font-weight: 500;">{{ index $.ActiveEntity.RawData "field_0" }}</span>
</div>
{{ if index $.ActiveEntity.RawData "field_2" }}
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">ADDRESS:</span>
<span style="color: #0f172a; font-weight: 500;">{{ index $.ActiveEntity.RawData "field_2" }}</span>
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_5" }}
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">HOURS:</span>
<span style="color: #059669; font-weight: 600; font-size: 0.95rem;">⏰ {{ index $.ActiveEntity.RawData "field_5" }}</span>
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_4" }}
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">GEOLOCATION:</span>
<span style="color: #0f172a; font-weight: 500; font-family: monospace;">{{ index $.ActiveEntity.RawData "field_4" }}</span>
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_8" }}
<div class="field-row" style="display: flex; border-bottom: 1px solid #f8fafc; padding-bottom: 10px;">
<span style="font-weight: bold; color: #64748b; width: 180px; font-family: monospace; font-size: 0.9rem;">WEBSITE:</span>
<a href="{{ index $.ActiveEntity.RawData "field_8" }}" target="_blank" style="color: #3b82f6; font-weight: 500; text-decoration: none; word-break: break-all;">
{{ index $.ActiveEntity.RawData "field_8" }} 🔗
</a>
</div>
{{ end }}
{{ if or (index $.ActiveEntity.RawData "field_9") (index $.ActiveEntity.RawData "field_10") }}
<div style="margin-top: 15px; background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0;">
<span style="font-weight: bold; color: #64748b; display: block; margin-bottom: 10px; font-family: monospace; font-size: 0.85rem; letter-spacing: 0.03em;">METADATA & EXTERNAL INDEXES:</span>
<div style="display: flex; flex-direction: column; gap: 8px;">
{{ if index $.ActiveEntity.RawData "field_9" }}
<div style="font-size: 0.9rem; color: #475569;">
<strong style="color: #64748b;">Wikipedia:</strong>
<a href="https://en.wikipedia.org/wiki/{{ index $.ActiveEntity.RawData "field_9" }}" target="_blank" style="color: #0369a1; text-decoration: none; margin-left: 5px;">
{{ index $.ActiveEntity.RawData "field_9" }}
</a>
</div>
{{ end }}
{{ if index $.ActiveEntity.RawData "field_4" }}
<div style="font-size: 0.9rem; color: #475569;">
<strong style="color: #64748b;">OpenStreetMap ID:</strong>
<span style="font-family: monospace; background: #e2e8f0; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; margin-left: 5px; color: #334155;">
{{ index $.ActiveEntity.RawData "field_4" }}
</span>
</div>
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ else }}
<div style="text-align: center; padding: 40px; color: #94a3b8; font-style: italic;">
Select a partner or entry from the left directory to inspect its active decentralized block schema data.
</div>
{{ end }}
</div>
</main>
</div>
</div>
Target Entity
restaurant
Style Block
html { overflow-y: scroll !important; scrollbar-gutter: stable !important; }
body { margin: 0; padding: 0; background: #f8fafc; color: #334155; }
.sentinel-workspace { max-width: 1200px; margin: 30px auto; display: grid; grid-template-columns: 300px 1fr; gap: 25px; padding: 0 20px; font-family: system-ui, sans-serif; }
.sidebar-region { background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); padding: 20px; align-self: start; }
.sidebar-title { color: #64748b; display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; padding-bottom: 6px; }
.restaurant-link { text-decoration: none; color: #475569; font-size: 0.95rem; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: 8px; transition: all 0.2s ease; }
.restaurant-link:hover { background: #f1f5f9; color: #1e293b; }
.main-content-canvas { background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); padding: 35px; border: 1px solid #e2e8f0; position: relative; }
.meta-infobox { float: right; width: 280px; margin-left: 30px; margin-bottom: 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.01); }
.meta-field { font-size: 0.9rem; color: #334155; }
.meta-label { color: #64748b; display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.restaurant-nav-btn { width: 100%; color: white; padding: 10px 12px; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: opacity 0.2s; }
.restaurant-nav-btn:hover { opacity: 0.9; }
body { margin: 0; padding: 0; background: #f8fafc; color: #334155; }
.sentinel-workspace { max-width: 1200px; margin: 30px auto; display: grid; grid-template-columns: 300px 1fr; gap: 25px; padding: 0 20px; font-family: system-ui, sans-serif; }
.sidebar-region { background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); padding: 20px; align-self: start; }
.sidebar-title { color: #64748b; display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; padding-bottom: 6px; }
.restaurant-link { text-decoration: none; color: #475569; font-size: 0.95rem; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: 8px; transition: all 0.2s ease; }
.restaurant-link:hover { background: #f1f5f9; color: #1e293b; }
.main-content-canvas { background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); padding: 35px; border: 1px solid #e2e8f0; position: relative; }
.meta-infobox { float: right; width: 280px; margin-left: 30px; margin-bottom: 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.01); }
.meta-field { font-size: 0.9rem; color: #334155; }
.meta-label { color: #64748b; display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.restaurant-nav-btn { width: 100%; color: white; padding: 10px 12px; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: opacity 0.2s; }
.restaurant-nav-btn:hover { opacity: 0.9; }
Script Block
document.addEventListener("DOMContentLoaded", function() {
// Target the unique map element
const mapElement = document.getElementById('active-sentinel-map');
if (!mapElement) return;
const wktString = mapElement.getAttribute('data-wkt');
if (!wktString || wktString.trim() === "") return;
try {
// Parse out coordinates from WKT format e.g., POINT(-118.2851 34.0224)
const match = wktString.match(/\(([^)]+)\)/);
if (!match) return;
const coords = match[1].split(" ");
const lon = parseFloat(coords[0]);
const lat = parseFloat(coords[1]);
if (isNaN(lat) || isNaN(lon)) return;
// Initialize map with explicit configuration settings
const map = L.map('active-sentinel-map', {
center: [lat, lon],
zoom: 14,
zoomControl: true,
attributionControl: false
});
// Load OpenStreetMap vector tiles
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19
}).addTo(map);
// Drop a navigation marker directly on the coordinate pair
L.marker([lat, lon]).addTo(map);
// FORCE RECALCULATION: This breaks out of the CSS layout thread
// to make sure Leaflet fills out the exact width of its container box.
setTimeout(() => {
map.invalidateSize(true);
}, 100);
} catch (err) {
console.error("Leaflet initialization failure:", err);
}
});
function openActionModal() {
const modal = document.getElementById('action-modal');
const mapElement = document.getElementById('active-sentinel-map');
const wktString = mapElement ? mapElement.getAttribute('data-wkt') : '';
if (wktString && wktString.includes("(")) {
const match = wktString.match(/\(([^)]+)\)/);
if (match) {
const coords = match[1].split(" ");
const lon = coords[0];
const lat = coords[1];
document.getElementById('modal-nav-btn').href = "https://www.google.com/maps/search/?api=1&query=" + lat + "," + lon;
}
} else {
const addressBlock = document.getElementById('meta-address-text');
const address = addressBlock ? encodeURIComponent(addressBlock.innerText.trim()) : '';
document.getElementById('modal-nav-btn').href = "https://www.google.com/maps/search/?api=1&query=" + address;
}
document.getElementById('modal-call-btn').href = "tel:2565550199";
modal.style.display = 'flex';
}
function closeActionModal() { document.getElementById('action-modal').style.display = 'none'; }
window.onclick = function(event) {
const modal = document.getElementById('action-modal');
if (event.target == modal) modal.style.display = 'none';
}
// Target the unique map element
const mapElement = document.getElementById('active-sentinel-map');
if (!mapElement) return;
const wktString = mapElement.getAttribute('data-wkt');
if (!wktString || wktString.trim() === "") return;
try {
// Parse out coordinates from WKT format e.g., POINT(-118.2851 34.0224)
const match = wktString.match(/\(([^)]+)\)/);
if (!match) return;
const coords = match[1].split(" ");
const lon = parseFloat(coords[0]);
const lat = parseFloat(coords[1]);
if (isNaN(lat) || isNaN(lon)) return;
// Initialize map with explicit configuration settings
const map = L.map('active-sentinel-map', {
center: [lat, lon],
zoom: 14,
zoomControl: true,
attributionControl: false
});
// Load OpenStreetMap vector tiles
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19
}).addTo(map);
// Drop a navigation marker directly on the coordinate pair
L.marker([lat, lon]).addTo(map);
// FORCE RECALCULATION: This breaks out of the CSS layout thread
// to make sure Leaflet fills out the exact width of its container box.
setTimeout(() => {
map.invalidateSize(true);
}, 100);
} catch (err) {
console.error("Leaflet initialization failure:", err);
}
});
function openActionModal() {
const modal = document.getElementById('action-modal');
const mapElement = document.getElementById('active-sentinel-map');
const wktString = mapElement ? mapElement.getAttribute('data-wkt') : '';
if (wktString && wktString.includes("(")) {
const match = wktString.match(/\(([^)]+)\)/);
if (match) {
const coords = match[1].split(" ");
const lon = coords[0];
const lat = coords[1];
document.getElementById('modal-nav-btn').href = "https://www.google.com/maps/search/?api=1&query=" + lat + "," + lon;
}
} else {
const addressBlock = document.getElementById('meta-address-text');
const address = addressBlock ? encodeURIComponent(addressBlock.innerText.trim()) : '';
document.getElementById('modal-nav-btn').href = "https://www.google.com/maps/search/?api=1&query=" + address;
}
document.getElementById('modal-call-btn').href = "tel:2565550199";
modal.style.display = 'flex';
}
function closeActionModal() { document.getElementById('action-modal').style.display = 'none'; }
window.onclick = function(event) {
const modal = document.getElementById('action-modal');
if (event.target == modal) modal.style.display = 'none';
}