Spaces:
Running
Running
dylanebert
commited on
Commit
·
2fc882f
1
Parent(s):
da194bd
topology mode banner
Browse files- src/routes/Vote.svelte +7 -1
- static/global.css +26 -0
src/routes/Vote.svelte
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import { onMount, onDestroy } from "svelte";
|
3 |
import type { IViewer } from "./viewers/IViewer";
|
4 |
import { createViewer } from "./viewers/ViewerFactory";
|
5 |
-
import { Cube, WatsonHealth3DPrintMesh } from "carbon-icons-svelte";
|
6 |
import { getConfig } from "./utils/getConfig";
|
7 |
|
8 |
interface Data {
|
@@ -235,6 +235,12 @@
|
|
235 |
</div>
|
236 |
<h2 class="center-title">Which is better?</h2>
|
237 |
<p class="center-subtitle">Use mouse/touch to change the view.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
<div class="voting-container">
|
239 |
<div bind:this={containerA} class="canvas-container">
|
240 |
<div bind:this={overlayA} class="loading-overlay">
|
|
|
2 |
import { onMount, onDestroy } from "svelte";
|
3 |
import type { IViewer } from "./viewers/IViewer";
|
4 |
import { createViewer } from "./viewers/ViewerFactory";
|
5 |
+
import { Cube, WatsonHealth3DPrintMesh, Information } from "carbon-icons-svelte";
|
6 |
import { getConfig } from "./utils/getConfig";
|
7 |
|
8 |
interface Data {
|
|
|
235 |
</div>
|
236 |
<h2 class="center-title">Which is better?</h2>
|
237 |
<p class="center-subtitle">Use mouse/touch to change the view.</p>
|
238 |
+
{#if data.vote_type === "topology"}
|
239 |
+
<div class="topology-warning">
|
240 |
+
<Information size={20} class="topology-warning-icon" />
|
241 |
+
<span class="topology-warning-text">Topology Mode • Zoom in to see mesh details</span>
|
242 |
+
</div>
|
243 |
+
{/if}
|
244 |
<div class="voting-container">
|
245 |
<div bind:this={containerA} class="canvas-container">
|
246 |
<div bind:this={overlayA} class="loading-overlay">
|
static/global.css
CHANGED
@@ -633,3 +633,29 @@ body {
|
|
633 |
.dev-banner span {
|
634 |
margin: 0;
|
635 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
633 |
.dev-banner span {
|
634 |
margin: 0;
|
635 |
}
|
636 |
+
|
637 |
+
/* Topology Warning Banner */
|
638 |
+
.topology-warning {
|
639 |
+
display: flex;
|
640 |
+
align-items: center;
|
641 |
+
justify-content: center;
|
642 |
+
gap: 8px;
|
643 |
+
background: rgba(56, 133, 224, 0.15);
|
644 |
+
border: 1px solid rgba(56, 133, 224, 0.3);
|
645 |
+
border-radius: 6px;
|
646 |
+
padding: 12px 16px;
|
647 |
+
margin: 16px 20px;
|
648 |
+
font-size: 14px;
|
649 |
+
font-weight: 500;
|
650 |
+
color: #87ceeb;
|
651 |
+
}
|
652 |
+
|
653 |
+
.topology-warning-icon {
|
654 |
+
flex-shrink: 0;
|
655 |
+
color: #3885e0;
|
656 |
+
}
|
657 |
+
|
658 |
+
.topology-warning-text {
|
659 |
+
margin: 0;
|
660 |
+
text-align: center;
|
661 |
+
}
|