From 499590adc9181d47d9f5b0ea78679287a79346c8 Mon Sep 17 00:00:00 2001 From: moonstar-x Date: Thu, 17 Sep 2026 23:19:04 -0500 Subject: [PATCH] Added basic config, palette, and home and search pages with search widget. --- assets/overrides.css | 27 +++++++++++++++++++++++++++ config/glance.yml | 28 ++++++++++++++++++++++++++++ config/pages/home.yml | 14 ++++++++++++++ config/pages/search.yml | 14 ++++++++++++++ config/utils/palette.yml | 27 +++++++++++++++++++++++++++ config/widgets/search.yml | 34 ++++++++++++++++++++++++++++++++++ 6 files changed, 144 insertions(+) create mode 100644 assets/overrides.css create mode 100644 config/glance.yml create mode 100644 config/pages/home.yml create mode 100644 config/pages/search.yml create mode 100644 config/utils/palette.yml create mode 100644 config/widgets/search.yml diff --git a/assets/overrides.css b/assets/overrides.css new file mode 100644 index 0000000..620292c --- /dev/null +++ b/assets/overrides.css @@ -0,0 +1,27 @@ +.bookmarks-link:hover { + color: var(--bookmarks-group-color); +} + +img.bookmarks-icon.loaded, img.bookmarks-icon.cached { + filter: invert(1); +} + +.widget-type-monitor a:hover { + color: var(--color-primary); +} + +.widget-type-rss a:hover { + color: var(--color-text-highlight); +} + +.widget-type-videos a:hover { + color: var(--color-text-highlight); +} + +.widget-type-releases a:hover { + color: var(--color-text-highlight); +} + +.widget-type-repository a:hover { + color: var(--color-text-highlight); +} diff --git a/config/glance.yml b/config/glance.yml new file mode 100644 index 0000000..9a7febe --- /dev/null +++ b/config/glance.yml @@ -0,0 +1,28 @@ +$include: ./utils/palette.yml + +server: + assets-path: /app/assets + proxied: true + +document: + head: | + + +branding: + hide-footer: true + logo-url: https://avatars.githubusercontent.com/u/14969195?v=4 + favicon-url: https://avatars.githubusercontent.com/u/14969195?v=4 + +theme: + background-color: *color_base + primary-color: *color_mauve + positive-color: *color_green + negative-color: *color_red + contrast-multiplier: 1.2 + disable-picker: true + light: false + custom-css-file: /assets/overrides.css + +pages: + - $include: ./pages/home.yml + - $include: ./pages/search.yml diff --git a/config/pages/home.yml b/config/pages/home.yml new file mode 100644 index 0000000..53f13c5 --- /dev/null +++ b/config/pages/home.yml @@ -0,0 +1,14 @@ +- name: Home + slug: '' + width: default + desktop-navigation-width: default + center-vertically: false + hide-desktop-navigation: false + show-mobile-header: false + + head-widgets: + + columns: + - size: full + widgets: + - $include: ../widgets/search.yml diff --git a/config/pages/search.yml b/config/pages/search.yml new file mode 100644 index 0000000..16e7998 --- /dev/null +++ b/config/pages/search.yml @@ -0,0 +1,14 @@ +- name: Search + slug: search + width: slim + desktop-navigation-width: default + center-vertically: true + hide-desktop-navigation: true + show-mobile-header: false + + head-widgets: + + columns: + - size: full + widgets: + - $include: ../widgets/search.yml diff --git a/config/utils/palette.yml b/config/utils/palette.yml new file mode 100644 index 0000000..028ff60 --- /dev/null +++ b/config/utils/palette.yml @@ -0,0 +1,27 @@ +palette: + - &color_rosewater 10 58 90 + - &color_flamingo 0 58 86 + - &color_pink 316 74 85 + - &color_mauve 267 83 80 + - &color_red 351 74 73 + - &color_maroon 355 71 77 + - &color_peach 21 86 73 + - &color_yellow 40 70 78 + - &color_green 105 48 72 + - &color_teal 171 47 69 + - &color_sky 189 59 73 + - &color_sapphire 199 66 69 + - &color_blue 220 83 75 + - &color_lavender 234 82 85 + - &color_text 227 68 88 + - &color_subtext1 228 39 80 + - &color_subtext0 227 27 72 + - &color_overlay2 228 20 65 + - &color_overlay1 228 15 57 + - &color_overlay0 230 12 49 + - &color_surface2 230 14 41 + - &color_surface1 231 16 34 + - &color_surface0 230 19 26 + - &color_base 232 23 18 + - &color_mantle 233 23 15 + - &color_crust 236 23 12 diff --git a/config/widgets/search.yml b/config/widgets/search.yml new file mode 100644 index 0000000..09b6259 --- /dev/null +++ b/config/widgets/search.yml @@ -0,0 +1,34 @@ +- type: search + title: 🔍 Search + search-engine: google + new-tab: false + autofocus: true + placeholder: 검색어를 입력해 주세요. + bangs: + - title: YouTube + shortcut: "!yt" + url: https://youtube.com/results?search_query={QUERY} + - title: Steam + shortcut: "!steam" + url: https://store.steampowered.com/search/?term={QUERY} + - title: SteamDB + shortcut: "!steamdb" + url: https://steamdb.info/search/?a=app&q={QUERY} + - title: Reddit + shortcut: "!reddit" + url: https://reddit.com/search?q={QUERY} + - title: Docker Hub + shortcut: "!docker" + url: https://hub.docker.com/search?q={QUERY} + - title: RubyGems + shortcut: "!ruby" + url: https://rubygems.org/search?query={QUERY} + - title: NPM + shortcut: "!npm" + url: https://npmjs.com/search?q={QUERY} + - title: PyPI + shortcut: "!py" + url: https://pypi.org/search/?q={QUERY} + - title: StackOverflow + shortcut: "!so" + url: https://stackoverflow.com/search?q={QUERY}