update to be compatible with gitea 1.22

This commit is contained in:
Timofey Gelazoniya 2024-12-20 16:27:34 +03:00
parent 82e73bdbab
commit 13783f331b
Signed by: zeldon
GPG Key ID: 047886915281DD2A
5 changed files with 858 additions and 872 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,41 +1,136 @@
<style>
.ui.cards-column {
display: flex;
flex-direction: column;
gap: 1.5rem;
width: 100%;
max-width: 700px;
margin: auto;
padding: 2rem 1rem;
}
.ui.card {
width: 100%;
margin: 0 !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
background-color: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.ui.card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
background-color: rgba(255, 255, 255, 0.05);
}
.ui.card .content {
padding: 1.5rem;
}
.ui.card h3 {
color: #2185d0;
margin-bottom: 1rem;
font-size: 1.5rem;
}
.ui.card .description {
color: rgba(255, 255, 255, 0.8);
font-size: 1.1rem;
}
.ui.card .description p {
margin: 0;
line-height: 1.6;
}
.button-container {
text-align: center;
margin: 3rem 0;
}
.ui.button.primary {
background-color: #2185d0;
color: white;
padding: 1em 2em;
border-radius: 4px;
border: none;
cursor: pointer;
width: auto;
display: inline-block;
font-size: 1.1rem;
}
.ui.button.primary:hover {
background-color: #1678c2;
}
.ui.button.primary a {
color: white;
text-decoration: none;
display: block;
}
@media (max-width: 768px) {
.ui.cards-column {
padding: 2rem 1rem;
}
.ui.card .content {
padding: 1.25rem;
}
.ui.card h3 {
font-size: 1.25rem;
}
.ui.card .description {
font-size: 1rem;
}
.ui.button.primary {
font-size: 1rem;
padding: 0.8em 1.5em;
}
}
</style>
<div class="ui cards-column stackable"> <div class="ui cards-column stackable">
<div class="ui card"> <div class="ui card">
<div class="content"> <div class="content">
<a href="{{AppSubUrl}}/zeldon/mineping"> <a href="{{ AppSubUrl }}/zeldon/mineping">
<h3>Mineping</h3> <h3>Mineping</h3>
</a> </a>
<div class="description"> <div class="description">
<p>Javascript library for pinging Minecraft servers</p> <p>Javascript library for pinging Minecraft servers.</p>
</div> </div>
</div> </div>
</div> </div>
<div class="ui card">
<div class="ui card"> <div class="content">
<div class="content"> <a href="{{ AppSubUrl }}/zeldon/razer-battery-report">
<a href="{{AppSubUrl}}/zeldon/zeldon-site"> <h3>Razer Battery Report</h3>
<h3>Website</h3> </a>
</a> <div class="description">
<div class="description"> <p>Razer Mouse Battery Level Tray Indicator.</p>
<p>Sources of my personal website</a></p> </div>
</div> </div>
</div> </div>
</div> <div class="ui card">
<div class="content">
<div class="ui card"> <a href="{{ AppSubUrl }}/zeldon/zeldon-site">
<div class="content"> <h3>Website</h3>
<a href="{{AppSubUrl}}/zeldon/http-proxy-server"> </a>
<h3>http-proxy-server</h3> <div class="description">
</a> <p>Sources of my personal website.</p>
<div class="description"> </div>
<p>Simple http proxy server implemented in Go</p> </div>
</div> </div>
</div>
</div>
</div> </div>
<div class="button-container">
<div class="ui center stackable"> <button class="ui button primary">
<button class="ui button primary"> <a class="item" rel="nofollow" href="{{ AppSubUrl }}/explore/repos">
<a class="item" rel="nofollow" style="text-decoration: none;color: inherit;" Explore other!
href="{{AppSubUrl}}/explore/repos">Explore other!</a> </a>
</button> </button>
</div> </div>

View File

