master #6
							
								
								
									
										74
									
								
								assets/HypertextPages/list-rooms.nytl.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								assets/HypertextPages/list-rooms.nytl.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,74 @@ | |||||||
|  | {% ELDEF main JSON pres JSON userinfo JSON initial_chatListUpdResp %} | ||||||
|  | <!DOCTYPE html> | ||||||
|  | <html lang="{% W pres.lang %}"> | ||||||
|  | <head> | ||||||
|  |     <meta charset="UTF-8"> | ||||||
|  |     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||
|  |     <title>{%w pres.list-rooms.header %}</title> | ||||||
|  |     <link rel="icon" type="image/png" href="/assets/img/favicon.png"> | ||||||
|  |     <link rel="stylesheet" href="/assets/css/common.css"> | ||||||
|  |     <link rel="stylesheet" href="/assets/css/common-popup.css"> | ||||||
|  |     <link rel="stylesheet" href="/assets/css/list-rooms.css"> | ||||||
|  | </head> | ||||||
|  | <body> | ||||||
|  |     <script> | ||||||
|  |         let pres = {% PUT jsinsert pres %}; | ||||||
|  |         let userinfo = {% PUT jsinsert userinfo %}; | ||||||
|  |         let initial_chatListUpdResp = {% PUT jsinsert initial_chatListUpdResp %}; | ||||||
|  |     </script> | ||||||
|  |     <div id="chat-creation-win" class="popup-window"> | ||||||
|  |         <h1 class="popup-window-msg">{%w pres.list-rooms.new-chat-header %}</h1> | ||||||
|  |         <table class="id-str-input-table"> | ||||||
|  |             <tr> | ||||||
|  |                 <td class="id-str-input-td1"> | ||||||
|  |                     <label for="chat-nickname-input">{%w pres.list-rooms.directive-nickname %}</label> | ||||||
|  |                 </td> | ||||||
|  |                 <td class="id-str-input-td2"> | ||||||
|  |                     <input id="chat-nickname-input" type="text" class="one-line-input" | ||||||
|  |                            placeholder="{%w pres.list-rooms.placeholder-nickname %}" required> | ||||||
|  |                 </td> | ||||||
|  |             </tr> | ||||||
|  |             <tr> | ||||||
|  |                 <td class="id-str-input-td1"> | ||||||
|  |                     <label for="chat-name-input">{%w pres.list-rooms.directive-name %}</label> | ||||||
|  |                 </td> | ||||||
|  |                 <td class="id-str-input-td2"> | ||||||
|  |                     <input id="chat-name-input" type="text" class="one-line-input" | ||||||
|  |                            placeholder="{%w pres.list-rooms.placeholder-name %}" required> | ||||||
|  |                 </td> | ||||||
|  |             </tr> | ||||||
|  |         </table> | ||||||
|  |         <h1 class="popup-window-msg">{%w pres.list-rooms.reask-create-new-chat %}</h1> | ||||||
|  |         <button class="popup-window-btn-yes" id="chat-creation-win-yes">{%w pres.list-rooms.yes-create %}</button> | ||||||
|  |         <button class="popup-window-btn-no" id="chat-creation-win-no">{%w pres.list-rooms.no-create %}</button> | ||||||
|  |     </div> | ||||||
|  | 
 | ||||||
|  |     <div id="chat-renunciation-win" class="popup-window"> | ||||||
|  |         <h1 id="chat-renunciation-win-title" class="popup-window-msg">||||||||||</h1> | ||||||
|  |         <button class="popup-window-btn-yes" id="chat-renunciation-win-yes">{%w pres.list-rooms.yes-leave %}</button> | ||||||
|  |         <button class="popup-window-btn-no" id="chat-renunciation-win-no">{%w pres.list-rooms.no-leave %}</button> | ||||||
|  |     </div> | ||||||
|  | 
 | ||||||
|  |     <div class="document-container resp-container"> | ||||||
|  |         <div id="navigation-panel" class="panel"> | ||||||
|  |             <a href="/user/{%w userinfo.nickname %}" id="go-to-my-profile" class="panel-thing"> | ||||||
|  |                 <img alt="Go to my profile" src="/assets/img/user.svg" width="32px"> | ||||||
|  |             </a> | ||||||
|  |             <p class="panel-thing panel-header-txt"> | ||||||
|  |                 {%w pres.list-rooms.page-description %} | ||||||
|  |             </p> | ||||||
|  |         </div> | ||||||
|  | 
 | ||||||
|  |         <div class="dynamic-block-list"> | ||||||
|  |             <img id="CL-bacbe" class="button-add centered-block-el" alt="New chat" src="/assets/img/add.svg"> | ||||||
|  |             <div class="dynamic-block-list-el-container" id="CL-dblec"> | ||||||
|  | 
 | ||||||
