diff --git a/components/video-overlay/about.json b/components/analytics/about.json similarity index 92% rename from components/video-overlay/about.json rename to components/analytics/about.json index 04b85ca..a05515e 100644 --- a/components/video-overlay/about.json +++ b/components/analytics/about.json @@ -1,5 +1,5 @@ { - "name": "Video Overlay", + "name": "Analytics", "component": true, "license_url": null, "about_url": null, diff --git a/components/analytics/common/head_tag.html b/components/analytics/common/head_tag.html new file mode 100644 index 0000000..7b21ed9 --- /dev/null +++ b/components/analytics/common/head_tag.html @@ -0,0 +1,2 @@ + + diff --git a/components/analytics/javascripts/discourse/api-initializers/theme-initializer.gjs b/components/analytics/javascripts/discourse/api-initializers/theme-initializer.gjs new file mode 100644 index 0000000..3a77606 --- /dev/null +++ b/components/analytics/javascripts/discourse/api-initializers/theme-initializer.gjs @@ -0,0 +1,8 @@ +import { apiInitializer } from "discourse/lib/api"; + +export default apiInitializer((api) => { + const analytics = document.getElementById('analytics'); + const title = document.querySelector('title'); + analytics.setAttribute('event-page', title.innerText ?? "NHCarrigan Forum"); + analytics.setAttribute('event-path', window.location.pathname); +}); diff --git a/components/blinkies/common/common.scss b/components/blinkies/common/common.scss deleted file mode 100644 index 3a65548..0000000 --- a/components/blinkies/common/common.scss +++ /dev/null @@ -1,26 +0,0 @@ -@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: #7a2048; - background-color: #fff5f8; - position: fixed; - bottom: 0; - height: 75px; - padding: 0 10px; -} - -.topic-list-bottom { - display: none; -} - -#main-outlet-wrapper { - margin-bottom: 85px; -} \ No newline at end of file diff --git a/components/blinkies/common/footer.html b/components/blinkies/common/footer.html deleted file mode 100644 index 3de33e1..0000000 --- a/components/blinkies/common/footer.html +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/components/blinkies/about.json b/components/footer/about.json similarity index 93% rename from components/blinkies/about.json rename to components/footer/about.json index ad4d3cb..db2033a 100644 --- a/components/blinkies/about.json +++ b/components/footer/about.json @@ -1,5 +1,5 @@ { - "name": "Blinkies", + "name": "Footer", "component": true, "license_url": null, "about_url": null, diff --git a/components/footer/common/body_tag.html b/components/footer/common/body_tag.html new file mode 100644 index 0000000..24d5a1a --- /dev/null +++ b/components/footer/common/body_tag.html @@ -0,0 +1,22 @@ + + \ No newline at end of file diff --git a/components/footer/common/common.scss b/components/footer/common/common.scss new file mode 100644 index 0000000..dca85b0 --- /dev/null +++ b/components/footer/common/common.scss @@ -0,0 +1,65 @@ +footer { + width: calc(100vw - 40px); + display: flex; + justify-content: space-between; + align-items: center; + color: var(--header_primary); + background-color: var(--header_background); + position: fixed; + bottom: 0; + left: 0; + right: 0; + bottom: 0; + height: 75px; + padding: 0 20px; +} + +.topic-list-bottom { + display: none; +} + +#main-outlet-wrapper { + margin-bottom: 85px; +} + +#show-socials-button { + background: none; + border: none; + cursor: url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; + color: var(--header_primary); + font-size: 1rem; +} +#show-socials-button > i { + font-size: 1.5rem; +} +#social-list { + position: absolute; + bottom: 75px; + left: 0; + right: 0; + width: 100vw; + max-width: 400px; + padding: 10px; + background-color: var(--header_background); + color: var(--header_primary); + border-radius: 10px; + border: 1px solid var(--header_primary); + display: none; + z-index: 1000; +} +.social-list-item { + padding: 10px; +} +.social-list-item > a { + display: flex; + align-items: center; + justify-content: space-between; + text-decoration: none; +} +.social-list-divider { + border: 0.5px solid var(--header_primary); +} +.social-list-item:hover { + background-color: var(--header_primary); + color: var(--header_background); +} \ No newline at end of file diff --git a/components/footer/common/footer.html b/components/footer/common/footer.html new file mode 100644 index 0000000..2347655 --- /dev/null +++ b/components/footer/common/footer.html @@ -0,0 +1,60 @@ + diff --git a/components/blinkies/common/head_tag.html b/components/footer/common/head_tag.html similarity index 100% rename from components/blinkies/common/head_tag.html rename to components/footer/common/head_tag.html diff --git a/components/blinkies/javascripts/discourse/api-initializers/theme-initializer.gjs b/components/footer/javascripts/discourse/api-initializers/theme-initializer.gjs similarity index 100% rename from components/blinkies/javascripts/discourse/api-initializers/theme-initializer.gjs rename to components/footer/javascripts/discourse/api-initializers/theme-initializer.gjs diff --git a/components/video-overlay/common/common.scss b/components/video-overlay/common/common.scss deleted file mode 100644 index 41db085..0000000 --- a/components/video-overlay/common/common.scss +++ /dev/null @@ -1,14 +0,0 @@ -#overlay-video { - pointer-events: none; - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - opacity: 0.25; - z-index: 1001; - width: 100vw; - height: 100vh; - object-fit: cover; - max-height: 100vh; -} \ No newline at end of file diff --git a/components/video-overlay/common/header.html b/components/video-overlay/common/header.html deleted file mode 100644 index 674f0c5..0000000 --- a/components/video-overlay/common/header.html +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/palettes/sakura-dreams-dark.json b/palettes/sakura-dreams-dark.json index 9bbf108..14f95b0 100644 --- a/palettes/sakura-dreams-dark.json +++ b/palettes/sakura-dreams-dark.json @@ -1,10 +1,10 @@ { "Sakura Dreams Dark": { "primary": "fff5f8", - "secondary": "7a2048", + "secondary": "2a0a18", "tertiary": "ff85a1", "quaternary": "c75b7c", - "header_background": "7a2048", + "header_background": "2a0a18", "header_primary": "ffb7c5", "highlight": "ffb7c5", "danger": "ff5c5c", diff --git a/themes/sakura-dreams-dark/about.json b/themes/sakura-dreams-dark/about.json index 05311a3..9ef1af6 100644 --- a/themes/sakura-dreams-dark/about.json +++ b/themes/sakura-dreams-dark/about.json @@ -8,7 +8,22 @@ "minimum_discourse_version": null, "maximum_discourse_version": null, "assets": {}, - "color_schemes": {}, + "color_schemes": { + "Sakura Dreams Dark": { + "primary": "fff5f8", + "secondary": "2a0a18", + "tertiary": "ff85a1", + "quaternary": "c75b7c", + "header_background": "2a0a18", + "header_primary": "ffb7c5", + "highlight": "ffb7c5", + "danger": "ff5c5c", + "success": "ff9ecf", + "love": "ff6eb5", + "selected": "ffd6e0", + "hover": "ffecf2" + } + }, "modifiers": {}, "learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966" } \ No newline at end of file diff --git a/themes/sakura-dreams-dark/common/common.scss b/themes/sakura-dreams-dark/common/common.scss index 2413bd1..f55fdef 100644 --- a/themes/sakura-dreams-dark/common/common.scss +++ b/themes/sakura-dreams-dark/common/common.scss @@ -16,5 +16,13 @@ body::before { } body { - background-color: #7a2048dd; + background-color: #2a0a18dd; +} + +html { + cursor: url('https://cdn.nhcarrigan.com/cursors/cursor.cur'), auto; +} + +a, button { + cursor: url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; } \ No newline at end of file diff --git a/themes/sakura-dreams/common/common.scss b/themes/sakura-dreams/common/common.scss index 94133e8..cee126d 100644 --- a/themes/sakura-dreams/common/common.scss +++ b/themes/sakura-dreams/common/common.scss @@ -16,5 +16,13 @@ body::before { } body { - background-color: #ffefefdd; + background-color: #ffefefdd +} + +html { + cursor: url('https://cdn.nhcarrigan.com/cursors/cursor.cur'), auto; +} + +a, button { + cursor: url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; } \ No newline at end of file