mirror of
https://github.com/multipleof4/.gitea.git
synced 2026-01-13 22:47:53 +00:00
Compare commits
24 Commits
c6d4eff545
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 13badf6c86 | |||
| 3b7c6b8c10 | |||
| e93645879d | |||
| 0e5565ee43 | |||
| 7f7b4122c9 | |||
| 0297780696 | |||
| 2b89df02f6 | |||
| 3b86180d37 | |||
| 6f5b8e2e65 | |||
| e02d15d449 | |||
| 21a7c3257c | |||
| d4f97940f1 | |||
| e19929eb3d | |||
| f73ea97af1 | |||
| 3b100a8b4d | |||
| 7362259c12 | |||
| 449f1c8f6e | |||
| 8e63bf78db | |||
| 524995fcdc | |||
| c477873d31 | |||
| 5453ba41e6 | |||
| 3dc09a06b8 | |||
| 3ae87f46a1 | |||
| 49104a3193 |
2
readme
Normal file
2
readme
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
This repo maps/syncs to the custom dir in gitea.
|
||||||
|
It is used for customizing gitea.
|
||||||
80
templates/home.tmpl
Normal file
80
templates/home.tmpl
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
{{template "base/head" .}}
|
||||||
|
<div class="page-content home">
|
||||||
|
<div class="ui container">
|
||||||
|
<div class="renox-hero">
|
||||||
|
<div class="renox-art">
|
||||||
|
<img src="{{AssetUrlPrefix}}/img/logo.svg?v=2" width="200" height="200" alt="Renox Logo">
|
||||||
|
</div>
|
||||||
|
<h1 class="renox-title">Planet Renox</h1>
|
||||||
|
<p class="renox-subtitle">Source Code</p>
|
||||||
|
<div class="renox-actions">
|
||||||
|
{{if .IsSigned}}
|
||||||
|
<a class="ui primary button" href="{{AppSubUrl}}/explore/repos">{{ctx.Locale.Tr "explore"}}</a>
|
||||||
|
{{else}}
|
||||||
|
<a class="ui primary button" href="{{AppSubUrl}}/user/login">{{ctx.Locale.Tr "sign_in"}}</a>
|
||||||
|
<a class="ui button" href="{{AppSubUrl}}/explore/repos">{{ctx.Locale.Tr "explore"}}</a>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.renox-hero {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 100px 0;
|
||||||
|
text-align: center;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.renox-art {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
animation: float 6s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.renox-title {
|
||||||
|
font-size: 3.5rem !important;
|
||||||
|
font-weight: 300 !important;
|
||||||
|
color: #1b1c1d;
|
||||||
|
margin-bottom: 0.5rem !important;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.renox-subtitle {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
color: #6a737d;
|
||||||
|
margin-bottom: 2.5rem;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.renox-actions .ui.button {
|
||||||
|
padding: 12px 30px;
|
||||||
|
font-weight: 400;
|
||||||
|
border-radius: 8px;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.renox-actions .ui.primary.button {
|
||||||
|
background-color: #45b135 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.renox-actions .ui.primary.button:hover {
|
||||||
|
background-color: #3d9e2f !important;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes float {
|
||||||
|
0% { transform: translateY(0px); }
|
||||||
|
50% { transform: translateY(-15px); }
|
||||||
|
100% { transform: translateY(0px); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Force light mode background for this section if Gitea is in dark mode */
|
||||||
|
body:not(.theme-arc-green) .renox-hero {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{{template "base/footer" .}}
|
||||||
Reference in New Issue
Block a user