File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1073,9 +1073,15 @@ async function renderServers() {
10731073 state . servers = data . servers ;
10741074
10751075 if ( data . servers . length === 0 ) {
1076- $ ( '#servers-table-body' ) . innerHTML = html `
1077- < tr > < td colspan ="5 " style ="text-align:center;padding:32px;color:var(--text-secondary) "> No servers yet. < a href ="/create " onclick ="navigateTo('create') "> Create one</ a > </ td > </ tr >
1076+ el . innerHTML = html `
1077+ < div class ="empty-state " style ="margin-top:48px ">
1078+ < div class ="empty-state-icon "> < svg width ="24 " height ="24 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 "> < rect x ="2 " y ="2 " width ="20 " height ="8 " rx ="2 "/> < rect x ="2 " y ="14 " width ="20 " height ="8 " rx ="2 "/> </ svg > </ div >
1079+ < div class ="empty-state-title "> No servers yet</ div >
1080+ < div class ="empty-state-desc "> Create your first server to get started</ div >
1081+ < button class ="btn btn-primary " id ="servers-empty-create-btn "> Create Server</ button >
1082+ </ div >
10781083 ` ;
1084+ $ ( '#servers-empty-create-btn' ) . addEventListener ( 'click' , ( ) => navigateTo ( 'create' ) ) ;
10791085 return ;
10801086 }
10811087
You can’t perform that action at this time.
0 commit comments