|
19 | 19 |
|
20 | 20 |
|
21 | 21 | <nav class="bg-white border-b border-gray-200">
|
22 |
| - <div class="max-w-7xl mx-auto px-4 md:px-6 lg:px-8"> |
23 |
| - <div class="hidden md:flex justify-between h-16"> |
| 22 | + <div class="max-w-7xl mx-auto px-4 lg:px-6 lg:px-8"> |
| 23 | + <div class="hidden lg:flex justify-between h-16"> |
24 | 24 | <div class="flex">
|
25 |
| - <div class="hidden md:-my-px md:ml-6 md:flex md:space-x-8"> |
| 25 | + <div class="hidden lg:-my-px lg:ml-6 lg:flex lg:space-x-8"> |
26 | 26 | <!-- Current: "border-blue-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" -->
|
27 | 27 | <a href="#" :class="{ 'active border-blue-500 text-gray-900': tab === 'map', 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700': tab !== 'map' }" x-on:click.prevent="tab = 'map'" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" aria-current="page"> Map </a>
|
28 | 28 | <a href="#" :class="{ 'active border-blue-500 text-gray-900': tab === 'temperature_chart', 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700': tab !== 'temperature_chart' }" x-on:click.prevent="tab = 'temperature_chart'" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"> Temperture Chart </a>
|
|
31 | 31 | <a href="#" :class="{ 'active border-blue-500 text-gray-900': tab === 'settings', 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700': tab !== 'settings' }" x-on:click.prevent="tab = 'settings'" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"> Settings </a>
|
32 | 32 | </div>
|
33 | 33 | </div>
|
34 |
| - <div class="hidden md:ml-6 md:flex md:items-center"> |
| 34 | + <div class="hidden lg:ml-6 lg:flex lg:items-center"> |
35 | 35 |
|
36 | 36 |
|
37 | 37 | <!-- Profile dropdown -->
|
38 | 38 | <div x-data="{ isOpen: false }" @click.outside="isOpen = false" class="ml-3 relative">
|
39 | 39 | <div>
|
40 | 40 | <button type="button" @click="isOpen = !isOpen" class="max-w-xs bg-white flex items-center text-sm rounded-full" id="user-menu-button" aria-expanded="false" aria-haspopup="true">
|
41 | 41 | <span class="sr-only">Open user menu</span>
|
42 |
| - <i id = "login_icon" class="fa-solid fa-2x fa-user-pilot text-red-500"></i> |
| 42 | + <i class="login_icon fa-solid fa-2x fa-user-pilot text-red-500"></i> |
43 | 43 | </button>
|
44 | 44 | </div>
|
45 | 45 |
|
|
53 | 53 | x-transition:leave-end="transform opacity-0 scale-95"
|
54 | 54 | class="z-20 origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" role="menu" aria-orientation="vertical" aria-labelledby="user-menu-button" tabindex="-1">
|
55 | 55 |
|
56 |
| - <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem" tabindex="-1" id="user-menu-item-2"> Sign out </a> |
| 56 | + <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem" tabindex="-1" id="user-menu-item-2"> Log out </a> |
57 | 57 |
|
58 | 58 | </div>
|
59 | 59 | </div>
|
|
69 | 69 |
|
70 | 70 |
|
71 | 71 |
|
72 |
| - <div class="-mr-2 flex items-center md:hidden absolute z-20 top-4 right-8"> |
| 72 | + <div class="-mr-2 flex items-center lg:hidden absolute z-20 top-4 right-8"> |
73 | 73 | <!-- Mobile menu button -->
|
74 | 74 | <button type="button" @click="mobileMenuOpen = !mobileMenuOpen" class="bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100" aria-controls="mobile-menu" aria-expanded="false">
|
75 | 75 | <span class="sr-only">Open main menu</span>
|
76 | 76 | <!-- Heroicon name: outline/menu -->
|
77 |
| - <svg :class="{ 'hidden' : mobileMenuOpen , 'block' : !mobileMenuOpen}" class="h-6 w-6 hidden" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"> |
| 77 | +<!-- <svg :class="{ 'hidden' : mobileMenuOpen , 'block' : !mobileMenuOpen}" class="h-6 w-6 hidden" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"> |
78 | 78 | <path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" />
|
79 |
| - </svg> |
| 79 | + </svg> --> |
| 80 | + <i :class="{ 'hidden' : mobileMenuOpen , 'block' : !mobileMenuOpen}" class="login_icon fa-solid fa-2x fa-user-pilot text-red-500"></i> |
80 | 81 | <!-- Heroicon name: outline/x -->
|
81 | 82 | <svg :class="{ 'block' : mobileMenuOpen , 'hidden' : !mobileMenuOpen}" class="h-6 w-6 hidden" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true">
|
82 | 83 | <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
|
86 | 87 |
|
87 | 88 |
|
88 | 89 | <!-- Mobile menu, show/hide based on mobileMenuOpen state. -->
|
89 |
| - <div :class="{ 'hidden' : !mobileMenuOpen}" class="md:hidden" id="mobile-menu"> |
| 90 | + <div :class="{ 'hidden' : !mobileMenuOpen}" class="lg:hidden" id="mobile-menu"> |
90 | 91 | <div class="pt-2 pb-3 space-y-1">
|
91 | 92 | <!-- Current: "bg-blue-50 border-blue-500 text-blue-700", Default: "border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800" -->
|
92 | 93 |
|
|
99 | 100 | <div class="pt-1 pb-3 border-t border-gray-200">
|
100 | 101 |
|
101 | 102 | <div class="mt-3 space-y-1">
|
102 |
| - <a href="#" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100"> Sign out </a> |
| 103 | + <a href="#" @click="mqtt_logout()" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100"> Log out </a> |
103 | 104 | </div>
|
104 | 105 | </div>
|
105 | 106 | </div>
|
|
113 | 114 | <header>
|
114 | 115 | </header>
|
115 | 116 |
|
116 |
| - <div class="mx-auto md:px-0 lg:px-8 h-screen md:h-[55rem] w-full md:max-w-7xl"> |
| 117 | + <div class="mx-auto lg:px-0 lg:px-8 h-screen lg:h-[55rem] w-full lg:max-w-7xl"> |
117 | 118 |
|
118 |
| - <div class="px-4 py-1 md:px-0 h-full"> |
| 119 | + <div class="px-4 py-1 lg:px-0 h-full"> |
119 | 120 |
|
120 |
| - <div x-show="tab === 'map'" class="md:border-4 md:border-gray-200 md:rounded-lg h-full"> |
| 121 | + <div x-show="tab === 'map'" class="lg:border-4 lg:border-gray-200 lg:rounded-lg h-full"> |
121 | 122 |
|
122 | 123 | <!-- <div class="absolute z-20 inset-x-0 top-20 h-16 flex items-center justify-center"> -->
|
123 |
| - <div :class="{ 'hidden' : mobileMenuOpen}" class="absolute inset-x-0 top-4 md:top-20 h-16 flex items-center justify-center"> |
| 124 | + <div :class="{ 'hidden' : mobileMenuOpen}" class="absolute inset-x-0 top-4 lg:top-20 h-16 flex items-center justify-center"> |
124 | 125 | <div class = "text-3xl flex flex-row bg-white gap-y-4 gap-x-10 px-8 pt-3 pb-1 rounded-md z-20">
|
125 | 126 |
|
126 | 127 | <!-- <div x-data="{battery_voltage: ''}" class = "flex flex-col">
|
@@ -195,9 +196,10 @@ <h3 class="text-xs mb-2 uppercase"> Speed</h3>
|
195 | 196 |
|
196 | 197 |
|
197 | 198 | <div x-show="tab === 'debug'" class="h-full">
|
198 |
| - <h3>Message Logs</h3> |
| 199 | + <div class = "pt-5 h-full"> |
| 200 | + <p class = "text-2xl font-bold mb-4" >Message Logs</p> |
199 | 201 | <p id = "debug_logs"></p>
|
200 |
| - |
| 202 | + </div> |
201 | 203 | </div>
|
202 | 204 |
|
203 | 205 |
|
|
0 commit comments