@ -0,0 +1,170 @@
<style>
:root {
--border-radius: 0.33rem;
--transition-speed: 150ms;
--color-timeline: var(--color-secondary);
}
/* Light-theme specific. */
.theme-gitea {
--color-primary: hsl(204deg, 90%, 52%);
}
/* Revert the red color in dashboard header buttons. */
.dashboard.feeds .right.stackable.menu > .item.active,
.dashboard.issues .right.stackable.menu > .item.active {
color: unset;
}
/* Global tweaks (all themes) */
/* Buttons. */
.ui.button,
a.ui.label {
transition: background-color var(--transition-speed),
color var(--transition-speed);
}
/* Avatars. */
img.ui.avatar {
border-radius: 50%;
}
/* Dim the "header" of sections in dropdown menus. */
.ui.dropdown .menu > .header:not(.ui) {
color: var(--color-text-light-3);
}
/* Homepage. */
/* By default Gitea colors links green */
.home a {
color: var(--color-primary);
}
/* Hide brand navbar completely when not in mobile. */
@media (min-width: 768px) {
.following.bar #navbar .brand {
display: none;
}
}
/* Repository page. */
.repository .file-view.markdown a {
color: var(--color-primary);
}
.repository .file-view .markup img {
border-radius: var(--border-radius);
}
/* Repository folder icon. */
.repository.file.list
#repo-files-table
tbody
.svg.octicon-file-directory-fill {
color: currentColor;
}
/* Repository stats. */
.repository-summary-language-stats {
height: unset;
}
.repository .repository-summary .segment.language-stats {
height: 4px;
}
/* Repository: Activity page. */
.stats-table {
margin-bottom: var(--spacer);
}
/* Hide branches from PR list. */
.issue.list .branches {
display: none !important;
}
/* Footer. */
footer {
color: var(--color-footer-text);
}
footer a {
color: var(--color-footer-links);
}
/* Manual preview tweaks. */
.restructuredtext a {
color: var(--color-accent) !important;
}
.restructuredtext :is(section, dd) > div {
background-color: var(--color-markup-code-block);
padding-bottom: 8px;
margin-bottom: 16px;
padding: 0;
border-radius: 5px;
}
.restructuredtext section div > p:first-child {
font-weight: 700;
}
.restructuredtext section div * {
margin: 0 !important;
}
.restructuredtext section div > :is(p, dl) {
padding: 8px 12px;
}
.restructuredtext section div > ul {
padding-bottom: 12px;
}
.restructuredtext section dl dt {
font-style: normal;
}
/* Alert blocks. */
blockquote.attention-note {
background-color: var(--color-info-bg);
border-left-color: var(--color-blue-dark-1);
}
strong.attention-note,
span.attention-note {
color: var(--color-blue-dark-1);
}
blockquote.attention-tip {
background-color: var(--color-success-bg);
border-left-color: var(--color-success-text);
}
strong.attention-tip,
span.attention-tip {
color: var(--color-success-text);
}
blockquote.attention-important {
background-color: var(--color-violet-dark-bg);
border-left-color: var(--color-violet-dark-1);
}
strong.attention-important,
span.attention-important {
color: var(--color-violet-dark-1);
}
blockquote.attention-warning {
background-color: var(--color-warning-bg);
border-left-color: var(--color-warning-text);
}
strong.attention-warning,
span.attention-warning {
color: var(--color-warning-text);
}
blockquote.attention-caution {
background-color: var(--color-error-bg);
border-left-color: var(--color-red-dark-1);
}
strong.attention-caution,
span.attention-caution {
color: var(--color-red-dark-1);
}
</style>

View File

@ -1,26 +1,66 @@
{{template "base/head" .}} {{template "base/head" .}}
<style>
.page-content.home {
max-width: 850px;
margin: 0 auto;
}
.hero {
text-align: center;
margin-bottom: 3rem;
}
.hero .title {
color: #2185d0;
margin-bottom: 1.5rem;
font-size: 3rem;
}
.hero p {
font-size: 1.25rem;
}
.intro-text {
text-align: center;
font-size: 1.25rem;
}
@media (max-width: 768px) {
.page-content.home {
padding: 1rem;
}
.hero .title {
font-size: 2rem;
}
.hero p,
.intro-text {
font-size: 1rem;
}
}
</style>
<div class="page-content home"> <div class="page-content home">
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide aligned column"> <div class="sixteen wide aligned column">
<div class="hero"> <div class="hero">
<h2 class="ui header title"> <h2 class="ui header title">
{{AppName}} {{ AppName }}
</h2> </h2>
<p> <p>
Welcome to the Zeldon's Projects portal! Welcome to the Zeldon's Projects portal! This is where all the
This is where all the codebases are coordinated and managed. codebases are coordinated and managed.
</p> </p>
</div> </div>
<div class="intro-text">
<div class="ui stackable twelve column mb-4"> <p>
<p>This portal hosts more than just the project sources, bug and patch tracker. Explore the other repositories! This portal hosts more than just the project sources, bug and patch
</p> tracker. Explore the other repositories!
</div> </p>
</div>
{{template "components/card_repos" .}} {{template "components/card_repos" .}}
</div> </div>
</div> </div>
</div> </div>
{{template "base/footer" .}} {{template "base/footer" .}}