Initial commit

This commit is contained in:
2026-04-19 03:31:00 +05:30
parent f83a527655
commit 1bdb871ca6
6 changed files with 279 additions and 0 deletions

View File

@@ -0,0 +1,163 @@
:root {
--color-nav-bg: #315483;
--color-nav-text: #ffffff;
--color-text: #414448;
--color-body: #f2f2f2;
--color-box-body: #ffffff;
--color-primary: var(--color-nav-bg);
--link-color: #15c;
--border-color: #cccccc;
--white: #ffffff;
--color-primary-contrast: var(--white);
--color-primary-hover: #39485d;
--color-primary-active: var(--color-primary-hover);
--color-menu: var(--white);
--color-secondary: var(--border-color);
--color-card: var(--white);
--color-secondary-alpha-60: var(--border-color);
}
*, .ui.form input:not([type]), .ui.form input[type=date], .ui.form input[type=datetime-local], .ui.form input[type=email], .ui.form input[type=number], .ui.form input[type=password], .ui.form input[type=search], .ui.form input[type=tel], .ui.form input[type=time], .ui.form input[type=text], .ui.form input[type=file], .ui.form input[type=url], input:-webkit-autofill, input:-webkit-autofill:focus, input:-webkit-autofill:hover, input:-webkit-autofill:active, .ui.form .field.field input:-webkit-autofill, .ui.form .field.field input:-webkit-autofill:focus, .ui.form .field.field input:-webkit-autofill:hover, .ui.form .field.field input:-webkit-autofill:active {
border-radius: 0 !important;
border-color: var(--border-color) !important;
box-shadow: none !important;
}
#navbar a.item:hover, #navbar button.item:hover {
text-decoration: underline;
}
.home a {
color: var(--link-color);
}
.ui.dropdown .menu,
.ui.menu {
background: var(--white) !important;
}
#navbar a.item:hover, #navbar button.item:hover {
background: var(--color-nav-bg);
color: var(--white);
}
.ui.tabular.menu,
.overflow-menu-items,
.ui.secondary.pointing.menu .item {
border-bottom: none !important;
}
.ui.secondary.pointing.menu {
border: 1px solid var(--color-secondary) !important;
border-bottom: 1px solid var(--color-secondary) !important;
}
.page-footer {
background-color: var(--white);
border-top: 1px solid var(--border-color);
}
/* ===== Minimal Light Syntax Highlighting (White Background) ===== */
code, pre, .code, .chroma {
background: #ffffff !important;
color: #414448 !important;
font-size: 14px !important;
line-height: 1.6 !important;
}
/* Base */
.chroma {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 13px;
}
/* Comments */
.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1,
.chroma .cs {
color: #6a737d;
font-style: italic;
}
/* Keywords */
.chroma .k,
.chroma .kc,
.chroma .kd,
.chroma .kn,
.chroma .kp,
.chroma .kr,
.chroma .kt {
color: #315483;
font-weight: 600;
}
/* Strings */
.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sd,
.chroma .s2 {
color: #0a7a3c;
}
/* Numbers */
.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il {
color: #b35e00;
}
/* Functions / Names */
.chroma .nf,
.chroma .fm {
color: #6f42c1;
}
/* Types / Classes */
.chroma .nc,
.chroma .nt {
color: #005cc5;
}
/* Operators */
.chroma .o,
.chroma .ow {
color: #d73a49;
}
/* Variables */
.chroma .nv,
.chroma .na {
color: #e36209;
}
/* Line numbers (if enabled) */
.chroma .ln {
color: #999;
}
/* Selection */
.chroma ::selection {
background: #dbe9ff;
}
.lines-num, .lines-code {
font-size: 14px;
font-family: var(--fonts-monospace);
line-height: 1.6;
padding-top: 0;
padding-bottom: 0;
vertical-align: bottom;
}
.lines-num:hover {
text-decoration: underline;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

View File

@@ -0,0 +1,8 @@
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M33.4793 18.068L26.2332 27.7139H21.0704L28.3166 18.068L25.1388 13.8403L27.6956 10.3696L33.4793 18.068Z" fill="#315483"/>
<path d="M5.68537 18.068L8.80927 22.2277L6.2525 25.6961L0.520264 18.068L7.76641 8.41972H12.9315L5.68537 18.068Z" fill="#315483"/>
<path d="M24.239 5.03348L23.7422 5.70607L4.79956 31.4004H8.60309C9.13038 31.4004 9.62486 31.1519 9.93655 30.7278L26.0599 8.84637L28.8745 5.03348H24.2367H24.239ZM24.5015 9.23071L22.4626 9.10651L24.7757 5.97557H26.9598L24.5038 9.23071H24.5015Z" fill="#315483"/>
<path d="M21.5345 6.14184C19.7698 5.88171 18.3848 4.4967 18.1247 2.73203C18.0989 2.55861 17.8505 2.55861 17.8247 2.73203C17.5646 4.4967 16.1796 5.88171 14.4149 6.14184C14.2415 6.16762 14.2415 6.41603 14.4149 6.44181C16.1796 6.70194 17.5646 8.08696 17.8247 9.85163C17.8505 10.0251 18.0989 10.0251 18.1247 9.85163C18.3848 8.08696 19.7698 6.70194 21.5345 6.44181C21.7079 6.41603 21.7079 6.16762 21.5345 6.14184Z" fill="#315483"/>
<path d="M26.1535 18.4875C24.9161 18.3047 23.9459 17.3345 23.7631 16.0971C23.7444 15.9752 23.571 15.9752 23.5522 16.0971C23.3694 17.3345 22.3992 18.3047 21.1618 18.4875C21.04 18.5062 21.04 18.6797 21.1618 18.6984C22.3992 18.8812 23.3694 19.8514 23.5522 21.0888C23.571 21.2107 23.7444 21.2107 23.7631 21.0888C23.9459 19.8514 24.9161 18.8812 26.1535 18.6984C26.2754 18.6797 26.2754 18.5062 26.1535 18.4875Z" fill="#315483"/>
<path d="M16.351 13.3997C15.3901 13.2568 14.6355 12.5045 14.4949 11.5436C14.4808 11.4499 14.3449 11.4499 14.3309 11.5436C14.1879 12.5045 13.4356 13.2591 12.4748 13.3997C12.381 13.4138 12.381 13.5497 12.4748 13.5638C13.4356 13.7067 14.1902 14.459 14.3309 15.4198C14.3449 15.5136 14.4808 15.5136 14.4949 15.4198C14.6379 14.459 15.3901 13.7044 16.351 13.5638C16.4447 13.5497 16.4447 13.4138 16.351 13.3997Z" fill="#315483"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,8 @@
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M33.4793 18.068L26.2332 27.7139H21.0704L28.3166 18.068L25.1388 13.8403L27.6956 10.3696L33.4793 18.068Z" fill="white"/>
<path d="M5.68537 18.068L8.80927 22.2277L6.2525 25.6961L0.520264 18.068L7.76641 8.41972H12.9315L5.68537 18.068Z" fill="white"/>
<path d="M24.239 5.03348L23.7422 5.70607L4.79956 31.4004H8.60309C9.13038 31.4004 9.62486 31.1519 9.93655 30.7278L26.0599 8.84637L28.8745 5.03348H24.2367H24.239ZM24.5015 9.23071L22.4626 9.10651L24.7757 5.97557H26.9598L24.5038 9.23071H24.5015Z" fill="white"/>
<path d="M21.5345 6.14184C19.7698 5.88171 18.3848 4.4967 18.1247 2.73203C18.0989 2.55861 17.8505 2.55861 17.8247 2.73203C17.5646 4.4967 16.1796 5.88171 14.4149 6.14184C14.2415 6.16762 14.2415 6.41603 14.4149 6.44181C16.1796 6.70194 17.5646 8.08696 17.8247 9.85163C17.8505 10.0251 18.0989 10.0251 18.1247 9.85163C18.3848 8.08696 19.7698 6.70194 21.5345 6.44181C21.7079 6.41603 21.7079 6.16762 21.5345 6.14184Z" fill="white"/>
<path d="M26.1535 18.4875C24.9161 18.3047 23.9459 17.3345 23.7631 16.0971C23.7444 15.9752 23.571 15.9752 23.5522 16.0971C23.3694 17.3345 22.3992 18.3047 21.1618 18.4875C21.04 18.5062 21.04 18.6797 21.1618 18.6984C22.3992 18.8812 23.3694 19.8514 23.5522 21.0888C23.571 21.2107 23.7444 21.2107 23.7631 21.0888C23.9459 19.8514 24.9161 18.8812 26.1535 18.6984C26.2754 18.6797 26.2754 18.5062 26.1535 18.4875Z" fill="white"/>
<path d="M16.351 13.3997C15.3901 13.2568 14.6355 12.5045 14.4949 11.5436C14.4808 11.4499 14.3449 11.4499 14.3309 11.5436C14.1879 12.5045 13.4356 13.2591 12.4748 13.3997C12.381 13.4138 12.381 13.5497 12.4748 13.5638C13.4356 13.7067 14.1902 14.459 14.3309 15.4198C14.3449 15.5136 14.4808 15.5136 14.4949 15.4198C14.6379 14.459 15.3901 13.7044 16.351 13.5638C16.4447 13.5497 16.4447 13.4138 16.351 13.3997Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,8 @@
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M33.4793 18.068L26.2332 27.7139H21.0704L28.3166 18.068L25.1388 13.8403L27.6956 10.3696L33.4793 18.068Z" fill="#315483"/>
<path d="M5.68537 18.068L8.80927 22.2277L6.2525 25.6961L0.520264 18.068L7.76641 8.41972H12.9315L5.68537 18.068Z" fill="#315483"/>
<path d="M24.239 5.03348L23.7422 5.70607L4.79956 31.4004H8.60309C9.13038 31.4004 9.62486 31.1519 9.93655 30.7278L26.0599 8.84637L28.8745 5.03348H24.2367H24.239ZM24.5015 9.23071L22.4626 9.10651L24.7757 5.97557H26.9598L24.5038 9.23071H24.5015Z" fill="#315483"/>
<path d="M21.5345 6.14184C19.7698 5.88171 18.3848 4.4967 18.1247 2.73203C18.0989 2.55861 17.8505 2.55861 17.8247 2.73203C17.5646 4.4967 16.1796 5.88171 14.4149 6.14184C14.2415 6.16762 14.2415 6.41603 14.4149 6.44181C16.1796 6.70194 17.5646 8.08696 17.8247 9.85163C17.8505 10.0251 18.0989 10.0251 18.1247 9.85163C18.3848 8.08696 19.7698 6.70194 21.5345 6.44181C21.7079 6.41603 21.7079 6.16762 21.5345 6.14184Z" fill="#315483"/>
<path d="M26.1535 18.4875C24.9161 18.3047 23.9459 17.3345 23.7631 16.0971C23.7444 15.9752 23.571 15.9752 23.5522 16.0971C23.3694 17.3345 22.3992 18.3047 21.1618 18.4875C21.04 18.5062 21.04 18.6797 21.1618 18.6984C22.3992 18.8812 23.3694 19.8514 23.5522 21.0888C23.571 21.2107 23.7444 21.2107 23.7631 21.0888C23.9459 19.8514 24.9161 18.8812 26.1535 18.6984C26.2754 18.6797 26.2754 18.5062 26.1535 18.4875Z" fill="#315483"/>
<path d="M16.351 13.3997C15.3901 13.2568 14.6355 12.5045 14.4949 11.5436C14.4808 11.4499 14.3449 11.4499 14.3309 11.5436C14.1879 12.5045 13.4356 13.2591 12.4748 13.3997C12.381 13.4138 12.381 13.5497 12.4748 13.5638C13.4356 13.7067 14.1902 14.459 14.3309 15.4198C14.3449 15.5136 14.4808 15.5136 14.4949 15.4198C14.6379 14.459 15.3901 13.7044 16.351 13.5638C16.4447 13.5497 16.4447 13.4138 16.351 13.3997Z" fill="#315483"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

92
templates/home.tmpl Normal file
View File

@@ -0,0 +1,92 @@
{{template "base/head" .}}
<div role="main" aria-label="{{ctx.Locale.Tr "home_title"}}" class="page-content home">
{{/* ── Hero ─────────────────────────────────────────────────── */}}
<div class="tw-mb-8 tw-px-8">
<div class="center" style="padding: 2.5rem 1rem 1.5rem;">
<img class="logo" width="160" height="160"
src="{{AssetUrlPrefix}}/img/logo_alt.svg"
alt="{{ctx.Locale.Tr "logo"}}">
<div class="hero">
<h1 class="ui icon header title tw-text-balance">
sorcia.dev
</h1>
<h2 class="tw-text-balance" style="opacity:0.75;">
Personal source code hosting by
<a href="{{AppSubUrl}}/mysticmode">mysticmode</a>
</h2>
</div>
</div>
</div>
{{/* ── Registration notice ──────────────────────────────────── */}}
<div class="ui stackable page grid" style="margin-bottom: 1.5rem;">
<div class="sixteen wide center aligned column">
<div class="ui info message" style="max-width: 640px; margin: 0 auto; text-align: left;">
<div class="header">
{{svg "octicon-mail" 16}} &nbsp;Registration is by invitation only
</div>
<p style="margin: 0.5rem 0 0;">
This instance is not open for public registration.
To request access, send an email to
<a href="mailto:tildezero@gmail.com">tildezero@gmail.com</a>
with a brief introduction and your intended use.
</p>
</div>
</div>
</div>
{{/* ── Quick links ──────────────────────────────────────────── */}}
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-person"}} mysticmode
</h1>
<p class="large tw-text-balance">
Browse all public repositories and projects by
<a href="{{AppSubUrl}}/mysticmode">mysticmode</a>
on this instance.
</p>
<a class="ui primary button" href="{{AppSubUrl}}/mysticmode">
{{svg "octicon-repo"}} &nbsp;View Repositories
</a>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-search"}} Explore
</h1>
<p class="large tw-text-balance">
Discover all public repositories and activity
hosted on this instance.
</p>
<a class="ui basic button" href="{{AppSubUrl}}/explore/repos">
{{svg "octicon-telescope"}} &nbsp;Explore All Repos
</a>
</div>
</div>
{{/* ── About strip ──────────────────────────────────────────── */}}
<div class="ui stackable middle very relaxed page grid" style="margin-top: 1rem;">
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-lock"}} Private by default
</h1>
<p class="large tw-text-balance">
This is a self-hosted, invite-only Git service.
All repositories are owned and maintained by mysticmode.
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-rocket"}} Powered by Gitea
</h1>
<p class="large tw-text-balance">
Running on <a href="https://about.gitea.com" target="_blank" rel="noopener">Gitea</a>
— a lightweight, self-hosted Git service.
Fast, reliable, and open source.
</p>
</div>
</div>
</div>
{{template "base/footer" .}}