Skip to content

Commit f6a812e

Browse files
committed
feat(frontend): Update button text to "Short it !" and enhance button styles
1 parent b9f84b4 commit f6a812e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import BaseLayout from '../layouts/BaseLayout.astro';
4545
<path d="M19.4 15a1 1 0 0 0 .2 1.1l.1.1a2 2 0 0 1 0 2.8 2 2 0 0 1-2.8 0l-.1-.1a1 1 0 0 0-1.1-.2 1 1 0 0 0-.6.9V20a2 2 0 0 1-4 0v-.2a1 1 0 0 0-.7-.9 1 1 0 0 0-1 .2l-.2.1a2 2 0 1 1-2.8-2.8l.1-.1a1 1 0 0 0 .2-1.1 1 1 0 0 0-.9-.6H4a2 2 0 0 1 0-4h.2a1 1 0 0 0 .9-.7 1 1 0 0 0-.2-1l-.1-.2a2 2 0 1 1 2.8-2.8l.1.1a1 1 0 0 0 1.1.2 1 1 0 0 0 .6-.9V4a2 2 0 0 1 4 0v.2a1 1 0 0 0 .7.9 1 1 0 0 0 1-.2l.2-.1a2 2 0 1 1 2.8 2.8l-.1.1a1 1 0 0 0-.2 1.1 1 1 0 0 0 .9.6H20a2 2 0 0 1 0 4h-.2a1 1 0 0 0-.9.7z"></path>
4646
</svg>
4747
</button>
48-
<button id="btn" class="flat-btn flat-btn-inline hidden" disabled>Shorten</button>
48+
<button id="btn" class="flat-btn flat-btn-inline hidden" disabled>Short it !</button>
4949
</div>
5050
</div>
5151
<div id="aliasPanel" class="alias-panel is-collapsed">

src/scripts/index-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ export function initIndexPage(config: IndexPageConfig): void {
136136
const valid = inputUrl.value.trim().startsWith('http');
137137
aliasController.syncSubmitButton(submitButton, valid);
138138
if (isAuthorizedMode()) {
139-
submitButton.textContent = 'Create';
139+
submitButton.textContent = 'Short it !';
140140
submitButton.disabled = !(valid && turnstileVerified);
141141
return;
142142
}
143143

144-
submitButton.textContent = 'Shorten';
144+
submitButton.textContent = 'Short it !';
145145
submitButton.disabled = !valid;
146146
};
147147

src/styles/global.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ html.is-redirecting .redirect-overlay {
227227
}
228228

229229
.icon-btn {
230-
@apply inline-flex h-9 w-9 items-center justify-center rounded-md bg-transparent text-slate-400 transition-colors hover:text-slate-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-slate-500/50 disabled:cursor-not-allowed disabled:opacity-50;
230+
@apply inline-flex h-9 w-9 items-center justify-center rounded-lg bg-transparent text-slate-400 transition-all duration-200 hover:bg-cyan-400/10 hover:text-cyan-300 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/40 disabled:cursor-not-allowed disabled:opacity-50;
231231
}
232232

233233
.alias-shell {
@@ -267,7 +267,7 @@ html.is-redirecting .redirect-overlay {
267267
}
268268

269269
.flat-btn {
270-
@apply shrink-0 rounded-md border border-blue-400 bg-blue-500 px-4 py-2.5 text-sm font-semibold text-white transition hover:bg-blue-400 disabled:cursor-not-allowed disabled:opacity-50;
270+
@apply shrink-0 rounded-lg border border-cyan-400/60 bg-cyan-500/15 px-4 py-2.5 text-sm font-semibold text-cyan-300 transition-all duration-200 hover:border-cyan-300 hover:bg-cyan-400/25 hover:text-cyan-100 hover:shadow-[0_0_16px_rgba(56,189,248,0.15)] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:shadow-none;
271271
}
272272

273273
.flat-btn-inline {
@@ -306,7 +306,7 @@ html.is-redirecting .redirect-overlay {
306306
}
307307

308308
.icon-btn-sm {
309-
@apply inline-flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 transition-colors hover:bg-white/10 hover:text-slate-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/20;
309+
@apply inline-flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 transition-all duration-200 hover:bg-cyan-400/10 hover:text-cyan-300 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/30;
310310
}
311311

312312
.qr-container {

0 commit comments

Comments
 (0)