@@ -45,7 +45,7 @@ function renderRecentAds(ads) {
4545 if ( ! ads || ads . length === 0 ) {
4646 return html `< p class ="text-sm opacity-70 "> No advertisements recorded yet.</ p > ` ;
4747 }
48- const rows = ads . map ( ad => {
48+ const rows = ads . slice ( 0 , 5 ) . map ( ad => {
4949 const friendlyName = ad . tag_name || ad . name ;
5050 const displayName = friendlyName || ( ad . public_key . slice ( 0 , 12 ) + '...' ) ;
5151 const keyLine = friendlyName
@@ -98,7 +98,7 @@ function renderChannelMessages(channelMessages) {
9898 </ div > ` ;
9999 } ) ;
100100
101- return html `< div class ="card bg-base-100 shadow-xl ">
101+ return html `< div class ="card bg-base-100 shadow-xl panel-glow " style =" --panel-color: var(--color-neutral) ">
102102 < div class ="card-body ">
103103 < h2 class ="card-title ">
104104 ${ iconChannel ( 'h-6 w-6' ) }
@@ -148,7 +148,7 @@ export async function render(container, params, router) {
148148${ topCount > 0 ? html `
149149< div class ="grid grid-cols-1 ${ topGrid } gap-6 mb-6 ">
150150 ${ showNodes ? html `
151- < div class ="stat bg-base-100 rounded-box shadow ">
151+ < div class ="stat bg-base-100 rounded-box shadow-xl panel-glow " style =" --panel-color: ${ pageColors . nodes } ">
152152 < div class ="stat-figure " style ="color: ${ pageColors . nodes } ">
153153 ${ iconNodes ( 'h-8 w-8' ) }
154154 </ div >
@@ -158,7 +158,7 @@ ${topCount > 0 ? html`
158158 </ div > ` : nothing }
159159
160160 ${ showAdverts ? html `
161- < div class ="stat bg-base-100 rounded-box shadow ">
161+ < div class ="stat bg-base-100 rounded-box shadow-xl panel-glow " style =" --panel-color: ${ pageColors . adverts } ">
162162 < div class ="stat-figure " style ="color: ${ pageColors . adverts } ">
163163 ${ iconAdvertisements ( 'h-8 w-8' ) }
164164 </ div >
@@ -168,7 +168,7 @@ ${topCount > 0 ? html`
168168 </ div > ` : nothing }
169169
170170 ${ showMessages ? html `
171- < div class ="stat bg-base-100 rounded-box shadow ">
171+ < div class ="stat bg-base-100 rounded-box shadow-xl panel-glow " style =" --panel-color: ${ pageColors . messages } ">
172172 < div class ="stat-figure " style ="color: ${ pageColors . messages } ">
173173 ${ iconMessages ( 'h-8 w-8' ) }
174174 </ div >
@@ -180,7 +180,7 @@ ${topCount > 0 ? html`
180180
181181< div class ="grid grid-cols-1 ${ topGrid } gap-6 mb-8 ">
182182 ${ showNodes ? html `
183- < div class ="card bg-base-100 shadow-xl ">
183+ < div class ="card bg-base-100 shadow-xl panel-glow " style =" --panel-color: var(--color-neutral) ">
184184 < div class ="card-body ">
185185 < h2 class ="card-title text-base ">
186186 ${ iconNodes ( 'h-5 w-5' ) }
@@ -194,7 +194,7 @@ ${topCount > 0 ? html`
194194 </ div > ` : nothing }
195195
196196 ${ showAdverts ? html `
197- < div class ="card bg-base-100 shadow-xl ">
197+ < div class ="card bg-base-100 shadow-xl panel-glow " style =" --panel-color: var(--color-neutral) ">
198198 < div class ="card-body ">
199199 < h2 class ="card-title text-base ">
200200 ${ iconAdvertisements ( 'h-5 w-5' ) }
@@ -208,7 +208,7 @@ ${topCount > 0 ? html`
208208 </ div > ` : nothing }
209209
210210 ${ showMessages ? html `
211- < div class ="card bg-base-100 shadow-xl ">
211+ < div class ="card bg-base-100 shadow-xl panel-glow " style =" --panel-color: var(--color-neutral) ">
212212 < div class ="card-body ">
213213 < h2 class ="card-title text-base ">
214214 ${ iconMessages ( 'h-5 w-5' ) }
@@ -225,7 +225,7 @@ ${topCount > 0 ? html`
225225${ bottomCount > 0 ? html `
226226< div class ="grid grid-cols-1 ${ bottomGrid } gap-6 ">
227227 ${ showAdverts ? html `
228- < div class ="card bg-base-100 shadow-xl ">
228+ < div class ="card bg-base-100 shadow-xl panel-glow " style =" --panel-color: var(--color-neutral) ">
229229 < div class ="card-body ">
230230 < h2 class ="card-title ">
231231 ${ iconAdvertisements ( 'h-6 w-6' ) }
0 commit comments