feat: update configurations

This commit is contained in:
Naomi Carrigan 2025-03-11 13:32:53 -07:00
parent dca8df0721
commit 2d0f759342
Signed by: naomi
SSH Key Fingerprint: SHA256:rca1iUI2OhAM6n4FIUaFcZcicmri0jgocqKiTTAfrt8
6 changed files with 213 additions and 26 deletions

View File

@ -70,30 +70,37 @@ PASSWORD_HASH_ALGO = pbkdf2
[service]
DISABLE_REGISTRATION = false
REQUIRE_SIGNIN_VIEW = false
REGISTER_EMAIL_CONFIRM = false
REGISTER_EMAIL_CONFIRM = true
ENABLE_NOTIFY_MAIL = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
ENABLE_CAPTCHA = true
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost
NO_REPLY_ADDRESS = noreply.nhcarrigan.com
DEFAULT_USER_IS_RESTRICTED = true
[lfs]
PATH = /data/git/lfs
[mailer]
ENABLED = false
ENABLED = true
FROM = noreply@nhcarrigan.com
PROTOCOL = smtps
SMTP_ADDR = mail.nhcarrigan.com
SMTP_PORT = 465
USER = noreply@nhcarrigan.com
PASSWD = <redacted>
[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false
[cron.update_checker]
ENABLED = true
[repository.pull-request]
DEFAULT_MERGE_STYLE = merge
DEFAULT_MERGE_STYLE = squash
[repository.signing]
DEFAULT_TRUST_MODEL = committer

View File

@ -1,6 +1,7 @@
/* Sakura Dreams - A cherry blossom inspired theme for Gitea */
:root {
--is-dark-theme: false;
/* Primary Colors */
--color-primary: #ff85a1;
--color-primary-dark: #ff6b8b;
@ -34,13 +35,13 @@
/* Other UI Elements */
--color-menu: #fff0f5;
--color-card: #fff9fb;
--color-card: #fff5f8;
--color-markup-table-row: #fff0f5;
--color-markup-code-block: #fff0f5;
--color-button: #ff85a1;
--color-border: #ffb7c5;
--color-input-border: #ffc8d6;
--color-input-background: #fffafc;
--color-input-background: #fff5f8;
--color-small-accent: #ff6eb5;
/* Diff Colors */
@ -57,6 +58,12 @@
--color-code-number: #c75b7c;
--color-code-comment: #e5a3b5;
--color-code-type: #e35a8f;
--vscode-editor-background: #fff5f8;
--color-footer: #fff5f8;
--color-nav-bg: #fff5f8;
--color-nav-hover-bg: #ffb7c5;
}
/* Header */
@ -140,8 +147,7 @@
color: var(--color-text);
}
.markdown code,
.markdown pre {
.markdown code, .markdown pre {
background-color: var(--color-markup-code-block);
border-color: var(--color-border);
}
@ -213,6 +219,32 @@
background-color: var(--color-diff-del-word);
}
.monaco-editor, .monaco-diff-editor, .monaco-component, .monaco-editor-background, .monaco-editor .margin {
background: #fff5f8 !important;
}
.monaco-editor {
--vscode-editor-selectionBackground: var(--color-primary) !important;
--vscode-editor-inactiveSelectionBackground: var(--color-primary) !important;
--vscode-editor-lineHighlightBackground: var(--color-primary) !important;
}
.monaco-editor .view-overlays .current-line {
background-color: var(--color-primary) !important;
}
.monaco-editor .margin {
background-color: transparent !important;
}
.monaco-editor .margin-view-overlays .current-line-margin {
background-color: var(--color-primary) !important;
}
.active-line-number {
background-color: transparent !important;
}
/* Scrollbar */
::-webkit-scrollbar-thumb {
background: var(--color-primary-light);
@ -225,3 +257,84 @@
::-webkit-scrollbar-track {
background: var(--color-primary-very-light);
}
body::before {
background: url(https://cdn.nhcarrigan.com/background.png);
background-size: cover;
background-position: center;
width: 100%;
height: 100%;
z-index: -100;
content: "";
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 1;
pointer-events: none;
}
body::after {
background: var(--color-body);
opacity: 0.8;
width: 100%;
height: 100%;
z-index: -50;
content: "";
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
}
html {
cursor: url('https://cdn.nhcarrigan.com/cursors/cursor.cur'), auto;
}
a, button, .button, .dropdown {
cursor: url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer !important;
}
#tree-nation-offset-website {
display: flex;
align-items: center;
}
@media screen and (max-width: 885px) {
#tree-nation-offset-website {
display: none;
}
}
footer {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
color: var(--foreground);
background-color: var(--background);
position: fixed;
bottom: 0;
height: 75px;
padding: 0 10px;
}
@media (max-width: 880px) {
.page-footer {
flex-direction: row;
}
}
#navbar {
position: fixed;
top: 0;
height: 50px;
width: 100%;
z-index: 1;
}
.page-content {
margin-top: 50px;
}

