@@ -24,43 +24,9 @@ class PortalRoom {
2424 this . addThemeToggle ( ) ;
2525 }
2626
27- // Setup dungeon ambiance effects
27+ // Setup page
2828 setupDungeonAmbiance ( ) {
29- // Add random torch flickers
30- this . createTorchEffects ( ) ;
31-
32- // Add occasional ambient notifications
33- if ( Math . random ( ) < 0.1 ) { // 10% chance
34- setTimeout ( ( ) => {
35- this . showNotification ( '👻 The ancient spirits whisper of great treasures...' , 'info' ) ;
36- } , Math . random ( ) * 3000 ) ;
37- }
38- }
39-
40- // Create torch flame effects
41- createTorchEffects ( ) {
42- const header = document . querySelector ( 'header' ) ;
43- if ( ! header ) return ;
44-
45- // Add floating torch particles
46- for ( let i = 0 ; i < 5 ; i ++ ) {
47- const torch = document . createElement ( 'div' ) ;
48- torch . className = 'torch-effect' ;
49- torch . style . cssText = `
50- position: absolute;
51- width: 4px;
52- height: 4px;
53- background: radial-gradient(circle, #FF6B35, #D4AF37);
54- border-radius: 50%;
55- left: ${ Math . random ( ) * 100 } %;
56- top: ${ Math . random ( ) * 100 } %;
57- animation: torchFlicker ${ 2 + Math . random ( ) * 2 } s infinite alternate;
58- opacity: 0.6;
59- pointer-events: none;
60- z-index: 1;
61- ` ;
62- header . appendChild ( torch ) ;
63- }
29+ // Placeholder for future effects
6430 }
6531
6632 // Setup keyboard shortcuts for power users
@@ -77,31 +43,31 @@ class PortalRoom {
7743 if ( e . ctrlKey ) {
7844 e . preventDefault ( ) ;
7945 window . location . href = 'index.html' ;
80- this . showNotification ( '🏰 Returning to the Grand Hall ...' , 'info' ) ;
46+ this . showNotification ( 'returning home ...' , 'info' ) ;
8147 }
8248 break ;
8349 case 'd' :
8450 case 'D' :
8551 if ( e . ctrlKey ) {
8652 e . preventDefault ( ) ;
8753 window . location . href = 'dashboard.html' ;
88- this . showNotification ( '🏰 Entering the Guild Chamber ...' , 'info' ) ;
54+ this . showNotification ( 'loading dashboard ...' , 'info' ) ;
8955 }
9056 break ;
9157 case 's' :
9258 case 'S' :
9359 if ( e . ctrlKey ) {
9460 e . preventDefault ( ) ;
9561 window . location . href = 'submit.html' ;
96- this . showNotification ( '📮 Preparing to contribute treasure ...' , 'info' ) ;
62+ this . showNotification ( 'opening submit form ...' , 'info' ) ;
9763 }
9864 break ;
9965 case 'p' :
10066 case 'P' :
10167 if ( e . ctrlKey ) {
10268 e . preventDefault ( ) ;
10369 window . location . href = 'profile.html' ;
104- this . showNotification ( '⚜️ Entering your noble chamber ...' , 'info' ) ;
70+ this . showNotification ( 'loading profile ...' , 'info' ) ;
10571 }
10672 break ;
10773 }
@@ -165,33 +131,7 @@ class PortalRoom {
165131
166132 const notification = document . createElement ( 'div' ) ;
167133 notification . className = `notification notification-${ type } ` ;
168-
169- // Message variations
170- const messages = {
171- 'success' : [
172- 'Success!' ,
173- 'Link submitted!' ,
174- 'List created!' ,
175- 'Data exported!'
176- ] ,
177- 'error' : [
178- 'Error!' ,
179- 'Invalid input!' ,
180- 'Failed to submit!' ,
181- 'Please try again!'
182- ] ,
183- 'info' : [
184- 'Info' ,
185- 'Loading...' ,
186- 'Redirecting...' ,
187- 'Processing...'
188- ]
189- } ;
190-
191- // Add some randomness to messages
192- const msgArray = messages [ type ] || [ message ] ;
193- const selectedMessage = msgArray [ Math . floor ( Math . random ( ) * msgArray . length ) ] ;
194- notification . textContent = selectedMessage ;
134+ notification . textContent = message ;
195135
196136 document . body . appendChild ( notification ) ;
197137
@@ -220,7 +160,7 @@ class PortalRoom {
220160 const currentPage = window . location . pathname . split ( '/' ) . pop ( ) ;
221161
222162 if ( authPages . includes ( currentPage ) ) {
223- this . showNotification ( 'Already inside the guild. Taking you to the chamber ...' , 'info' ) ;
163+ this . showNotification ( 'already logged in, redirecting ...' , 'info' ) ;
224164 setTimeout ( ( ) => window . location . href = 'dashboard.html' , 600 ) ;
225165 }
226166 }
@@ -1133,8 +1073,8 @@ class PortalRoom {
11331073 if ( recentLinks . length === 0 ) {
11341074 container . innerHTML = `
11351075 <div class="empty-state">
1136- <p>🔮 The ancient scrolls remain silent... No treasures have been discovered yet.</p>
1137- <p>Be the first brave adventurer to <a href="register.html">join the guild </a> and contribute a legendary discovery! </p>
1076+ <p>No links have been submitted yet.</p>
1077+ <p><a href="register.html">Register </a> to submit the first link to the archive. </p>
11381078 </div>
11391079 ` ;
11401080 return ;
@@ -1164,7 +1104,7 @@ class PortalRoom {
11641104 if ( topLinks . length === 0 ) {
11651105 container . innerHTML = `
11661106 <div class="empty-state">
1167- <p>🏆 No top links yet. Start voting on links!</p>
1107+ <p>No top links yet. Start voting on links!</p>
11681108 </div>
11691109 ` ;
11701110 return ;
@@ -1342,7 +1282,7 @@ class PortalRoom {
13421282
13431283 followsContainer . innerHTML = `
13441284 <div class="column-header">
1345- <h3>👥 Followed Adventurers </h3>
1285+ <h3>Followed Users </h3>
13461286 </div>
13471287 ${ userFollows . length === 0 ? '<p class="empty-state">Not following anyone yet.</p>' : userFollows . map ( followed => `
13481288 <div class="followed-user">
@@ -1351,7 +1291,7 @@ class PortalRoom {
13511291 </div>
13521292 ` ) . join ( '' ) }
13531293 <div class="follow-form">
1354- <input type="text" id="follow-username" placeholder="Username to follow">
1294+ <input type="text" id="follow-username" placeholder="username to follow">
13551295 <button onclick="app.followUser(document.getElementById('follow-username').value)">Follow</button>
13561296 </div>
13571297 ` ;
0 commit comments