From 2d0f759342587d548b126d69b9b46f9e3d415aa4 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Tue, 11 Mar 2025 13:32:53 -0700 Subject: [PATCH] feat: update configurations --- conf/app.ini | 23 ++-- public/assets/css/theme-sakura-dreams.css | 121 +++++++++++++++++++++- templates/base/footer.tmpl | 44 ++++++++ templates/custom/header.tmpl | 4 + templates/home.tmpl | 28 ++--- templates/user/dashboard/dashboard.tmpl | 19 ++++ 6 files changed, 213 insertions(+), 26 deletions(-) create mode 100644 templates/base/footer.tmpl create mode 100644 templates/custom/header.tmpl create mode 100644 templates/user/dashboard/dashboard.tmpl diff --git a/conf/app.ini b/conf/app.ini index c1e9d76..e01296e 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -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 = [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 diff --git a/public/assets/css/theme-sakura-dreams.css b/public/assets/css/theme-sakura-dreams.css index adc163f..25148c9 100644 --- a/public/assets/css/theme-sakura-dreams.css +++ b/public/assets/css/theme-sakura-dreams.css @@ -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; +} \ No newline at end of file diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl new file mode 100644 index 0000000..4ab0b23 --- /dev/null +++ b/templates/base/footer.tmpl @@ -0,0 +1,44 @@ +
+

© Naomi Carrigan

+ + Chat + +
+
+ no bigots allowed + black lives matter + miku fan!!! + neurodivergent pride + free palestine + technomancer + trans rights!!! + glory to ukraine +
+
+ + + + + + \ No newline at end of file diff --git a/templates/custom/header.tmpl b/templates/custom/header.tmpl new file mode 100644 index 0000000..fece314 --- /dev/null +++ b/templates/custom/header.tmpl @@ -0,0 +1,4 @@ + + diff --git a/templates/home.tmpl b/templates/home.tmpl index 2ad999e..20f1fbc 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -1,18 +1,18 @@ {{template "base/head" .}}
-
-
- -
-

- {{AppName}} -

-

{{ctx.Locale.Tr "startpage.app_desc"}}

-
-
-
-
-

Welcome to our custom Gitea instance! Please check out our organisation page for more information.

-
+
+
+ +
+

+ {{AppName}} +

+

Code Repositories

+

Welcome to our custom Gitea instance! Please check out our organisation page for more information.

+

If you'd like to contribute, you'll need to reach out to us to get access. We restrict repository creation, so you'll be working off of our repos directly.

+

This policy ensures that we can focus our limited resources on delivering you the best products.

+
+
+
{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl new file mode 100644 index 0000000..10c15e6 --- /dev/null +++ b/templates/user/dashboard/dashboard.tmpl @@ -0,0 +1,19 @@ +{{template "base/head" .}} +
+ {{template "base/alert" .}} +
+
+ +
+

+ {{AppName}} +

+

Code Repositories

+

Welcome to our custom Gitea instance! Please check out our organisation page for more information.

+

If you'd like to contribute, you'll need to reach out to us to get access. We restrict repository creation, so you'll be working off of our repos directly.

+

This policy ensures that we can focus our limited resources on delivering you the best products.

+
+
+
+
+{{template "base/footer" .}} \ No newline at end of file