mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Added a landing page
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								assets/img/pages/home/landingPage/img_background.jpg
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/img/pages/home/landingPage/img_background.jpg
									
									
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 431 KiB  | 
@@ -12,5 +12,18 @@ ComunicWeb.pages.home.landingPage = {
 | 
				
			|||||||
    display: function(targetElement){
 | 
					    display: function(targetElement){
 | 
				
			||||||
        //Log action
 | 
					        //Log action
 | 
				
			||||||
        ComunicWeb.debug.logMessage("Open home landing page.");
 | 
					        ComunicWeb.debug.logMessage("Open home landing page.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        //Prepare additional data
 | 
				
			||||||
 | 
					        var additionalData = {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        //Preparing next actions
 | 
				
			||||||
 | 
					        var afterParsingTemplate = function(){
 | 
				
			||||||
 | 
					            console.log(byId("homeLandingScreen"));
 | 
				
			||||||
 | 
					            //Change home background
 | 
				
			||||||
 | 
					            byId("homeLandingScreen").style.backgroundImage = "url('"+ComunicWeb.__config.assetsURL + "img/pages/home/landingPage/img_background.jpg')";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        //Apply template
 | 
				
			||||||
 | 
					        ComunicWeb.common.page.getAndShowTemplate(targetElement, additionalData, "pages/home/landingPage/home.tpl", afterParsingTemplate, true);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
							
								
								
									
										27
									
								
								assets/templates/pages/home/landingPage/home.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								assets/templates/pages/home/landingPage/home.tpl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
						Home landing page
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@author Pierre HUBERT
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					<div id="homeLandingScreen">
 | 
				
			||||||
 | 
						<div class="landingMessage">
 | 
				
			||||||
 | 
							<h1>ComunicWeb V2 Experimental preview</h1>
 | 
				
			||||||
 | 
						</div>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<!-- Page styles -->
 | 
				
			||||||
 | 
					<style type="text/css">
 | 
				
			||||||
 | 
						#homeLandingScreen{
 | 
				
			||||||
 | 
							width: 100%;
 | 
				
			||||||
 | 
							height: 100%;
 | 
				
			||||||
 | 
							position: fixed;
 | 
				
			||||||
 | 
							text-align: center;
 | 
				
			||||||
 | 
							padding: 60px;
 | 
				
			||||||
 | 
							background-position: 50% 50%;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						#homeLandingScreen .landingMessage {
 | 
				
			||||||
 | 
							position: relative;
 | 
				
			||||||
 | 
							background-color: #fff6;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					</style>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user