mobile app link

This commit is contained in:
merdan 2021-06-18 18:08:46 +05:00
parent 024aeb921d
commit cc8ad52e3c
3 changed files with 65 additions and 43 deletions

View File

@ -148,50 +148,9 @@ random = 0
</section> </section>
<!-- popUp end <!-- popUp end
================================================ --> ================================================ -->
<section class="popUp active" id="popUp"> {% partial 'index/mobile_app' %}
<div class="popUp__inner">
<div class="popUp__inner-header">
<div class="popUp__inner-header-logo">
<img src="images/logo.svg" alt="">
</div>
<div class="popUp__inner-header-close" id="popUpClose1">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 492 492"
style="enable-background:new 0 0 492 492;" xml:space="preserve">
<g>
<g>
<path fill="" d="M300.188,246L484.14,62.04c5.06-5.064,7.852-11.82,7.86-19.024c0-7.208-2.792-13.972-7.86-19.028L468.02,7.872
c-5.068-5.076-11.824-7.856-19.036-7.856c-7.2,0-13.956,2.78-19.024,7.856L246.008,191.82L62.048,7.872
c-5.06-5.076-11.82-7.856-19.028-7.856c-7.2,0-13.96,2.78-19.02,7.856L7.872,23.988c-10.496,10.496-10.496,27.568,0,38.052
L191.828,246L7.872,429.952c-5.064,5.072-7.852,11.828-7.852,19.032c0,7.204,2.788,13.96,7.852,19.028l16.124,16.116
c5.06,5.072,11.824,7.856,19.02,7.856c7.208,0,13.968-2.784,19.028-7.856l183.96-183.952l183.952,183.952
c5.068,5.072,11.824,7.856,19.024,7.856h0.008c7.204,0,13.96-2.784,19.028-7.856l16.12-16.116
c5.06-5.064,7.852-11.824,7.852-19.028c0-7.204-2.792-13.96-7.852-19.028L300.188,246z" />
</g>
</g>
</svg>
</div>
</div>
<div class="popUp__inner-body">
<div class="popUp__inner-body-title">
{{"Приложение"|_}} Orient news
</div>
<div class="popUp__inner-body-subtitle">
{{"Будьте в курсе новостей с нами"|_}}
</div>
</div>
<div class="popUp__inner-footer">
<a href="#" class="popUp__inner-footer-btn">
{{"Скачать"|_}}
</a>
<div class="popUp__inner-footer-close" id="popUpClose2">
Спасибо, не надо.
</div>
</div>
</div>
</section>
<!-- popUp end <!-- popUp end
================================================ --> ================================================ -->
<!-- main end <!-- main end
================================================ --> ================================================ -->

View File

@ -0,0 +1,21 @@
title = "mobile app"
url = "/mobile"
==
<p>redirect to app download page</p>
<p>google <a href="https://play.google.com/store/apps/details?id=com.tpsadvertising.orientnews&hl=ru&gl=US">play market</a></p>
<p>apple <a href="https://apps.apple.com/tm/app/orient-news/id1464890462">app store</a></p>
<script>
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
if (/android/i.test(userAgent)) {
location.replace('https://play.google.com/store/apps/details?id=com.tpsadvertising.orientnews&hl=ru&gl=US');
}
// iOS detection from: http://stackoverflow.com/a/9039885/177710
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
location.replace('https://apps.apple.com/tm/app/orient-news/id1464890462');
}
</script>

View File

@ -0,0 +1,42 @@
<section class="popUp active" id="popUp">
<div class="popUp__inner">
<div class="popUp__inner-header">
<div class="popUp__inner-header-logo">
<img src="{{'assets/images/logo.svg'|theme}}" alt="">
</div>
<div class="popUp__inner-header-close" id="popUpClose1">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 492 492"
style="enable-background:new 0 0 492 492;" xml:space="preserve">
<g>
<g>
<path fill="" d="M300.188,246L484.14,62.04c5.06-5.064,7.852-11.82,7.86-19.024c0-7.208-2.792-13.972-7.86-19.028L468.02,7.872
c-5.068-5.076-11.824-7.856-19.036-7.856c-7.2,0-13.956,2.78-19.024,7.856L246.008,191.82L62.048,7.872
c-5.06-5.076-11.82-7.856-19.028-7.856c-7.2,0-13.96,2.78-19.02,7.856L7.872,23.988c-10.496,10.496-10.496,27.568,0,38.052
L191.828,246L7.872,429.952c-5.064,5.072-7.852,11.828-7.852,19.032c0,7.204,2.788,13.96,7.852,19.028l16.124,16.116
c5.06,5.072,11.824,7.856,19.02,7.856c7.208,0,13.968-2.784,19.028-7.856l183.96-183.952l183.952,183.952
c5.068,5.072,11.824,7.856,19.024,7.856h0.008c7.204,0,13.96-2.784,19.028-7.856l16.12-16.116
c5.06-5.064,7.852-11.824,7.852-19.028c0-7.204-2.792-13.96-7.852-19.028L300.188,246z" />
</g>
</g>
</svg>
</div>
</div>
<div class="popUp__inner-body">
<div class="popUp__inner-body-title">
{{"Приложение"|_}} Orient news
</div>
<div class="popUp__inner-body-subtitle">
{{"Будьте в курсе новостей с нами"|_}}
</div>
</div>
<div class="popUp__inner-footer">
<a href="{{'mobile_app'|page}}" class="popUp__inner-footer-btn">
{{"Скачать"|_}}
</a>
<div class="popUp__inner-footer-close" id="popUpClose2">
{{'Спасибо, не надо.'|_}}
</div>
</div>
</div>
</section>