@briancray/belte 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@briancray/belte",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Isomorphic multimodal HTTP framework built for humans and machines in a single Bun runtime",
6
6
  "license": "MIT",
@@ -29,8 +29,7 @@ click away even after an explicit disconnect.
29
29
  const LAST_URL_KEY = 'belte:last-server-url'
30
30
 
31
31
  // Injected globals: app title from the launcher, logo data URI from the build.
32
- const heading =
33
- (globalThis as { __BELTE_TITLE__?: string }).__BELTE_TITLE__ ?? 'belte app'
32
+ const heading = (globalThis as { __BELTE_TITLE__?: string }).__BELTE_TITLE__ ?? 'belte app'
34
33
  const logo = (globalThis as { __BELTE_LOGO__?: string }).__BELTE_LOGO__
35
34
 
36
35
  const placeholder = 'https://example.com'
@@ -134,10 +133,12 @@ async function start(): Promise<void> {
134
133
  }
135
134
  </script>
136
135
 
137
- <main class="flex min-h-screen items-center justify-center bg-gray-50 p-6 text-gray-900">
138
- <div class="w-full max-w-sm rounded-2xl bg-white p-8 shadow-sm ring-1 ring-gray-200">
136
+ <main
137
+ class="flex min-h-screen items-center justify-center bg-gray-50 p-6 text-gray-900 dark:bg-gray-950 dark:text-gray-100">
138
+ <div
139
+ class="w-full max-w-sm rounded-2xl bg-white p-8 shadow-sm ring-1 ring-gray-200 dark:bg-gray-900 dark:ring-gray-800">
139
140
  {#if logo}
140
- <img src={logo} alt="" class="mx-auto mb-5 h-16 w-16 rounded-xl object-contain" />
141
+ <img src={logo} alt="" class="mx-auto mb-5 h-16 w-16 rounded-xl object-contain">
141
142
  {/if}
142
143
  <h1 class="mb-6 text-center text-xl font-semibold tracking-tight">{heading}</h1>
143
144
 
@@ -146,45 +147,43 @@ async function start(): Promise<void> {
146
147
  onsubmit={(event) => {
147
148
  event.preventDefault()
148
149
  void connect()
149
- }}
150
- >
150
+ }}>
151
151
  <input
152
152
  type="url"
153
153
  bind:value={url}
154
154
  {placeholder}
155
155
  autocomplete="url"
156
- class="w-full rounded-lg border border-gray-300 px-3 py-2 text-sm outline-none focus:border-gray-900 focus:ring-1 focus:ring-gray-900"
157
- />
156
+ class="w-full rounded-lg border border-gray-300 px-3 py-2 text-sm outline-none focus:border-gray-900 focus:ring-1 focus:ring-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:border-gray-100 dark:focus:ring-gray-100">
158
157
  <button
159
158
  type="submit"
160
- class="w-full rounded-lg bg-gray-900 px-3 py-2 text-sm font-medium text-white hover:bg-gray-700"
161
- >
159
+ class="w-full rounded-lg bg-gray-900 px-3 py-2 text-sm font-medium text-white hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-300">
162
160
  Connect
163
161
  </button>
164
162
  </form>
165
163
 
166
- <div class="my-5 flex items-center gap-3 text-xs text-gray-400">
167
- <span class="h-px flex-1 bg-gray-200"></span>
164
+ <div class="my-5 flex items-center gap-3 text-xs text-gray-400 dark:text-gray-500">
165
+ <span class="h-px flex-1 bg-gray-200 dark:bg-gray-800"></span>
168
166
  or
169
- <span class="h-px flex-1 bg-gray-200"></span>
167
+ <span class="h-px flex-1 bg-gray-200 dark:bg-gray-800"></span>
170
168
  </div>
171
169
 
172
170
  <button
173
171
  type="button"
174
172
  onclick={() => void start()}
175
173
  disabled={starting}
176
- class="w-full rounded-lg border border-gray-300 px-3 py-2 text-sm font-medium hover:bg-gray-50 disabled:opacity-60"
177
- >
174
+ class="w-full rounded-lg border border-gray-300 px-3 py-2 text-sm font-medium hover:bg-gray-50 disabled:opacity-60 dark:border-gray-700 dark:hover:bg-gray-800">
178
175
  {starting ? 'Starting…' : 'Start server'}
179
176
  </button>
180
177
 
181
178
  {#if error}
182
- <p class="mt-4 text-center text-sm text-red-600">{error}</p>
179
+ <p class="mt-4 text-center text-sm text-red-600 dark:text-red-400">{error}</p>
183
180
  {/if}
184
181
 
185
- <p class="mt-8 text-center text-xs text-gray-400">
182
+ <p class="mt-8 text-center text-xs text-gray-400 dark:text-gray-500">
186
183
  made with
187
- <a href="https://github.com/briancray/belte" class="underline hover:text-gray-600">
184
+ <a
185
+ href="https://github.com/briancray/belte"
186
+ class="underline hover:text-gray-600 dark:hover:text-gray-300">
188
187
  belte
189
188
  </a>
190
189
  </p>