feat: three logo design options on homepage for review

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.
This commit is contained in:
m
2026-02-06 00:34:21 +01:00
parent 3345e493f5
commit ce4d622bea

View File

@@ -9,21 +9,8 @@
} }
.mgit-hero { .mgit-hero {
text-align: center; text-align: center;
max-width: 600px; max-width: 900px;
} width: 100%;
.mgit-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--color-primary, #3b82f6), var(--color-primary-dark-2, #1e40af));
border-radius: 20px;
margin-bottom: 1.5rem;
}
.mgit-mark svg {
width: 48px;
height: 48px;
} }
.mgit-title { .mgit-title {
font-size: 2.5rem; font-size: 2.5rem;
@@ -35,9 +22,42 @@
.mgit-subtitle { .mgit-subtitle {
font-size: 1.1rem; font-size: 1.1rem;
color: var(--color-text-light, #64748b); color: var(--color-text-light, #64748b);
margin: 0 0 2rem; margin: 0 0 2.5rem;
line-height: 1.6; 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 { .mgit-actions {
display: flex; display: flex;
gap: 0.75rem; gap: 0.75rem;
@@ -58,29 +78,140 @@
background: var(--color-primary, #2563eb); background: var(--color-primary, #2563eb);
color: #fff !important; color: #fff !important;
} }
.mgit-btn-primary:hover { .mgit-btn-primary:hover { opacity: 0.9; text-decoration: none !important; }
opacity: 0.9;
text-decoration: none !important;
}
.mgit-btn-secondary { .mgit-btn-secondary {
border: 1px solid var(--color-secondary-dark-2, #e2e8f0); border: 1px solid var(--color-secondary-dark-2, #e2e8f0);
color: var(--color-text, #1e293b) !important; color: var(--color-text, #1e293b) !important;
background: var(--color-box-body, transparent); background: var(--color-box-body, transparent);
} }
.mgit-btn-secondary:hover { .mgit-btn-secondary:hover { border-color: var(--color-primary, #2563eb); text-decoration: none !important; }
border-color: var(--color-primary, #2563eb); @media (max-width: 700px) {
text-decoration: none !important; .mgit-designs { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
} }
</style> </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 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"> <div class="mgit-hero">
<div class="mgit-mark">
<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<text x="16" y="24" font-family="Inter, -apple-system, system-ui, sans-serif" font-size="22" font-weight="700" fill="#ffffff" text-anchor="middle">m</text>
</svg>
</div>
<h1 class="mgit-title">mGit</h1> <h1 class="mgit-title">mGit</h1>
<p class="mgit-subtitle">Private Git hosting for projects, code, and collaboration.</p> <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"> <div class="mgit-actions">
{{if .IsSigned}} {{if .IsSigned}}
<a href="{{AppSubUrl}}/" class="mgit-btn-primary">Dashboard</a> <a href="{{AppSubUrl}}/" class="mgit-btn-primary">Dashboard</a>