Personnalisation du template home.tmpl

This commit is contained in:
Pierre-Louis Bonicoli 2023-11-26 02:08:06 +01:00
parent c13c691aa7
commit 99689e0843
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD

View File

@ -1,49 +1,56 @@
{{template "base/head" .}} {{template "base/head" .}}
<style type="text/css">
.home .hero .svg {color: #1c79c5 !important;}
.ui.icon.header svg {width: 40px !important; height: 40px !important; display: inline !important; vertical-align: middle !important; margin-right: 5px;}
.hero {font-weight: bold !important;}
.full.height {padding-bottom : 10px !important; }
</style>
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home"> <div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
<div class="gt-mb-5 gt-px-5"> <div class="gt-mb-5 gt-px-5">
<div class="center"> <div class="center">
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}"> <img class="logo" width="220" height="136" src="{{AssetUrlPrefix}}/logo-forgechaprilorg.png" alt="{{ctx.Locale.Tr "logo"}}">
<div class="hero"> <div class="hero">
<h1 class="ui icon header title"> <h1 class="ui icon header title">
{{AppName}} {{AppName}}
</h1> </h1>
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2> <h2>Plateforme collaborative de contributions libres.</h2>
</div> </div>
</div> </div>
</div> </div>
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column"> <div class="eight wide center column">
<h1 class="hero ui icon header"> <h1 class="hero ui icon header">
{{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}} {{svg "octicon-flame"}} Qui peut avoir un compte ?
</h1> </h1>
<p class="large"> <p class="large">
{{ctx.Locale.Tr "startpage.install_desc" | Str2html}} Tout le monde, cette instance est ouverte au public.
</p> </p>
</div> </div>
<div class="eight wide center column"> <div class="eight wide center column">
<h1 class="hero ui icon header"> <h1 class="hero ui icon header">
{{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}} {{svg "octicon-device-desktop"}} Quels contenus sont acceptés ?
</h1> </h1>
<p class="large"> <p class="large">
{{ctx.Locale.Tr "startpage.platform_desc" | Str2html}} La forge Chapril accueille tout type de contenu tel que code source, documentation, graphique, artistique, littéraire, etc.
</p> </p>
</div> </div>
</div> </div>
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column"> <div class="eight wide center column">
<h1 class="hero ui icon header"> <h1 class="hero ui icon header">
{{svg "octicon-rocket"}} {{ctx.Locale.Tr "startpage.lightweight"}} {{svg "octicon-rocket"}} Comment créer un compte ?
</h1> </h1>
<p class="large"> <p class="large">
{{ctx.Locale.Tr "startpage.lightweight_desc" | Str2html}} La création de compte se fait par une procédure d'inscription classique.
</p> </p>
</div> </div>
<div class="eight wide center column"> <div class="eight wide center column">
<h1 class="hero ui icon header"> <h1 class="hero ui icon header">
{{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}} {{svg "octicon-code"}} Licences libres
</h1> </h1>
<p class="large"> <p class="large">
{{ctx.Locale.Tr "startpage.license_desc" | Str2html}} Tous les dépôts présents sur cette forge sont sous <b>licences libres</b>, au sens de la Free Software Foundation à l'exception des licences Creative Commons en ND ou NC qui sont exclues.<br/>
<a href="https://www.chapril.org/cgu.html#forgechaprilorg-cpu">Consulter les Conditions particulières d'utilisation</a>.
</p> </p>
</div> </div>
</div> </div>