mirror of
https://mgit.msbls.de/m/gitea-custom.git
synced 2026-02-06 00:02:08 +00:00
A — Classic Branch: clean arches with commit nodes B — Smooth Flow: continuous branches, minimal nodes C — Git Graph: network nodes with branch forks All three form the letter 'm' from git branch patterns.
226 lines
7.9 KiB
Cheetah
226 lines
7.9 KiB
Cheetah
{{template "base/head" .}}
|
|
<style>
|
|
.mgit-home {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: calc(100vh - 200px);
|
|
padding: 2rem 1rem;
|
|
}
|
|
.mgit-hero {
|
|
text-align: center;
|
|
max-width: 900px;
|
|
width: 100%;
|
|
}
|
|
.mgit-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.04em;
|
|
color: var(--color-text, #1e293b);
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
.mgit-subtitle {
|
|
font-size: 1.1rem;
|
|
color: var(--color-text-light, #64748b);
|
|
margin: 0 0 2.5rem;
|
|
line-height: 1.6;
|
|
}
|
|
.mgit-designs {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
.mgit-design-card {
|
|
border: 2px solid var(--color-secondary-dark-2, #e2e8f0);
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
background: var(--color-box-body, #f8fafc);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
.mgit-design-card:hover {
|
|
border-color: var(--color-primary, #2563eb);
|
|
box-shadow: 0 4px 12px var(--color-shadow, rgba(0,0,0,0.1));
|
|
}
|
|
.mgit-design-card h3 {
|
|
margin: 1rem 0 0.25rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--color-text, #1e293b);
|
|
}
|
|
.mgit-design-card p {
|
|
margin: 0;
|
|
font-size: 0.85rem;
|
|
color: var(--color-text-light, #64748b);
|
|
}
|
|
.mgit-design-card svg {
|
|
width: 100%;
|
|
max-width: 180px;
|
|
height: auto;
|
|
}
|
|
.mgit-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
.mgit-actions a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0.625rem 1.25rem;
|
|
border-radius: 0.5rem;
|
|
font-weight: 500;
|
|
font-size: 0.95rem;
|
|
text-decoration: none;
|
|
transition: all 0.15s ease;
|
|
}
|
|
.mgit-btn-primary {
|
|
background: var(--color-primary, #2563eb);
|
|
color: #fff !important;
|
|
}
|
|
.mgit-btn-primary:hover { opacity: 0.9; text-decoration: none !important; }
|
|
.mgit-btn-secondary {
|
|
border: 1px solid var(--color-secondary-dark-2, #e2e8f0);
|
|
color: var(--color-text, #1e293b) !important;
|
|
background: var(--color-box-body, transparent);
|
|
}
|
|
.mgit-btn-secondary:hover { border-color: var(--color-primary, #2563eb); text-decoration: none !important; }
|
|
@media (max-width: 700px) {
|
|
.mgit-designs { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
|
|
}
|
|
</style>
|
|
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home_title"}}{{end}}" class="page-content mgit-home">
|
|
<div class="mgit-hero">
|
|
<h1 class="mgit-title">mGit</h1>
|
|
<p class="mgit-subtitle">Pick a logo — which one speaks to you?</p>
|
|
|
|
<div class="mgit-designs">
|
|
|
|
<!-- Design A: Classic Three-Branch -->
|
|
<div class="mgit-design-card">
|
|
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
|
|
<defs>
|
|
<linearGradient id="gradA" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
<stop offset="0%" stop-color="#3b82f6"/>
|
|
<stop offset="100%" stop-color="#1e40af"/>
|
|
</linearGradient>
|
|
</defs>
|
|
<rect width="200" height="200" fill="url(#gradA)" rx="40"/>
|
|
<!-- Three branches forming 'm': left stem, middle peak, right peak -->
|
|
<g stroke="#ffffff" stroke-width="7" stroke-linecap="round" stroke-linejoin="round" fill="none">
|
|
<!-- Left vertical (stem of m) -->
|
|
<line x1="50" y1="60" x2="50" y2="155"/>
|
|
<!-- First arch: left to middle -->
|
|
<path d="M50,80 C50,50 100,50 100,80"/>
|
|
<!-- Middle vertical -->
|
|
<line x1="100" y1="80" x2="100" y2="155"/>
|
|
<!-- Second arch: middle to right -->
|
|
<path d="M100,80 C100,50 150,50 150,80"/>
|
|
<!-- Right vertical -->
|
|
<line x1="150" y1="80" x2="150" y2="155"/>
|
|
</g>
|
|
<!-- Commit nodes -->
|
|
<g fill="#ffffff">
|
|
<circle cx="50" cy="155" r="8"/>
|
|
<circle cx="100" cy="155" r="8"/>
|
|
<circle cx="150" cy="155" r="8"/>
|
|
<circle cx="50" cy="80" r="6"/>
|
|
<circle cx="100" cy="80" r="6"/>
|
|
<circle cx="150" cy="80" r="6"/>
|
|
<circle cx="75" cy="56" r="5"/>
|
|
<circle cx="125" cy="56" r="5"/>
|
|
</g>
|
|
</svg>
|
|
<h3>A — Classic Branch</h3>
|
|
<p>Clean arches with commit nodes</p>
|
|
</div>
|
|
|
|
<!-- Design B: Flowing Merge -->
|
|
<div class="mgit-design-card">
|
|
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
|
|
<defs>
|
|
<linearGradient id="gradB" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
<stop offset="0%" stop-color="#3b82f6"/>
|
|
<stop offset="100%" stop-color="#1e40af"/>
|
|
</linearGradient>
|
|
</defs>
|
|
<rect width="200" height="200" fill="url(#gradB)" rx="40"/>
|
|
<!-- Flowing 'm' from continuous branch paths -->
|
|
<g stroke="#ffffff" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" fill="none">
|
|
<!-- Single continuous path forming 'm' -->
|
|
<!-- Left stem up, arch over, down, arch over, down -->
|
|
<path d="M45,155 L45,75 C45,45 95,45 100,75 L100,155"/>
|
|
<path d="M100,75 C100,45 155,45 155,75 L155,155"/>
|
|
</g>
|
|
<!-- Minimal commit nodes at endpoints only -->
|
|
<g fill="#ffffff">
|
|
<circle cx="45" cy="155" r="9"/>
|
|
<circle cx="100" cy="155" r="9"/>
|
|
<circle cx="155" cy="155" r="9"/>
|
|
</g>
|
|
</svg>
|
|
<h3>B — Smooth Flow</h3>
|
|
<p>Continuous branches, minimal nodes</p>
|
|
</div>
|
|
|
|
<!-- Design C: Network Graph -->
|
|
<div class="mgit-design-card">
|
|
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
|
|
<defs>
|
|
<linearGradient id="gradC" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
<stop offset="0%" stop-color="#3b82f6"/>
|
|
<stop offset="100%" stop-color="#1e40af"/>
|
|
</linearGradient>
|
|
</defs>
|
|
<rect width="200" height="200" fill="url(#gradC)" rx="40"/>
|
|
<!-- Network-style 'm': dots connected by lines like a git graph -->
|
|
<g stroke="#ffffff" stroke-width="5" stroke-linecap="round" fill="none">
|
|
<!-- Left branch: bottom to top -->
|
|
<line x1="48" y1="155" x2="48" y2="100"/>
|
|
<line x1="48" y1="100" x2="48" y2="65"/>
|
|
<!-- Fork left to mid-left peak -->
|
|
<path d="M48,100 C48,70 80,55 80,55"/>
|
|
<path d="M80,55 C80,55 100,70 100,100"/>
|
|
<!-- Mid vertical -->
|
|
<line x1="100" y1="100" x2="100" y2="155"/>
|
|
<!-- Fork mid to mid-right peak -->
|
|
<path d="M100,100 C100,70 132,55 132,55"/>
|
|
<path d="M132,55 C132,55 152,70 152,100"/>
|
|
<!-- Right branch -->
|
|
<line x1="152" y1="100" x2="152" y2="155"/>
|
|
</g>
|
|
<!-- All the commit dots -->
|
|
<g fill="#ffffff">
|
|
<!-- Bottom row -->
|
|
<circle cx="48" cy="155" r="7"/>
|
|
<circle cx="100" cy="155" r="7"/>
|
|
<circle cx="152" cy="155" r="7"/>
|
|
<!-- Fork points -->
|
|
<circle cx="48" cy="100" r="7"/>
|
|
<circle cx="100" cy="100" r="7"/>
|
|
<!-- Peaks -->
|
|
<circle cx="80" cy="55" r="7"/>
|
|
<circle cx="132" cy="55" r="7"/>
|
|
<!-- Mid-stem -->
|
|
<circle cx="48" cy="65" r="5"/>
|
|
<circle cx="152" cy="100" r="7"/>
|
|
</g>
|
|
</svg>
|
|
<h3>C — Git Graph</h3>
|
|
<p>Network nodes with branch forks</p>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mgit-actions">
|
|
{{if .IsSigned}}
|
|
<a href="{{AppSubUrl}}/" class="mgit-btn-primary">Dashboard</a>
|
|
{{else}}
|
|
<a href="{{AppSubUrl}}/user/login" class="mgit-btn-primary">Sign In</a>
|
|
{{end}}
|
|
<a href="{{AppSubUrl}}/explore/repos" class="mgit-btn-secondary">Explore</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|