mirror of
https://mgit.msbls.de/m/gitea-custom.git
synced 2026-02-06 00:02:08 +00:00
feat: import existing gitea customizations from mvpsm
Themes (dark/light), logo, favicon, and template overrides.
This commit is contained in:
0
templates/custom/body_inner_pre.tmpl
Normal file
0
templates/custom/body_inner_pre.tmpl
Normal file
0
templates/custom/extra_links.tmpl
Normal file
0
templates/custom/extra_links.tmpl
Normal file
12
templates/custom/footer.tmpl
Normal file
12
templates/custom/footer.tmpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<footer style="background: var(--color-body-secondary, #f8fafc); border-top: 1px solid var(--color-border, #e2e8f0); padding: 2rem 0; margin-top: 3rem; text-align: center; color: var(--color-text-secondary, #475569);">
|
||||
<div style="max-width: 1200px; margin: 0 auto; padding: 0 1rem;">
|
||||
<p style="margin: 0.5rem 0; font-size: 0.95rem;">
|
||||
<strong style="color: var(--color-text, #1e293b); font-weight: 600;">mGit</strong> - A Git hosting solution
|
||||
</p>
|
||||
<p style="margin: 0.5rem 0; font-size: 0.9rem;">
|
||||
Powered by <a href="https://gitea.io" target="_blank" rel="noopener" style="color: var(--color-link, #2563eb); text-decoration: none;">Gitea</a>
|
||||
<span style="margin: 0 0.5rem;">•</span>
|
||||
<a href="https://flexsiebels.de" target="_blank" rel="noopener" style="color: var(--color-link, #2563eb); text-decoration: none;">flexsiebels.de</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
40
templates/custom/header.tmpl
Normal file
40
templates/custom/header.tmpl
Normal file
@@ -0,0 +1,40 @@
|
||||
<style>
|
||||
/* mGit Branding and Typography */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
||||
|
||||
/* Logo styling for mGit */
|
||||
.ui.menu .item img.logo {
|
||||
height: 36px;
|
||||
width: auto;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
/* mGit text logo styling */
|
||||
.ui.menu .item .mgit-logo-text {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1.5rem;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--color-text, #1e293b);
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Subtle top border accent */
|
||||
body {
|
||||
border-top: 3px solid var(--color-primary, #2563eb);
|
||||
}
|
||||
|
||||
/* Header menu improvements */
|
||||
.ui.menu {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Improve readability */
|
||||
.ui.menu .item {
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
</style>
|
||||
37
templates/home.tmpl
Normal file
37
templates/home.tmpl
Normal file
@@ -0,0 +1,37 @@
|
||||
{{template "base/head" .}}
|
||||
<style>
|
||||
.page-content.home {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: calc(100vh - 200px);
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
.home .center {
|
||||
text-align: center;
|
||||
}
|
||||
.home .mgit-logo-text {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 4rem;
|
||||
letter-spacing: -0.05em;
|
||||
color: var(--color-primary, #2563eb);
|
||||
margin: 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.home .mgit-logo-text::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 80px;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
|
||||
margin: 0 auto 1.5rem;
|
||||
border-radius: 2px;
|
||||
}
|
||||
</style>
|
||||
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home_title"}}{{end}}" class="page-content home">
|
||||
<div class="center">
|
||||
<div class="mgit-logo-text">mGit</div>
|
||||
</div>
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
||||
Reference in New Issue
Block a user