View File

@ -0,0 +1,44 @@
<footer class="page-footer" role="group" aria-label="{{ctx.Locale.Tr "aria.footer"}}">
<p>&copy; Naomi Carrigan</p>
<a href="https://chat.nhcarrigan.com" target="_blank" rel="noreferrer">
Chat
</a>
<div id="tree-nation-offset-website"></div>
<div id="blinkies">
<img src="https://cdn.nhcarrigan.com/blinkies/bigots.gif" alt="no bigots allowed"/>
<img src="https://cdn.nhcarrigan.com/blinkies/blm.gif" alt="black lives matter"/>
<img src="https://cdn.nhcarrigan.com/blinkies/miku.gif" alt="miku fan!!!"/>
<img src="https://cdn.nhcarrigan.com/blinkies/neuro.gif" alt="neurodivergent pride"/>
<img src="https://cdn.nhcarrigan.com/blinkies/palestine.gif" alt="free palestine"/>
<img src="https://cdn.nhcarrigan.com/blinkies/technomancer.gif" alt="technomancer"/>
<img src="https://cdn.nhcarrigan.com/blinkies/trans.gif" alt="trans rights!!!"/>
<img src="https://cdn.nhcarrigan.com/blinkies/ukraine.gif" alt="glory to ukraine"/>
</div>
</footer>
<video
autoplay
loop
muted
playsinline
src="https://cdn.nhcarrigan.com/overlay.webm"
style="pointer-events: none; position: fixed; top: 0; left: 0; opacity: 0.25; z-index: 100; width: 100vw; height: 100vh; object-fit: cover;">
</video>
<script src="https://widgets.tree-nation.com/js/widgets/v1/widgets.min.js?v=1.0"></script>
<script>
const interval = setInterval(() => {
const tree = document.querySelector("#tree-nation-offset-website");
if (!tree) {
console.log("DOM has not hydrated yet, cannot load TreeNation badge.");
return;
}
TreeNationOffsetWebsite({
code: "a17464e0cd351220",
lang: "en",
theme: "dark",
}).render("#tree-nation-offset-website");
clearInterval(interval);
}, 1000);
</script>
<script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + '. Please make sure the asset files can be accessed.')"></script>
</body>
</html>

View File

@ -0,0 +1,4 @@
<script src="https://analytics.nhcarrigan.com/js/script.file-downloads.hash.outbound-links.pageview-props.revenue.tagged-events.js"></script>
<script>
window.plausible = window.plausible ?? function() {(window.plausible.q=window.plausible.q ?? []).push(arguments)};
</script>

View File

@ -2,17 +2,17 @@
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
<div class="tw-mb-8 tw-px-8">
<div class="center">
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}" />
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
</h1>
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
</div>
</div>
</div>
<div>
<h2>Code Repositories</h2>
<p>Welcome to our custom Gitea instance! Please check out our <a href="https://git.nhcarrigan.com/nhcarrigan">organisation page</a> for more information.</p>
<p>If you'd like to contribute, you'll need to <a href="https://chat.nhcarrigan.com">reach out to us</a> to get access. We restrict repository creation, so you'll be working off of our repos directly.</p>
<p>This policy ensures that we can focus our limited resources on delivering you the best products.</p>
</div>
</div>
</div>
</div>
{{template "base/footer" .}}

View File

@ -0,0 +1,19 @@
{{template "base/head" .}}
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
{{template "base/alert" .}}
<div class="tw-mb-8 tw-px-8">
<div class="center">
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}" />
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
</h1>
<h2>Code Repositories</h2>
<p>Welcome to our custom Gitea instance! Please check out our <a href="https://git.nhcarrigan.com/nhcarrigan">organisation page</a> for more information.</p>
<p>If you'd like to contribute, you'll need to <a href="https://chat.nhcarrigan.com">reach out to us</a> to get access. We restrict repository creation, so you'll be working off of our repos directly.</p>
<p>This policy ensures that we can focus our limited resources on delivering you the best products.</p>
</div>
</div>
</div>
</div>
{{template "base/footer" .}}