You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
2.7 KiB
Smarty
52 lines
2.7 KiB
Smarty
{include file='home/layout_header.tpl'}
|
|
<header class="home-nav">
|
|
<a class="home-brand" href="/">
|
|
<img src="/theme/venix/images/logo-sm.png" alt="">
|
|
<span>{$appName}</span>
|
|
</a>
|
|
<nav>
|
|
{if $user->isLogin}
|
|
<a href="/user">{if $language == 'true'}User dashboard{else}用户中心{/if}</a>
|
|
{if $user->isAdmin()}<a href="/admin">{if $language == 'true'}Admin panel{else}管理面板{/if}</a>{/if}
|
|
<a class="home-nav-button" href="/user/logout">{if $language == 'true'}Log out{else}退出{/if}</a>
|
|
{else}
|
|
<a href="/auth/login">{if $language == 'true'}Log in{else}登录{/if}</a>
|
|
<a class="home-nav-button" href="/auth/register">{if $language == 'true'}Register{else}注册{/if}</a>
|
|
{/if}
|
|
</nav>
|
|
</header>
|
|
|
|
<main>
|
|
<section class="home-hero">
|
|
<div class="home-hero-copy">
|
|
<p class="home-kicker">Secure Network Workspace</p>
|
|
<h1>{$appName}</h1>
|
|
<p class="home-lead">{if $language == 'true'}{$appName} offers lightweight, reliable network access with stronger interference resistance and faster, more stable connections.{else}{$appName},全新一代的轻型加速服务。抗干扰性更强,数据传输速度更快更稳定。{/if}</p>
|
|
<div class="home-actions">
|
|
{if $user->isLogin}
|
|
<a class="home-button" href="/user"><i class="mdi mdi-view-dashboard-outline"></i>{if $language == 'true'}Open dashboard{else}进入用户中心{/if}</a>
|
|
{if $user->isAdmin()}<a class="home-button home-button-ghost" href="/admin"><i class="mdi mdi-shield-account-outline"></i>{if $language == 'true'}Admin panel{else}管理面板{/if}</a>{/if}
|
|
{else}
|
|
<a class="home-button" href="/auth/register"><i class="mdi mdi-account-plus-outline"></i>{if $language == 'true'}Get started{else}立即开始{/if}</a>
|
|
<a class="home-button home-button-ghost" href="/auth/login"><i class="mdi mdi-login-variant"></i>{if $language == 'true'}Log in to your account{else}已有账户登录{/if}</a>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="home-footer">
|
|
<span>© {$appName}</span>
|
|
</footer>
|
|
{include file='home/layout_scripts.tpl'}
|
|
<script>
|
|
(function () {
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
if (ua.indexOf('micromessenger') !== -1) {
|
|
document.body.innerHTML = '<div style="padding:24px;font-size:16px;line-height:1.7">{if $language == 'true'}This site cannot be opened in WeChat.<br>Use the top-right menu to open it in your browser.{else}不支持在微信内访问<br>请点击右上角菜单<br>选择浏览器打开{/if}</div>';
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|