|
1 | 1 | <script lang="ts"> |
2 | 2 | import { getComponent, getStepperData, getRuntime, getLoopManager } from "./state.svelte"; |
3 | 3 |
|
| 4 | + import Arrows from "/public/arrows.png"; |
| 5 | + import Rectangle from "/public/rectangle.png"; |
| 6 | + import Adjustment from "/public/adjustment.png"; |
| 7 | + import Calendar from "/public/calendar.png"; |
| 8 | + import Stop from "/public/stop.png"; |
| 9 | +
|
4 | 10 | const component = getComponent(); |
5 | 11 | const stepperData = getStepperData(); |
6 | 12 | const runtime = getRuntime(); |
|
35 | 41 | {isMenuOpen ? 'translate-x-0' : '-translate-x-full'} flex flex-col"> |
36 | 42 | <div class="grow overflow-auto"> |
37 | 43 | <div class="bg-les-gray-700 flex w-full items-center gap-3 p-4"> |
38 | | - <img src="/arrows.png" alt="" class="rotate-180 transform" /> |
| 44 | + <img src={Arrows} alt="" class="rotate-180 transform" /> |
39 | 45 | <p class="font-bold">LES</p> |
40 | 46 | </div> |
41 | 47 | <div class="mt-4 flex flex-col items-start justify-center gap-3"> |
|
46 | 52 | component.setComponent("Dashboard"); |
47 | 53 | isMenuOpen = false; |
48 | 54 | }}> |
49 | | - <img src="/rectangle.png" alt="" /> |
| 55 | + <img src={Rectangle} alt="" /> |
50 | 56 | <p>Dashboard</p> |
51 | 57 | </button> |
52 | 58 | <button |
|
56 | 62 | component.setComponent("Simulation"); |
57 | 63 | isMenuOpen = false; |
58 | 64 | }}> |
59 | | - <img src="/adjustment.png" alt="" /> |
| 65 | + <img src={Adjustment} alt="" /> |
60 | 66 | <p>Simulation</p> |
61 | 67 | </button> |
62 | 68 | <button |
|
66 | 72 | component.setComponent("Schedulable Loads"); |
67 | 73 | isMenuOpen = false; |
68 | 74 | }}> |
69 | | - <img src="/calendar.png" alt="" /> |
| 75 | + <img src={Calendar} alt="" /> |
70 | 76 | <p>Schedulable Loads</p> |
71 | 77 | </button> |
72 | 78 | </div> |
|
100 | 106 | id="stop-button" |
101 | 107 | class="flex w-full items-center gap-3 bg-red-950 p-4 py-6 transition-colors duration-200 hover:bg-red-800 hover:brightness-110" |
102 | 108 | onclick={stop}> |
103 | | - <img src="/stop.png" alt="" /> |
| 109 | + <img src={Stop} alt="" /> |
104 | 110 | <p>Stop Simulation</p> |
105 | 111 | </button> |
106 | 112 | </div> |
|
110 | 116 | <div |
111 | 117 | class="sticky hidden w-full items-center justify-between border-b border-gray-800 bg-gray-900 px-4 py-2 lg:flex"> |
112 | 118 | <div class="flex items-center gap-2"> |
113 | | - <img src="/arrows.png" alt="" class="h-6 w-6 rotate-180 transform" /> |
| 119 | + <img src={Arrows} alt="" class="h-6 w-6 rotate-180 transform" /> |
114 | 120 | <span class="text-lg font-bold text-white">LES</span> |
115 | 121 | </div> |
116 | 122 | <nav class="flex items-center space-x-4"> |
|
119 | 125 | class:bg-les-highlight={component.currentComponent === "Dashboard"} |
120 | 126 | class:text-white={component.currentComponent === "Dashboard"} |
121 | 127 | onclick={() => component.setComponent("Dashboard")}> |
122 | | - <img src="/rectangle.png" alt="" class="h-4 w-4" /> |
| 128 | + <img src={Rectangle} alt="" class="h-4 w-4" /> |
123 | 129 | <span>Dashboard</span> |
124 | 130 | </button> |
125 | 131 | <button |
126 | 132 | class="hover:bg-les-gray-700 flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1.5 text-sm text-gray-300 transition-colors duration-200 hover:text-white" |
127 | 133 | class:bg-les-highlight={component.currentComponent === "Simulation"} |
128 | 134 | class:text-white={component.currentComponent === "Simulation"} |
129 | 135 | onclick={() => component.setComponent("Simulation")}> |
130 | | - <img src="/adjustment.png" alt="" class="h-4 w-4" /> |
| 136 | + <img src={Adjustment} alt="" class="h-4 w-4" /> |
131 | 137 | <span>Simulation</span> |
132 | 138 | </button> |
133 | 139 | <button |
134 | 140 | class="hover:bg-les-gray-700 flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1.5 text-sm text-gray-300 transition-colors duration-200 hover:text-white" |
135 | 141 | class:bg-les-highlight={component.currentComponent === "Schedulable Loads"} |
136 | 142 | class:text-white={component.currentComponent === "Schedulable Loads"} |
137 | 143 | onclick={() => component.setComponent("Schedulable Loads")}> |
138 | | - <img src="/calendar.png" alt="" class="h-4 w-4" /> |
| 144 | + <img src={Calendar} alt="" class="h-4 w-4" /> |
139 | 145 | <span>Schedulable Loads</span> |
140 | 146 | </button> |
141 | 147 | </nav> |
|
162 | 168 | class="flex cursor-pointer items-center gap-1.5 rounded-md bg-red-950 px-3 py-1.5 text-sm |
163 | 169 | text-white transition-colors duration-200 hover:bg-red-900" |
164 | 170 | onclick={stop}> |
165 | | - <img src="/stop.png" alt="" class="h-4 w-4" /> |
| 171 | + <img src={Stop} alt="" class="h-4 w-4" /> |
166 | 172 | <span>Stop</span> |
167 | 173 | </button> |
168 | 174 | </div> |
|
0 commit comments