mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Updated home page
This commit is contained in:
parent
ae445af083
commit
66a67d1491
BIN
assets/img/pages/home/landingPage/img_background.jpg
Executable file → Normal file
BIN
assets/img/pages/home/landingPage/img_background.jpg
Executable file → Normal file
Binary file not shown.
Before Width: | Height: | Size: 431 KiB After Width: | Height: | Size: 394 KiB |
@ -17,16 +17,14 @@ ComunicWeb.pages.home.landingPage = {
|
||||
document.title = "Comunic, a transparent social network";
|
||||
|
||||
//Prepare additional data
|
||||
var additionalData = {};
|
||||
var additionalData = {
|
||||
|
||||
//Preparing next actions
|
||||
var afterParsingTemplate = function(){
|
||||
//Background image URL
|
||||
backgroundImage: ComunicWeb.__config.assetsURL + "img/pages/home/landingPage/img_background.jpg"
|
||||
|
||||
//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);
|
||||
ComunicWeb.common.page.getAndShowTemplate(targetElement, additionalData, "pages/home/landingPage/home.tpl", false, true);
|
||||
}
|
||||
};
|
@ -13,7 +13,7 @@
|
||||
<h3>Free social network that respect your privacy.</h3>
|
||||
<br />
|
||||
|
||||
<a class="btn btn-lg btn-primary" target="create_account">Create account</a>
|
||||
<a class="btn btn-lg btn-primary" target="create_account">Sign up</a>
|
||||
<a class="btn btn-lg btn-success" target="login">Sign in</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -23,13 +23,15 @@
|
||||
|
||||
<!-- Page styles -->
|
||||
<style type="text/css">
|
||||
|
||||
#homeLandingScreen{
|
||||
background-image: url("{backgroundImage}");
|
||||
background-position: 0% 50%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
background-position: 50% 50%;
|
||||
display: table;
|
||||
top: 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user