forgejo: add a template for the home page
This commit is contained in:
parent
e096a5bf54
commit
bbf4e67d5a
2 changed files with 61 additions and 0 deletions
|
@ -99,6 +99,7 @@ in {
|
||||||
# You need to specify this to remove the port from URLs in the web UI.
|
# You need to specify this to remove the port from URLs in the web UI.
|
||||||
ROOT_URL = "https://${domain}/";
|
ROOT_URL = "https://${domain}/";
|
||||||
HTTP_PORT = port;
|
HTTP_PORT = port;
|
||||||
|
LANDING_PAGE = "home";
|
||||||
};
|
};
|
||||||
DEFAULT = {
|
DEFAULT = {
|
||||||
APP_NAME = "Copeberg.org";
|
APP_NAME = "Copeberg.org";
|
||||||
|
@ -162,6 +163,11 @@ in {
|
||||||
"L+ '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
|
"L+ '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
|
||||||
"L+ '${customDir}/public/assets/css/codeberg/dark-variables.css' - - - - ${dark-variables}"
|
"L+ '${customDir}/public/assets/css/codeberg/dark-variables.css' - - - - ${dark-variables}"
|
||||||
|
|
||||||
|
# Templates
|
||||||
|
"d '${customDir}/templates ' 0750 ${user} ${group} - -"
|
||||||
|
# Home page
|
||||||
|
"L+ '${customDir}/templates' - - - - ${./templates}"
|
||||||
|
|
||||||
# Fuck off scrapers
|
# Fuck off scrapers
|
||||||
"L+ ${customDir}/public/robots.txt - - - - ${robots.outPath}"
|
"L+ ${customDir}/public/robots.txt - - - - ${robots.outPath}"
|
||||||
];
|
];
|
||||||
|
|
55
modules/services/forgejo/templates/home.tmpl
Normal file
55
modules/services/forgejo/templates/home.tmpl
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
{{template "base/head" .}}
|
||||||
|
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
|
||||||
|
<div class="tw-mb-8 tw-px-8">
|
||||||
|
<div class="center">
|
||||||
|
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
||||||
|
<div class="hero">
|
||||||
|
<h1 class="ui icon header title">
|
||||||
|
{{AppDisplayName}}
|
||||||
|
</h1>
|
||||||
|
<h2>A very painful Git service</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="ui stackable middle very relaxed page grid">
|
||||||
|
<div class="eight wide center column">
|
||||||
|
<h1 class="hero ui icon header stackable">
|
||||||
|
<img class="logo" width="100" height="100" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
||||||
|
<p>Made with copious amounts of caffeeine</p>
|
||||||
|
</h1>
|
||||||
|
<p class="large">
|
||||||
|
<b>TODO</b>: Write some funny text here
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="eight wide center column stackable">
|
||||||
|
<h1 class="hero ui icon header">
|
||||||
|
<img class="logo" width="100" height="100" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
||||||
|
<p><it>I hate it here</it></p>
|
||||||
|
</h1>
|
||||||
|
<p class="large">
|
||||||
|
Bottom text
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="ui stackable middle very relaxed page grid">
|
||||||
|
<div class="eight wide center column">
|
||||||
|
<h1 class="hero ui icon header stackable">
|
||||||
|
<img class="logo" width="100" height="100" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
||||||
|
<p>Is this the real life?</p>
|
||||||
|
</h1>
|
||||||
|
<p class="large">
|
||||||
|
Something something fuck poettering
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="eight wide center column stackable">
|
||||||
|
<h1 class="hero ui icon header">
|
||||||
|
<img class="logo" width="100" height="100" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
||||||
|
<p>Open source or something</p>
|
||||||
|
</h1>
|
||||||
|
<p class="large">
|
||||||
|
I forgor
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{template "base/footer" .}}
|
Loading…
Add table
Add a link
Reference in a new issue