blessing-skin-server/resources/views/home.twig
2019-11-24 14:32:58 +08:00

134 lines
4.0 KiB
Twig

<!DOCTYPE html>
<html lang="en">
<head>
{{ include('shared.head') }}
<title>{{ site_name }}</title>
<style>
.hp-wrapper {
{% if fixed_bg %}
background-color: rgba(0, 0, 0, 0);
{% else %}
background-image: url('{{ home_pic_url }}');
{% endif %}
}
</style>
</head>
<body class="hold-transition layout-top-nav">
<div class="hp-wrapper">
{% if fixed_bg %}
<div id="fixed-bg" style="background-image: url('{{ home_pic_url }}')"></div>
{% endif %}
<nav class="navbar navbar-expand fixed-top navbar-light navbar-white
ml-0 {{ transparent_navbar ? 'transparent' }}"
>
<div class="container">
<div class="navbar-header">
<a href="{{ url('/') }}" class="navbar-brand">{{ site_name }}</a>
</div>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link" href="{{ url('skinlib') }}">{{ trans('general.skinlib') }}</a>
</li>
{{ include('shared.languages') }}
{% if auth_check() %}
{{ include('shared.user-menu') }}
{% else %}
<li class="nav-item">
<a class="nav-link" href="{{ url('auth/login') }}">
<i class="icon fas fa-sign-in-alt"></i>
{{ trans('general.login') }}
</a>
</li>
{% endif %}
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="splash">
<h1 class="splash-head">{{ site_name }}</h1>
<p class="splash-subhead">
{{ site_description }}
</p>
<p>
{% if auth_check() %}
<a href="{{ url('user') }}" class="button">
{{ trans('general.user-center') }}
</a>
{% else %}
{% if user_can_register %}
<a href="{{ url('auth/register') }}" class="button">
{{ trans('general.register') }}
</a>
{% else %}
<a href="{{ url('auth/login') }}" class="button">
{{ trans('general.login') }}
</a>
{% endif %}
{% endif %}
</p>
</div>
</div>
{% if hide_intro %}
<div id="copyright" class="without-intro">
<div class="container">
{{ include('shared.copyright') }}
</div>
</div>
{% endif %}
</div>
{% if not hide_intro %}
<div id="intro">
<div class="container">
<div class="text-center">
<h1>{{ trans('index.features.title') }}</h1>
<br>
<br>
<div class="container d-flex">
{% for item in ['first', 'second', 'third'] %}
<div class="col-lg-4">
<i class="fas {{ trans("index.features.#{item}.icon") }} mb-3" aria-hidden="true"></i>
<h3>{{ trans("index.features.#{item}.name") }}</h3>
<p>{{ trans("index.features.#{item}.desc") }}</p>
</div>
{% endfor %}
</div>
</div>
<br>
</div>
</div>
<div id="footerwrap">
<div class="container d-flex">
<div class="col-lg-6">
{{ trans('index.introduction', {sitename: site_name}) }}
</div>
<div class="col-lg-6">
<a href="{{ url('auth/register') }}" class="button">
{{ trans('index.start') }}
</a>
</div>
</div>
</div>
<div id="copyright" class="with-intro">
<div class="container">
{{ include('shared.copyright') }}
</div>
</div>
{% endif %}
<script>
blessing.extra = { transparent_navbar: {{ transparent_navbar ? 'true' : 'false' }} }
</script>
{{ include('shared.foot') }}
</body>
</html>