|  |             </div> | ||||||
|  |         </div> | ||||||
|  |     </div> | ||||||
|  |     <script src="/assets/js/common.js"></script> | ||||||
|  |     <script src="/assets/js/common-popup.js"></script> | ||||||
|  |     <script src="/assets/js/list-rooms.js"></script> | ||||||
|  | </body> | ||||||
|  | </html> | ||||||
|  | {% ENDELDEF %} | ||||||
							
								
								
									
										166
									
								
								assets/css/list-rooms.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										166
									
								
								assets/css/list-rooms.css
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,166 @@ | |||||||
|  | /* Общие стили */ | ||||||
|  | body { | ||||||
|  |     font-family: 'Roboto', sans-serif; | ||||||
|  |     background-color: #f7f9fc; | ||||||
|  |     color: #333; | ||||||
|  |     margin: 0; | ||||||
|  |     padding: 0; | ||||||
|  |     box-sizing: border-box; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Панель навигации */ | ||||||
|  | .panel { | ||||||
|  |     background-color: #007bff; | ||||||
|  |     padding: 10px; | ||||||
|  |     color: white; | ||||||
|  |     display: flex; | ||||||
|  |     align-items: center; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .panel-thing { | ||||||
|  |     margin-right: 20px; | ||||||
|  |     text-decoration: none; | ||||||
|  |     color: white; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .panel-header-txt { | ||||||
|  |     font-size: 18px; | ||||||
|  |     font-weight: bold; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Стили динамических блоков */ | ||||||
|  | .dynamic-block-list { | ||||||
|  |     display: flex; | ||||||
|  |     flex-direction: column; | ||||||
|  |     align-items: center; | ||||||
|  |     padding: 20px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .dynamic-block-list-el-container { | ||||||
|  |     width: 100%; | ||||||
|  |     max-width: 600px; | ||||||
|  |     margin-top: 20px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Кнопка добавления */ | ||||||
|  | .button-add { | ||||||
|  |     width: 50px; | ||||||
|  |     height: 50px; | ||||||
|  |     cursor: pointer; | ||||||
|  |     transition: transform 0.2s; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .button-add:hover { | ||||||
|  |     transform: scale(1.1); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Всплывающие окна */ | ||||||
|  | .popup-window { | ||||||
|  |     background-color: white; | ||||||
|  |     border-radius: 8px; | ||||||
|  |     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||||||
|  |     padding: 20px; | ||||||
|  |     max-width: 500px; | ||||||
|  |     margin: 0 auto; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .popup-window-msg { | ||||||
|  |     font-size: 20px; | ||||||
|  |     margin-bottom: 15px; | ||||||
|  |     color: #333; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .popup-window-btn-yes, .popup-window-btn-no { | ||||||
|  |     padding: 10px 20px; | ||||||
|  |     border: none; | ||||||
|  |     border-radius: 5px; | ||||||
|  |     font-size: 16px; | ||||||
|  |     cursor: pointer; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .popup-window-btn-yes { | ||||||
|  |     background-color: #28a745; | ||||||
|  |     color: white; | ||||||
|  |     margin-right: 10px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .popup-window-btn-no { | ||||||
|  |     background-color: #dc3545; | ||||||
|  |     color: white; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Таблица ввода */ | ||||||
|  | table.id-str-input-table { | ||||||
|  |     width: 100%; | ||||||
|  |     border-collapse: collapse; | ||||||
|  |     margin-bottom: 20px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .id-str-input-td1, .id-str-input-td2 { | ||||||
|  |     border: none; | ||||||
|  |     padding: 10px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .id-str-input-td1 { | ||||||
|  |     text-align: left; | ||||||
|  |     padding-right: 10px; | ||||||
|  |     font-weight: bold; | ||||||
|  |     color: #555; | ||||||
|  |     white-space: nowrap; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .id-str-input-td2 { | ||||||
|  |     width: 100%; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .one-line-input { | ||||||
|  |     width: 100%; | ||||||
|  |     padding: 8px 12px; | ||||||
|  |     border: 1px solid #ccc; | ||||||
|  |     border-radius: 4px; | ||||||
|  |     font-size: 14px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Стили комнат */ | ||||||
|  | .CL-my-chat-box { | ||||||
|  |     display: flex; | ||||||
|  |     flex-direction: row; | ||||||
|  |     position: relative; | ||||||
|  |     padding: 10px; | ||||||
|  |     background-color: #e0f7fa; | ||||||
|  |     border-radius: 8px; | ||||||
|  |     margin-bottom: 10px; | ||||||
|  |     align-items: center; | ||||||
|  |     min-height: 40px; | ||||||
|  |     width: 100%; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Текст внутри блока комнаты */ | ||||||
|  | .CL-my-chat-box-nickname, .CL-my-chat-box-name, .CL-my-chat-box-my-role { | ||||||
|  |     margin-left: 8px; | ||||||
|  |     justify-self: flex-start; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Крестик в правом верхнем углу */ | ||||||
|  | .CL-my-chat-box-leave-btn { | ||||||
|  |     position: absolute; | ||||||
|  |     top: 8px; | ||||||
|  |     right: 8px; | ||||||
|  |     width: 16px; | ||||||
|  |     height: 16px; | ||||||
|  |     background: url('/assets/img/close.svg') no-repeat center; | ||||||
|  |     background-size: cover; | ||||||
|  |     cursor: pointer; | ||||||
|  |     border: none; | ||||||
|  |     transition: transform 0.2s; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .CL-my-chat-box-leave-btn:hover { | ||||||
|  |     transform: scale(1.2); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | /* Дизайн списка комнат остается таким же */ | ||||||
|  | #CL-bacbe { | ||||||
|  |     margin-top: 6px; | ||||||
|  |     margin-bottom: 4px; | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user