Reduce server launcher modal size for better UX
- max-w-xl → max-w-md - Padding: p-8 → p-5 - Grid: 4-cols → 2-cols for region/OS - Button size and spacing reduced - Removed Premium label from Seoul button Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
52
index.html
52
index.html
@@ -659,7 +659,7 @@
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="launcher-title"
|
||||
class="bg-slate-900 border border-white/10 w-full max-w-xl rounded-2xl shadow-2xl overflow-hidden relative">
|
||||
class="bg-slate-900 border border-white/10 w-full max-w-md rounded-2xl shadow-2xl overflow-hidden relative">
|
||||
|
||||
<!-- Modal Header -->
|
||||
<div class="px-6 py-4 border-b border-white/5 flex justify-between items-center bg-slate-800/50">
|
||||
@@ -676,30 +676,28 @@
|
||||
|
||||
|
||||
|
||||
<div class="p-8">
|
||||
<div class="p-5">
|
||||
|
||||
<!-- Step 0: Configuration -->
|
||||
|
||||
<div x-show="step === 0" class="space-y-8">
|
||||
<div x-show="step === 0" class="space-y-5">
|
||||
|
||||
<div>
|
||||
|
||||
<label class="block text-xs font-mono text-slate-500 uppercase tracking-widest mb-4">1. Select Region</label>
|
||||
<label class="block text-xs font-mono text-slate-500 uppercase tracking-widest mb-2">1. Select Region</label>
|
||||
|
||||
<div class="grid grid-cols-2 md:grid-cols-4 gap-3">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
|
||||
<template x-for="r in ['Seoul', 'Tokyo', 'Singapore', 'HongKong']">
|
||||
|
||||
<button @click="config.region = r"
|
||||
|
||||
:class="config.region === r ? 'border-brand-500 bg-brand-500/10 text-white shadow-[0_0_15px_rgba(56,189,248,0.2)]' : 'border-slate-700 bg-slate-800 text-slate-400 hover:border-slate-500 hover:bg-slate-700/50'"
|
||||
:class="config.region === r ? 'border-brand-500 bg-brand-500/10 text-white' : 'border-slate-700 bg-slate-800 text-slate-400 hover:border-slate-500'"
|
||||
|
||||
class="px-4 py-3 rounded-xl border text-sm font-bold transition-all text-center">
|
||||
class="px-3 py-1.5 rounded-lg border text-xs font-bold transition-all text-center">
|
||||
|
||||
<span x-text="r"></span>
|
||||
|
||||
<div x-show="r === 'Seoul'" class="text-[9px] text-brand-400 mt-1">Premium</div>
|
||||
|
||||
</button>
|
||||
|
||||
</template>
|
||||
@@ -712,17 +710,17 @@
|
||||
|
||||
<div>
|
||||
|
||||
<label class="block text-xs font-mono text-slate-500 uppercase tracking-widest mb-4">2. Choose OS</label>
|
||||
<label class="block text-xs font-mono text-slate-500 uppercase tracking-widest mb-2">2. Choose OS</label>
|
||||
|
||||
<div class="grid grid-cols-2 md:grid-cols-4 gap-3">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
|
||||
<template x-for="o in ['Debian 12', 'Ubuntu 24.04', 'CentOS 9', 'Alpine']">
|
||||
|
||||
<button @click="config.os = o"
|
||||
|
||||
:class="config.os === o ? 'border-purple-500 bg-purple-500/10 text-white shadow-[0_0_15px_rgba(168,85,247,0.2)]' : 'border-slate-700 bg-slate-800 text-slate-400 hover:border-slate-500 hover:bg-slate-700/50'"
|
||||
:class="config.os === o ? 'border-purple-500 bg-purple-500/10 text-white' : 'border-slate-700 bg-slate-800 text-slate-400 hover:border-slate-500'"
|
||||
|
||||
class="px-4 py-3 rounded-xl border text-sm font-bold transition-all text-center">
|
||||
class="px-3 py-1.5 rounded-lg border text-xs font-bold transition-all text-center">
|
||||
|
||||
<span x-text="o"></span>
|
||||
|
||||
@@ -738,33 +736,27 @@
|
||||
|
||||
<div>
|
||||
|
||||
<label class="block text-xs font-mono text-slate-500 uppercase tracking-widest mb-4">3. Instance Plan & Pricing</label>
|
||||
<label class="block text-xs font-mono text-slate-500 uppercase tracking-widest mb-2">3. Instance Plan</label>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
|
||||
<template x-for="p in ['Micro', 'Starter', 'Pro', 'Business']">
|
||||
|
||||
<button @click="config.plan = p"
|
||||
|
||||
:class="config.plan === p ? 'border-brand-500 ring-2 ring-brand-500/20 bg-brand-500/5' : 'border-slate-700 bg-slate-800 hover:border-brand-400/50'"
|
||||
:class="config.plan === p ? 'border-brand-500 ring-1 ring-brand-500/20 bg-brand-500/5' : 'border-slate-700 bg-slate-800 hover:border-brand-400/50'"
|
||||
|
||||
class="p-4 rounded-xl border transition-all text-left group flex justify-between items-center">
|
||||
class="p-2.5 rounded-lg border transition-all text-left flex justify-between items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<div class="font-bold text-white text-base mb-1" x-text="p"></div>
|
||||
<div class="font-bold text-white text-sm" x-text="p"></div>
|
||||
|
||||
<div class="text-xs text-slate-500" x-text="getPlanSpec(p)"></div>
|
||||
<div class="text-[10px] text-slate-500" x-text="getPlanSpec(p)"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
|
||||
<div class="text-brand-400 font-bold text-lg" x-text="'₩' + getPrice(p)"></div>
|
||||
|
||||
<div class="text-[10px] text-slate-600">/ month</div>
|
||||
|
||||
</div>
|
||||
<div class="text-brand-400 font-bold text-sm" x-text="'₩' + getPrice(p)"></div>
|
||||
|
||||
</button>
|
||||
|
||||
@@ -776,9 +768,9 @@
|
||||
|
||||
|
||||
|
||||
<button @click="startLaunch" class="w-full py-4 bg-brand-600 hover:bg-brand-500 text-white font-bold rounded-xl transition-all shadow-xl shadow-brand-500/20 flex items-center justify-center gap-3 text-lg">
|
||||
<button @click="startLaunch" class="w-full py-3 bg-brand-600 hover:bg-brand-500 text-white font-bold rounded-lg transition-all shadow-lg shadow-brand-500/20 flex items-center justify-center gap-2 text-sm">
|
||||
|
||||
<span>🚀 Launch Instance in</span>
|
||||
<span>🚀 Launch in</span>
|
||||
|
||||
<span class="bg-black/20 px-2 py-0.5 rounded text-brand-300" x-text="config.region"></span>
|
||||
|
||||
@@ -790,9 +782,9 @@
|
||||
|
||||
<!-- Launching State -->
|
||||
|
||||
<div x-show="step > 0" class="min-h-[400px] flex flex-col">
|
||||
<div x-show="step > 0" class="min-h-[280px] flex flex-col">
|
||||
|
||||
<div class="mb-8">
|
||||
<div class="mb-4">
|
||||
|
||||
<div class="flex justify-between text-xs font-mono text-slate-500 mb-2">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user