Improve server launcher modal UI for better readability
- Set modal width to 95vw with max-width 800px using inline style - Adjust chat container padding to px-6 py-4 - Balance card sizing with px-5 py-4 padding - Reduce icon sizes to text-2xl/text-3xl for better fit - Use text-base/text-sm for improved text readability - Fix text overflow issues during wizard steps Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
71
index.html
71
index.html
@@ -659,7 +659,8 @@
|
|||||||
role="dialog"
|
role="dialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
aria-labelledby="launcher-title"
|
aria-labelledby="launcher-title"
|
||||||
class="bg-slate-900/95 backdrop-blur-xl border border-white/10 w-[calc(100%-2rem)] max-w-lg sm:max-w-xl mx-4 rounded-3xl shadow-2xl shadow-black/50 overflow-hidden flex flex-col max-h-[85vh]">
|
class="bg-slate-900/95 backdrop-blur-xl border border-white/10 mx-4 rounded-3xl shadow-2xl shadow-black/50 overflow-hidden flex flex-col max-h-[85vh]"
|
||||||
|
style="width: 95vw; max-width: 800px;">
|
||||||
|
|
||||||
<!-- Modal Header -->
|
<!-- Modal Header -->
|
||||||
<div class="px-4 py-3 border-b border-white/5 flex justify-between items-center flex-shrink-0">
|
<div class="px-4 py-3 border-b border-white/5 flex justify-between items-center flex-shrink-0">
|
||||||
@@ -676,14 +677,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Chat Container -->
|
<!-- Chat Container -->
|
||||||
<div id="chat-container" class="flex-1 overflow-y-auto p-4 space-y-3" x-show="wizardStep < 5">
|
<div id="chat-container" class="flex-1 overflow-y-auto px-6 py-4 space-y-4" x-show="wizardStep < 5">
|
||||||
<!-- Messages -->
|
<!-- Messages -->
|
||||||
<template x-for="(msg, idx) in messages" :key="idx">
|
<template x-for="(msg, idx) in messages" :key="idx">
|
||||||
<div :class="msg.type === 'bot' ? 'flex justify-start' : 'flex justify-end'">
|
<div :class="msg.type === 'bot' ? 'flex justify-start' : 'flex justify-end'">
|
||||||
<div :class="msg.type === 'bot'
|
<div :class="msg.type === 'bot'
|
||||||
? 'bg-slate-800 text-slate-200 rounded-2xl rounded-tl-sm'
|
? 'bg-slate-800 text-slate-200 rounded-2xl rounded-tl-sm'
|
||||||
: 'bg-brand-500 text-white rounded-2xl rounded-tr-sm'"
|
: 'bg-brand-500 text-white rounded-2xl rounded-tr-sm'"
|
||||||
class="px-4 py-2.5 max-w-[95%] text-sm">
|
class="px-4 py-2.5 text-sm">
|
||||||
<span x-text="msg.text"></span>
|
<span x-text="msg.text"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -692,64 +693,64 @@
|
|||||||
<!-- Current Step Options -->
|
<!-- Current Step Options -->
|
||||||
<div class="pt-2">
|
<div class="pt-2">
|
||||||
<!-- Step 0: Region Selection -->
|
<!-- Step 0: Region Selection -->
|
||||||
<div x-show="wizardStep === 0" class="space-y-2">
|
<div x-show="wizardStep === 0" class="space-y-3">
|
||||||
<template x-for="r in regions" :key="r.id">
|
<template x-for="r in regions" :key="r.id">
|
||||||
<button @click="selectRegion(r)"
|
<button @click="selectRegion(r)"
|
||||||
class="w-full flex items-center justify-between p-3 bg-slate-800/80 hover:bg-slate-700 border border-slate-700/50 hover:border-brand-500/50 rounded-xl transition-all group">
|
class="w-full flex items-center justify-between px-5 py-4 bg-slate-800/80 hover:bg-slate-700 border border-slate-700/50 hover:border-brand-500/50 rounded-xl transition-all group">
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-4">
|
||||||
<span class="text-xl" x-text="r.flag"></span>
|
<span class="text-3xl" x-text="r.flag"></span>
|
||||||
<div class="text-left">
|
<div class="text-left">
|
||||||
<div class="font-medium text-white text-sm" x-text="r.name"></div>
|
<div class="font-semibold text-white text-base" x-text="r.name"></div>
|
||||||
<div class="text-xs text-slate-400" x-text="r.id"></div>
|
<div class="text-sm text-slate-400" x-text="r.id"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-xs text-slate-500 group-hover:text-brand-400" x-text="r.ping"></div>
|
<div class="text-sm text-slate-500 group-hover:text-brand-400 font-mono" x-text="r.ping"></div>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Step 1: Plan Selection -->
|
<!-- Step 1: Plan Selection -->
|
||||||
<div x-show="wizardStep === 1" class="space-y-2">
|
<div x-show="wizardStep === 1" class="space-y-3">
|
||||||
<template x-for="p in plans" :key="p">
|
<template x-for="p in plans" :key="p">
|
||||||
<button @click="selectPlan(p)"
|
<button @click="selectPlan(p)"
|
||||||
class="w-full flex items-center justify-between p-3 bg-slate-800/80 hover:bg-slate-700 border border-slate-700/50 hover:border-brand-500/50 rounded-xl transition-all">
|
class="w-full flex items-center justify-between px-5 py-4 bg-slate-800/80 hover:bg-slate-700 border border-slate-700/50 hover:border-brand-500/50 rounded-xl transition-all">
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-4">
|
||||||
<div class="w-9 h-9 rounded-lg bg-slate-700/50 flex items-center justify-center text-base"
|
<div class="w-12 h-12 rounded-lg bg-slate-700/50 flex items-center justify-center text-2xl"
|
||||||
x-text="p === 'Micro' ? '🔹' : p === 'Starter' ? '🔷' : p === 'Pro' ? '⭐' : '💎'"></div>
|
x-text="p === 'Micro' ? '🔹' : p === 'Starter' ? '🔷' : p === 'Pro' ? '⭐' : '💎'"></div>
|
||||||
<div class="text-left">
|
<div class="text-left">
|
||||||
<div class="font-medium text-white text-sm" x-text="p"></div>
|
<div class="font-semibold text-white text-base" x-text="p"></div>
|
||||||
<div class="text-xs text-slate-400" x-text="getPlanSpec(p)"></div>
|
<div class="text-sm text-slate-400" x-text="getPlanSpec(p)"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<div class="font-semibold text-brand-400 text-sm" x-text="'₩' + getPrice(p)"></div>
|
<div class="font-bold text-brand-400 text-base" x-text="'₩' + getPrice(p)"></div>
|
||||||
<div class="text-[10px] text-slate-500">/월</div>
|
<div class="text-xs text-slate-500">/월</div>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Step 2: OS Selection -->
|
<!-- Step 2: OS Selection -->
|
||||||
<div x-show="wizardStep === 2" class="space-y-2">
|
<div x-show="wizardStep === 2" class="space-y-3">
|
||||||
<template x-for="os in osList" :key="os.id">
|
<template x-for="os in osList" :key="os.id">
|
||||||
<button @click="selectOS(os)"
|
<button @click="selectOS(os)"
|
||||||
class="w-full flex items-center gap-3 p-3 bg-slate-800/80 hover:bg-slate-700 border border-slate-700/50 hover:border-purple-500/50 rounded-xl transition-all">
|
class="w-full flex items-center gap-4 px-5 py-4 bg-slate-800/80 hover:bg-slate-700 border border-slate-700/50 hover:border-purple-500/50 rounded-xl transition-all">
|
||||||
<span class="text-xl" x-text="os.icon"></span>
|
<span class="text-2xl" x-text="os.icon"></span>
|
||||||
<span class="font-medium text-white text-sm" x-text="os.name"></span>
|
<span class="font-semibold text-white text-base" x-text="os.name"></span>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Step 3: Payment Selection -->
|
<!-- Step 3: Payment Selection -->
|
||||||
<div x-show="wizardStep === 3" class="space-y-2">
|
<div x-show="wizardStep === 3" class="space-y-3">
|
||||||
<template x-for="pay in paymentMethods" :key="pay.id">
|
<template x-for="pay in paymentMethods" :key="pay.id">
|
||||||
<button @click="selectPayment(pay)"
|
<button @click="selectPayment(pay)"
|
||||||
class="w-full flex items-center justify-between p-3 bg-slate-800/80 hover:bg-slate-700 border border-slate-700/50 hover:border-green-500/50 rounded-xl transition-all">
|
class="w-full flex items-center justify-between px-5 py-4 bg-slate-800/80 hover:bg-slate-700 border border-slate-700/50 hover:border-green-500/50 rounded-xl transition-all">
|
||||||
<div class="text-left">
|
<div class="text-left">
|
||||||
<div class="font-medium text-white text-sm" x-text="pay.name"></div>
|
<div class="font-semibold text-white text-base" x-text="pay.name"></div>
|
||||||
<div class="text-xs text-slate-400" x-text="pay.desc"></div>
|
<div class="text-sm text-slate-400" x-text="pay.desc"></div>
|
||||||
</div>
|
</div>
|
||||||
<div x-show="pay.discount > 0" class="px-2 py-1 bg-green-500/20 text-green-400 text-xs font-bold rounded-full">
|
<div x-show="pay.discount > 0" class="px-3 py-1.5 bg-green-500/20 text-green-400 text-sm font-bold rounded-full">
|
||||||
-<span x-text="pay.discount"></span>%
|
-<span x-text="pay.discount"></span>%
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
@@ -757,19 +758,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Step 4: Confirmation -->
|
<!-- Step 4: Confirmation -->
|
||||||
<div x-show="wizardStep === 4" class="space-y-3">
|
<div x-show="wizardStep === 4" class="space-y-4">
|
||||||
<div class="p-4 bg-slate-800/50 border border-slate-700/50 rounded-xl space-y-2 text-sm">
|
<div class="px-5 py-4 bg-slate-800/50 border border-slate-700/50 rounded-xl space-y-3">
|
||||||
<div class="flex justify-between"><span class="text-slate-400">리전</span><span class="text-white" x-text="config.region"></span></div>
|
<div class="flex justify-between text-base"><span class="text-slate-400">리전</span><span class="text-white font-medium" x-text="config.region"></span></div>
|
||||||
<div class="flex justify-between"><span class="text-slate-400">플랜</span><span class="text-white" x-text="config.plan + ' (' + getPlanSpec(config.plan) + ')'"></span></div>
|
<div class="flex justify-between text-base"><span class="text-slate-400">플랜</span><span class="text-white font-medium" x-text="config.plan + ' (' + getPlanSpec(config.plan) + ')'"></span></div>
|
||||||
<div class="flex justify-between"><span class="text-slate-400">OS</span><span class="text-white" x-text="config.os"></span></div>
|
<div class="flex justify-between text-base"><span class="text-slate-400">OS</span><span class="text-white font-medium" x-text="config.os"></span></div>
|
||||||
<div class="flex justify-between"><span class="text-slate-400">결제</span><span class="text-white" x-text="config.payment === 'yearly' ? '연간' : '월간'"></span></div>
|
<div class="flex justify-between text-base"><span class="text-slate-400">결제</span><span class="text-white font-medium" x-text="config.payment === 'yearly' ? '연간' : '월간'"></span></div>
|
||||||
<div class="border-t border-slate-700 pt-2 mt-2 flex justify-between font-bold">
|
<div class="border-t border-slate-700 pt-3 mt-3 flex justify-between font-bold text-lg">
|
||||||
<span class="text-slate-300">월 요금</span>
|
<span class="text-slate-300">월 요금</span>
|
||||||
<span class="text-brand-400" x-text="'₩' + getFinalPrice().toLocaleString('ko-KR')"></span>
|
<span class="text-brand-400" x-text="'₩' + getFinalPrice().toLocaleString('ko-KR')"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button @click="startLaunch"
|
<button @click="startLaunch"
|
||||||
class="w-full py-3.5 bg-gradient-to-r from-brand-600 to-brand-500 hover:from-brand-500 hover:to-brand-400 text-white font-bold rounded-xl transition-all shadow-lg shadow-brand-500/25 active:scale-[0.98] text-sm">
|
class="w-full py-4 bg-gradient-to-r from-brand-600 to-brand-500 hover:from-brand-500 hover:to-brand-400 text-white font-bold rounded-xl transition-all shadow-lg shadow-brand-500/25 active:scale-[0.98] text-base">
|
||||||
🚀 서버 생성하기
|
🚀 서버 생성하기
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user