Adds home page changes to gitea

This commit is contained in:
Nemo 2018-01-26 03:14:16 +05:30
parent bc9f2a61a1
commit 923d33222c
3 changed files with 54 additions and 2 deletions

View File

@ -0,0 +1,7 @@
<a class="item" href="https://captnemo.in/contact/">
Contact
</a>
<a class="item" href="https://status.captnemo.in/">
Status
</a>

View File

@ -0,0 +1,36 @@
{{template "base/head" .}}
<div class="home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" src="{{AppSubUrl}}/img/gitea-lg.png" />
</div>
<div class="hero">
<h1 class="ui icon header title">
Nemo's Code
</h1>
<h2>under-the-tv code hosting 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">
<i class="octicon octicon-rocket"></i>
Run by friends
</h1>
<p class="large">
This service is run by <a href="https://captnemo.in">Nemo</a>
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-flame"></i> Uptime not guaranteed
</h1>
<p class="large">
Run for fun and not profit.
</p>
</div>
</div>
</div>
{{template "base/footer" .}}

View File

@ -33,6 +33,9 @@ resource docker_container "gitea" {
host_path = "${docker_volume.gitea_volume.mountpoint}"
}
# Logos
# TODO: Add svg
upload {
content = "${file("${path.module}/conf/gitea/public/img/gitea-lg.png")}"
file = "/data/gitea/public/img/gitea-lg.png"
@ -53,13 +56,19 @@ resource docker_container "gitea" {
file = "/data/gitea/public/humans.txt"
}
# Extra Links in header
# TODO: Doesn't work
upload {
content = "${file("${path.module}/conf/gitea/extra_links.tmpl")}"
file = "/data/gitea/templates/custom/extra_links.tmpl"
}
# This is the main configuration file
upload {
content = "${data.template_file.gitea-config-file.rendered}"
file = "/data/gitea/conf/app.ini"
}
# TODO: Add svg
memory = 256
restart = "unless-stopped"
destroy_grace_seconds = 10