Cleanup landing page

pull/866/head
Pawel Spychalski (DzikuVx) 5 years ago
parent 1846623b1c
commit bb39007de4

@ -1,5 +0,0 @@
<span>1.0.2</span>
<ul>
<li>PID scaling in Configurator removed</li>
<li>Improved anonymous tracking</li>
</ul>

@ -122,7 +122,7 @@
margin-bottom: 15px; margin-bottom: 15px;
font-weight: normal; font-weight: normal;
font-family: 'open_sansregular', Arial,serif; font-family: 'open_sansregular', Arial,serif;
font-size: 12px; font-size: 1.2em;
color: #c2efff; color: #c2efff;
} }
@ -155,11 +155,11 @@
} }
.tab-landing .content_mid .text1 { .tab-landing .content_mid .text1 {
width: 37%; width: 47%;
} }
.tab-landing .content_mid .text2 { .tab-landing .content_mid .text2 {
width: 40%; width: 47%;
} }
.tab-landing .content_mid .text2 ul { .tab-landing .content_mid .text2 ul {
@ -189,74 +189,4 @@
.tab-landing .content_mid .text3 .donate { .tab-landing .content_mid .text3 .donate {
margin-top: 10px; margin-top: 10px;
text-align: center; text-align: center;
}
/* changelog block */
#changelog {
width: 250px;
height: 100%;
position: fixed;
right: -245px;
top: 0;
background: white;
}
#changelog .wrapper {
height: 100%;
padding: 0 20px;
border-left: 5px solid #3394b5;
overflow-y: auto;
display: none;
}
#changelog .button {
transform: rotate(270deg);
top: 50px;
right: 215px;
position: absolute;
background: #3394b5;
border-radius: 5px 5px 0 0;
border-bottom: none;
height: 30px;
}
#changelog .button a {
display: block;
padding: 5px 10px;
width: 70px;
text-align: center;
color: white;
}
#changelog .title {
margin: 20px 0;
font-size: 16px;
}
#changelog .wrapper {
display: block;
}
#changelog .log {
line-height: 17px;
}
#changelog .log span {
display: block;
font-weight: bold;
padding-bottom: 5px;
border-bottom: 1px solid #ddd;
}
#changelog .log ul {
margin: 5px 0 20px 10px;
}
#changelog .log li {
font-weight: normal;
margin-bottom: 5px;
}
#changelog .log p {
margin-bottom: 20px;
} }

@ -12,39 +12,18 @@
<ul class="communityRCGroupsSupport"><a href="https://www.rcgroups.com/forums/showthread.php?2495732-Cleanflight-iNav-%28navigation-rewrite%29-project" target="_blank"><i class="fa fa-users" aria-hidden="true"></i><span i18n="communityRCGroupsSupport"></span></a></ul> <ul class="communityRCGroupsSupport"><a href="https://www.rcgroups.com/forums/showthread.php?2495732-Cleanflight-iNav-%28navigation-rewrite%29-project" target="_blank"><i class="fa fa-users" aria-hidden="true"></i><span i18n="communityRCGroupsSupport"></span></a></ul>
</div> </div>
<div class="content_mid"> <div class="content_mid">
<div class="column third_left text1"> <div class="column half text1">
<div class="wrap"> <div class="wrap">
<h2>Hardware</h2> <h2>Hardware</h2>
<div i18n="defaultWelcomeText"></div> <div i18n="defaultWelcomeText"></div>
</div> </div>
</div> </div>
<div class="column third_center text2"> <div class="column half text2">
<div class="wrap"> <div class="wrap">
<h2 i18n="defaultContributingHead"></h2> <h2 i18n="defaultContributingHead"></h2>
<div i18n="defaultContributingText"></div> <div i18n="defaultContributingText"></div>
</div> </div>
</div> </div>
<div class="column third_right text3">
<div class="wrap2">
<h3 i18n="defaultDonateHead"></h3>
<div i18n="defaultDonateText"></div>
<div class="donate">
<a href="https://www.paypal.me/KonstantinSharlaimov"
target="_blank" title="Donate"><img src="./images/btn-paypal.png" alt="Paypal"
height="30" /></a>
</div>
<div class="donate">
<a href="https://www.patreon.com/inavflight"
target="_blank" title="Support on Patreon"><img src="./images/btn-patreon.png" alt="Patreon"
height="30" /></a>
</div>
<div class="donate">
<a href="https://money.yandex.ru/to/410013985315067"
target="_blank" title="Поддержать через Яндекс.Деньги"><img src="./images/btn-yandex.png" alt="Яндекс.Деньги"
height="55" /></a>
</div>
</div>
</div>
</div> </div>
<div class="content_foot"> <div class="content_foot">
<div class="sponsors"> <div class="sponsors">
@ -58,15 +37,4 @@
</div> </div>
</div> </div>
</div> </div>
<div id="changelog">
<div class="button">
<a id="changelog_toggle" href="#">Changelog</a>
</div>
<div class="wrapper">
<div class="title" i18n="defaultChangelogHead"></div>
<div class="log">
<!-- changelog content will be loaded here -->
</div>
</div>
</div>
</div> </div>

@ -1,9 +1,8 @@
'use strict'; 'use strict';
/*global $*/ /*global $,TABS,GUI*/
TABS.landing = {}; TABS.landing = {};
TABS.landing.initialize = function (callback) { TABS.landing.initialize = function (callback) {
var self = this;
if (GUI.active_tab != 'landing') { if (GUI.active_tab != 'landing') {
GUI.active_tab = 'landing'; GUI.active_tab = 'landing';
@ -14,30 +13,10 @@ TABS.landing.initialize = function (callback) {
// translate to user-selected language // translate to user-selected language
localize(); localize();
// load changelog content
$('#changelog .log').load('./changelog.html');
$('div.welcome a, div.sponsors a').click(function () { $('div.welcome a, div.sponsors a').click(function () {
googleAnalytics.sendEvent('ExternalUrls', 'Click', $(this).prop('href')); googleAnalytics.sendEvent('ExternalUrls', 'Click', $(this).prop('href'));
}); });
/** changelog trigger **/
$("#changelog_toggle").on('click', function() {
var state = $(this).data('state2');
if (state) {
$("#changelog").animate({right: -245}, 200, function () {
$("#content").removeClass('log_open');
});
state = false;
} else {
$("#changelog").animate({right: 0}, 200);
$("#content").addClass('log_open');
state = true;
}
$(this).text(state ? 'Close' : 'Changelog');
$(this).data('state2', state);
});
GUI.content_ready(callback); GUI.content_ready(callback);
}); });

Loading…
Cancel
Save