2016-07-21 22:01:57 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2018-07-06 14:49:39 +08:00
|
|
|
<title>{{ option_localized('site_name') }}</title>
|
2016-12-31 13:36:46 +08:00
|
|
|
{!! bs_favicon() !!}
|
2016-07-21 22:01:57 +08:00
|
|
|
<!-- Tell the browser to be responsive to screen width -->
|
|
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
|
|
<!-- App Styles -->
|
2018-08-07 09:25:20 +08:00
|
|
|
@include('common.dependencies.style', ['module' => 'home'])
|
2016-07-21 22:01:57 +08:00
|
|
|
</head>
|
|
|
|
|
2016-09-15 23:03:58 +08:00
|
|
|
<body class="hold-transition {{ option('color_scheme') }} layout-top-nav">
|
2016-07-21 22:01:57 +08:00
|
|
|
|
2018-02-23 11:30:36 +08:00
|
|
|
<div class="hp-wrapper" style="background-image: url('{{ $home_pic_url }}');">
|
2016-12-11 15:17:24 +08:00
|
|
|
<!-- Navigation -->
|
|
|
|
<header class="main-header transparent">
|
|
|
|
<nav class="navbar navbar-fixed-top">
|
2016-07-21 22:01:57 +08:00
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
2018-07-06 14:49:39 +08:00
|
|
|
<a href="{{ option('site_url') }}" class="navbar-brand">{{ option_localized('site_name') }}</a>
|
2016-09-25 10:40:39 +08:00
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
|
2018-08-08 12:30:50 +08:00
|
|
|
<i class="fas fa-bars"></i>
|
2016-09-25 10:40:39 +08:00
|
|
|
</button>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
|
<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
2018-07-17 11:06:55 +08:00
|
|
|
<li class="active"><a href="{{ url('/') }}">@lang('general.index')</a></li>
|
|
|
|
<li><a href="{{ url('skinlib') }}">@lang('general.skinlib')</a></li>
|
2016-09-25 10:40:39 +08:00
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
<!-- Navbar Right Menu -->
|
|
|
|
<div class="navbar-custom-menu">
|
|
|
|
<ul class="nav navbar-nav">
|
2017-07-03 20:54:19 +08:00
|
|
|
@include('common.language')
|
2016-12-11 15:17:24 +08:00
|
|
|
|
2018-07-20 14:42:43 +08:00
|
|
|
@auth
|
2017-07-03 20:54:19 +08:00
|
|
|
@include('common.user-menu')
|
2016-09-15 23:03:58 +08:00
|
|
|
@else {{-- Anonymous User --}}
|
|
|
|
<!-- User Account Menu -->
|
|
|
|
<li class="dropdown user user-menu">
|
2018-07-17 11:06:55 +08:00
|
|
|
<a href="{{ url('auth/login') }}" class="btn btn-login">@lang('general.login')</a>
|
2016-09-15 23:03:58 +08:00
|
|
|
</li>
|
2018-07-20 14:42:43 +08:00
|
|
|
@endauth
|
2016-07-21 22:01:57 +08:00
|
|
|
</ul>
|
2016-09-15 23:03:58 +08:00
|
|
|
</div><!-- /.navbar-custom-menu -->
|
2016-07-21 22:01:57 +08:00
|
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
|
2016-12-11 15:17:24 +08:00
|
|
|
<div class="container">
|
|
|
|
<div class="splash">
|
2018-07-06 14:49:39 +08:00
|
|
|
<h1 class="splash-head">{{ option_localized('site_name') }}</h1>
|
2016-12-11 15:17:24 +08:00
|
|
|
<p class="splash-subhead">
|
2018-07-06 14:49:39 +08:00
|
|
|
{{ option_localized('site_description') }}
|
2016-12-11 15:17:24 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
2018-07-20 14:42:43 +08:00
|
|
|
@guest
|
2016-12-11 15:17:24 +08:00
|
|
|
@if (option('user_can_register'))
|
2018-07-17 11:06:55 +08:00
|
|
|
<a href="{{ url('auth/register') }}" id="btn-register" class="button">@lang('general.register')</a>
|
2016-09-10 17:02:47 +08:00
|
|
|
@else
|
2018-07-17 11:06:55 +08:00
|
|
|
<a href="{{ url('auth/login') }}" id="btn-close-register" class="button">@lang('general.login')</a>
|
2016-09-10 17:02:47 +08:00
|
|
|
@endif
|
2016-12-11 15:17:24 +08:00
|
|
|
@else
|
2018-07-17 11:06:55 +08:00
|
|
|
<a href="{{ url('user') }}" class="button">@lang('general.user-center')</a>
|
2018-07-20 14:42:43 +08:00
|
|
|
@endguest
|
2016-12-11 15:17:24 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div> <!--/ .container -->
|
|
|
|
</div><!--/ #headerwrap -->
|
|
|
|
|
|
|
|
<!-- INTRO WRAP -->
|
|
|
|
<div id="intro">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row text-center">
|
|
|
|
<h1>Features</h1>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<div class="col-lg-4">
|
2018-08-13 19:04:04 +08:00
|
|
|
<i class="fas {{ trans('index.features.first.icon') }}" aria-hidden="true"></i>
|
|
|
|
<h3>{!! trans('index.features.first.name') !!}</h3>
|
|
|
|
<p>{!! trans('index.features.first.desc') !!}</p>
|
2016-12-11 15:17:24 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
2018-08-13 19:04:04 +08:00
|
|
|
<i class="fas {{ trans('index.features.second.icon') }}" aria-hidden="true"></i>
|
|
|
|
<h3>{!! trans('index.features.second.name') !!}</h3>
|
|
|
|
<p>{!! trans('index.features.second.desc') !!}</p>
|
2016-12-11 15:17:24 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
2018-08-13 19:04:04 +08:00
|
|
|
<i class="fas {{ trans('index.features.third.icon') }}" aria-hidden="true"></i>
|
|
|
|
<h3>{!! trans('index.features.third.name') !!}</h3>
|
|
|
|
<p>{!! trans('index.features.third.desc') !!}</p>
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-11 15:17:24 +08:00
|
|
|
<br>
|
|
|
|
</div> <!--/ .container -->
|
|
|
|
</div><!--/ #introwrap -->
|
2016-07-21 22:01:57 +08:00
|
|
|
|
2016-12-11 15:17:24 +08:00
|
|
|
<div id="footerwrap">
|
|
|
|
<div class="container">
|
|
|
|
<div class="col-lg-6">
|
2018-08-13 19:04:04 +08:00
|
|
|
{!! trans('index.introduction', ['sitename' => option_localized('site_name')]) !!}
|
2016-07-21 22:01:57 +08:00
|
|
|
</div>
|
|
|
|
|
2016-12-11 15:17:24 +08:00
|
|
|
<div class="col-lg-6">
|
2018-07-17 11:06:55 +08:00
|
|
|
<a href="{{ url('auth/register') }}" id="btn-register" class="button">@lang('index.start')</a>
|
2016-12-11 15:17:24 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="copyright">
|
|
|
|
<!-- Designed by Pratt -->
|
|
|
|
<div class="container">
|
|
|
|
<!-- YOU CAN NOT MODIFIY THE COPYRIGHT TEXT W/O PERMISSION -->
|
2017-01-21 12:59:35 +08:00
|
|
|
<div id="copyright-text" class="pull-right hidden-xs">
|
2016-12-27 23:05:09 +08:00
|
|
|
{!! bs_copyright() !!}
|
2016-12-11 15:17:24 +08:00
|
|
|
</div>
|
|
|
|
<!-- Default to the left -->
|
2016-12-27 23:05:09 +08:00
|
|
|
{!! bs_custom_copyright() !!}
|
2016-12-11 15:17:24 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
<!-- App Scripts -->
|
2017-07-14 09:45:30 +08:00
|
|
|
@include('common.dependencies.script')
|
2016-12-10 19:50:15 +08:00
|
|
|
|
2018-08-19 19:02:22 +08:00
|
|
|
<script>
|
|
|
|
function isMobileBrowserScrolling() {
|
|
|
|
var currentWindowWidth = $(window).width();
|
|
|
|
var currentWindowHeight = $(window).height();
|
|
|
|
|
|
|
|
if ($.cachedWindowWidth === undefined) {
|
|
|
|
$.cachedWindowWidth = currentWindowWidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($.cachedWindowHeight === undefined) {
|
|
|
|
$.cachedWindowHeight = currentWindowHeight;
|
|
|
|
}
|
|
|
|
|
|
|
|
var isWidthChanged = (currentWindowWidth !== $.cachedWindowWidth);
|
|
|
|
var isHeightChanged = (currentWindowHeight !== $.cachedWindowHeight);
|
|
|
|
|
|
|
|
// If the window width & height changes simultaneously, the resize can't be fired by scrolling.
|
|
|
|
if (isWidthChanged && isHeightChanged) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// If only width was changed, it also can't be.
|
|
|
|
if (isWidthChanged) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// If width didn't change but height changed ?
|
|
|
|
if (isHeightChanged) {
|
|
|
|
var last = $.lastWindowHeight;
|
|
|
|
$.lastWindowHeight = currentWindowHeight;
|
|
|
|
|
|
|
|
if (last === undefined || currentWindowHeight === last) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// If both width & height did not change
|
|
|
|
return false;
|
|
|
|
}
|
2017-08-04 10:21:03 +08:00
|
|
|
|
|
|
|
function changeWrapperHeight() {
|
|
|
|
var btn = $('p a.button');
|
|
|
|
var bottom = btn.offset().top + btn.height() + 80;
|
|
|
|
|
|
|
|
if (bottom > $(window).height()) {
|
2018-02-23 11:30:36 +08:00
|
|
|
$('.hp-wrapper').height(bottom + 'px');
|
2017-08-04 10:21:03 +08:00
|
|
|
} else {
|
2018-02-23 11:30:36 +08:00
|
|
|
$('.hp-wrapper').height($(window).height() + 'px');
|
2017-08-04 10:21:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function changeHeaderTransparency() {
|
2018-02-23 11:30:36 +08:00
|
|
|
if ($(window).scrollTop() >= ($(window).height() * 2 / 3)) {
|
2016-12-11 15:17:24 +08:00
|
|
|
$('.main-header').removeClass('transparent');
|
|
|
|
} else {
|
|
|
|
$('.main-header').addClass('transparent');
|
|
|
|
}
|
2017-08-04 10:21:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
$(window)
|
|
|
|
.scroll(changeHeaderTransparency)
|
|
|
|
.ready(changeWrapperHeight)
|
|
|
|
.resize(function () {
|
2017-08-05 18:21:33 +08:00
|
|
|
isMobileBrowserScrolling() ? null : changeWrapperHeight();
|
2017-08-04 10:21:03 +08:00
|
|
|
});
|
2016-12-11 15:17:24 +08:00
|
|
|
</script>
|
2016-07-21 22:01:57 +08:00
|
|
|
</body>
|
|
|
|
</html>
|