feat: add custom Gitea home page with Oribi branding and styling.

This commit is contained in:
Matt Batchelder
2026-02-11 07:25:07 -05:00
commit 8d7517b0c6
3 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
:root {
--custom-primary: #D04000; /* Approximate logo color */
--custom-bg: #1a1a1a;
--custom-text: #f0f0f0;
--custom-card-bg: #2d2d2d;
}
/* Global modifications if needed, or specific to home */
.page-content.home {
background-color: var(--custom-bg);
color: var(--custom-text);
min-height: calc(100vh - 110px); /* Adjust for header/footer */
display: flex;
align-items: center;
justify-content: center;
background-image: radial-gradient(circle at top right, #2a1a10 0%, var(--custom-bg) 40%);
}
.home-container {
text-align: center;
max-width: 800px;
padding: 2rem;
}
.logo-img {
width: 150px;
height: auto;
margin-bottom: 2rem;
filter: drop-shadow(0 0 20px rgba(208, 64, 0, 0.3));
}
.hero-title {
font-size: 3rem;
font-weight: 800;
margin-bottom: 0.5rem;
background: linear-gradient(135deg, #fff, #ccc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-subtitle {
font-size: 1.5rem;
color: #888;
margin-bottom: 3rem;
font-weight: 300;
}
.action-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.action-card {
background: var(--custom-card-bg);
padding: 2rem;
border-radius: 12px;
text-decoration: none;
color: var(--custom-text);
transition: transform 0.2s, box-shadow 0.2s;
border: 1px solid #333;
display: flex;
flex-direction: column;
align-items: center;
}
.action-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.3);
border-color: var(--custom-primary);
color: var(--custom-text);
}
.action-card i {
font-size: 2.5rem;
margin-bottom: 1rem;
color: var(--custom-primary);
}
.action-card h3 {
margin: 0;
font-weight: 600;
}

View File

@@ -0,0 +1 @@
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/oribi.css" />

View File

@@ -0,0 +1,20 @@
{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content home">
<div class="home-container">
<img class="logo-img" src="{{AssetUrlPrefix}}/img/logo.png" alt="Oribi Technology Services"/>
<h1 class="hero-title">Oribi Technology Services</h1>
<div class="hero-subtitle">Internal Code Repository</div>
<div class="action-grid">
<a href="{{AppSubUrl}}/explore/repos" class="action-card">
<i class="octicon octicon-telescope"></i>
<h3>Explore</h3>
</a>
<a href="{{AppSubUrl}}/user/login" class="action-card">
<i class="octicon octicon-sign-in"></i>
<h3>Sign In</h3>
</a>
</div>
</div>
</div>
{{template "base/footer" .}}