LINE1 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 7601<!DOCTYPE html>2<html lang="en">3<head>4 <meta charset="utf-8">5 <meta name="viewport" content="width=device-width, initial-scale=1.0">6 <title>Notify</title>7 <link rel="stylesheet" href="daisyui.css">8 <link rel="stylesheet" href="app.css">9 <style>10 /* Draggable titlebar region for the desktop app */11 .titlebar-drag {12 -webkit-app-region: drag;13 user-select: none;14 }15 .no-drag {16 -webkit-app-region: no-drag;17 }18 </style>19</head>20<body class="min-h-screen bg-base-100 text-base-content flex flex-col select-none">21 <!-- Toast notification banner -->22 <div id="toast-container" class="toast toast-top toast-center z-50 pointer-events-none"></div>2324 <!-- Navigation bar / App Header -->25 <header class="navbar bg-base-100 shadow-sm border-b border-base-200 px-4 titlebar-drag">26 <div class="navbar-start flex items-center gap-2">27 <span class="font-bold text-lg tracking-tight">Notify</span>28 <span id="profile-badge" class="badge badge-sm badge-neutral font-mono no-drag cursor-pointer" title="Click to view profiles">default</span>29 </div>30 <div class="navbar-end gap-2 no-drag">31 <button id="open-settings-btn" class="btn btn-ghost btn-sm btn-circle" title="Settings & Profiles">32 <svg xmlns="http://www.w3.org/2000/svg" class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">33 <circle cx="12" cy="12" r="3"></circle>34 <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>35 </svg>36 </button>37 </div>38 </header>3940 <!-- Main App Body -->41 <main class="hero flex-1">42 <div class="hero-content w-full justify-center p-4">43 <div class="card card-border w-full max-w-sm bg-base-200 shadow-sm">44 <div class="card-body p-6">45 <div class="text-center mb-3">46 <h1 class="card-title text-2xl font-bold justify-center">Notify</h1>47 <p id="server-status-label" class="text-xs text-base-content/70 mt-1 truncate" title="Click to change server">48 Connecting to server...49 </p>50 </div>5152 <!-- Quick Action Buttons -->53 <div class="card-actions flex flex-col gap-3 w-full">54 <!-- Heart button -->55 <button id="btn-heart" type="button" class="btn btn-secondary btn-lg btn-block gap-2">56 <span class="loading loading-spinner loading-md hidden"></span>57 <span class="btn-label flex items-center justify-center gap-2">58 <svg xmlns="http://www.w3.org/2000/svg" class="size-6 shrink-0" viewBox="0 0 24 24" fill="currentColor">59 <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"></path>60 </svg>61 <span>Look at your phone</span>62 </span>63 </button>6465 <!-- Cat button -->66 <button id="btn-cat" type="button" class="btn btn-lg btn-block gap-2">67 <span class="loading loading-spinner loading-md hidden"></span>68 <span class="btn-label flex items-center justify-center gap-2">69 <svg xmlns="http://www.w3.org/2000/svg" class="size-6 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">70 <path d="M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3.1-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.26 6.5 2.26.65-.17 1.33-.26 2-.26z"></path>71 <path d="M9 13v.01"></path>72 <path d="M15 13v.01"></path>73 <path d="M10 17c.5.5 1.5 1 2 1s1.5-.5 2-1"></path>74 </svg>75 <span>Missing you</span>76 </span>77 </button>7879 <!-- Emergency button -->80 <button id="btn-emergency" type="button" class="btn btn-error btn-lg btn-block gap-2">81 <span class="loading loading-spinner loading-md hidden"></span>82 <span class="btn-label flex items-center justify-center gap-2">83 <svg xmlns="http://www.w3.org/2000/svg" class="size-6 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">84 <path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>85 <path d="M12 2v4"></path>86 <path d="m4.93 4.93 2.83 2.83"></path>87 <path d="m19.07 4.93-2.83 2.83"></path>88 </svg>89 <span>Emergency</span>90 </span>91 </button>92 </div>93 <p id="quick-send-feedback" class="send-feedback" role="status" aria-live="polite"></p>9495 <!-- Divider -->96 <div class="divider my-2 text-xs text-base-content/50">CUSTOM MESSAGE</div>9798 <!-- Custom Message Input -->99 <form id="custom-message-form" class="flex flex-col gap-2">100 <div class="join w-full">101 <input102 id="custom-message-input"103 type="text"104 placeholder="Type a custom message..."105 class="input input-bordered join-item flex-1 text-sm bg-base-100"106 autocomplete="off"107 >108 <button id="btn-custom-send" type="submit" class="btn btn-primary join-item">109 <span class="loading loading-spinner loading-sm hidden"></span>110 <span class="btn-label">Send</span>111 </button>112 </div>113 <p id="custom-send-feedback" class="send-feedback" role="status" aria-live="polite"></p>114 </form>115 </div>116 </div>117 </div>118 </main>119120 <!-- Settings & Profiles Modal -->121 <dialog id="settings-modal" class="modal">122 <div class="modal-box bg-base-200 max-w-md p-6">123 <div class="flex items-center justify-between mb-4">124 <h3 class="font-bold text-lg">Server & Profiles</h3>125 <button id="close-modal-x" class="btn btn-sm btn-circle btn-ghost" type="button">✕</button>126 </div>127128 <!-- Profiles List (from Omarchy ~/.config/notify) -->129 <div class="mb-4">130 <label class="text-xs font-semibold uppercase text-base-content/60 tracking-wider block mb-1">131 Omarchy Profiles (~/.config/notify)132 </label>133 <div id="profiles-list" class="flex flex-col gap-1 max-h-36 overflow-y-auto bg-base-100 p-2 rounded-box border border-base-300">134 <span class="text-xs text-base-content/50 p-2">Loading profiles...</span>135 </div>136 </div>137138 <!-- Active Server Configuration Form -->139 <form id="config-form" class="flex flex-col gap-3">140 <div>141 <label class="label py-1">142 <span class="label-text text-xs font-semibold">Profile Name</span>143 </label>144 <input id="cfg-profile-name" type="text" class="input input-bordered input-sm w-full bg-base-100" placeholder="notify">145 </div>146147 <div>148 <label class="label py-1">149 <span class="label-text text-xs font-semibold">Server URL</span>150 </label>151 <input id="cfg-server-url" type="url" class="input input-bordered input-sm w-full bg-base-100" placeholder="http://127.0.0.1:8080" required>152 </div>153154 <div>155 <label class="label py-1">156 <span class="label-text text-xs font-semibold">PIN / API Key</span>157 </label>158 <input id="cfg-server-pin" type="password" class="input input-bordered input-sm w-full bg-base-100" placeholder="123456">159 </div>160161 <!-- Connection Test Result Banner -->162 <div id="conn-test-result" class="text-xs p-2 rounded hidden"></div>163164 <div class="flex items-center justify-between gap-2 mt-2">165 <button id="btn-test-conn" type="button" class="btn btn-outline btn-sm">166 <span class="loading loading-spinner loading-xs hidden"></span>167 <span>Test Connection</span>168 </button>169 <button id="btn-save-cfg" type="submit" class="btn btn-primary btn-sm">170 Save & Activate171 </button>172 </div>173 </form>174 </div>175 <form method="dialog" class="modal-backdrop">176 <button>close</button>177 </form>178 </dialog>179180 <script src="main.js"></script>181</body>182</html>