QQgit/custom/templates/home.tmpl

32 lines
1.3 KiB
Cheetah
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{/* home.tmpl —— 未登录首页(基于 Gitea 1.21.11 官方 home.tmpl 精简)
改动:四栏宣传块 → 三张克制的小卡片;大 Logo 居中;文案沿用官方 i18n key,不硬编码中文。
这是**模板覆盖**,不改源码,删掉本文件即回到官方首页。 */}}
{{template "base/head" .}}
<div role="main" aria-label="{{ctx.Locale.Tr "home"}}" class="page-content home">
<div class="gt-mb-5 gt-px-5">
<div class="center">
<img class="logo" width="168" height="168" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
<div class="hero">
<h1 class="ui icon header title">{{AppName}}</h1>
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
</div>
</div>
</div>
<div class="qq-home-cards">
<div class="qq-home-card">
<h3>{{svg "octicon-device-desktop" 16}} {{ctx.Locale.Tr "startpage.platform"}}</h3>
<p>{{ctx.Locale.Tr "startpage.platform_desc" | Str2html}}</p>
</div>
<div class="qq-home-card">
<h3>{{svg "octicon-rocket" 16}} {{ctx.Locale.Tr "startpage.lightweight"}}</h3>
<p>{{ctx.Locale.Tr "startpage.lightweight_desc" | Str2html}}</p>
</div>
<div class="qq-home-card">
<h3>{{svg "octicon-code" 16}} {{ctx.Locale.Tr "startpage.license"}}</h3>
<p>{{ctx.Locale.Tr "startpage.license_desc" | Str2html}}</p>
</div>
</div>
</div>
{{template "base/footer" .}}