From 9e670a52b6cfd47e91c5fac13cf77ff65f136ddc Mon Sep 17 00:00:00 2001 From: Solomon Mithra Date: Mon, 30 Jun 2025 15:02:15 -0700 Subject: [PATCH] UI improvements: Enhanced hero section and search functionality --- assets/scss/common/_custom.scss | 95 ++++++++++++++++++++++++++++++++- layouts/docs/single.html | 6 --- layouts/index.html | 71 +++++++++++++++++++----- 3 files changed, 150 insertions(+), 22 deletions(-) diff --git a/assets/scss/common/_custom.scss b/assets/scss/common/_custom.scss index 5189a5f9d7..e77be55e51 100644 --- a/assets/scss/common/_custom.scss +++ b/assets/scss/common/_custom.scss @@ -97,13 +97,31 @@ b { .hero-container { background-color: #121421; - background-image: url(/images/hero-bgdecor.svg); background-repeat: no-repeat; background-size: cover; background-position: 0 -8em; + position: relative; + + // Add blur effect to background + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-image: url(/images/hero-bgdecor.svg); + background-repeat: no-repeat; + background-size: cover; + background-position: 0 -8em; + filter: blur(2px); + z-index: 0; + } > .container { - margin: auto; + margin: auto; + position: relative; + z-index: 1; } .lead { font-size: 1.8em; @@ -517,3 +535,76 @@ b { } } } + + +// Style the suggestions dropdown +#suggestions.shadow.bg-white.rounded { + max-height: 300px; + overflow-y: auto; + overflow-x: hidden; + + // Custom scrollbar styling + scrollbar-width: thin; + scrollbar-color: rgba(111, 66, 193, 0.4) transparent; + + &::-webkit-scrollbar { + width: 6px; + } + + &::-webkit-scrollbar-track { + background: rgba(0, 0, 0, 0.05); + border-radius: 3px; + } + + &::-webkit-scrollbar-thumb { + background: rgba(111, 66, 193, 0.4); + border-radius: 3px; + + &:hover { + background: rgba(111, 66, 193, 0.6); + } + } +} + +// Modern Recording Badge +.modern-badge { + background: transparent; + color: #64748b; + padding: 0.625rem 1.25rem; + border-radius: 50px; + font-size: 0.875rem; + font-weight: 500; + border: 1.5px solid #e2e8f0; + display: inline-flex; + align-items: center; + gap: 0.5rem; + position: relative; + + // Add recording dot before text + &::before { + content: ''; + width: 8px; + height: 8px; + background: #ef4444; + border-radius: 50%; + display: inline-block; + animation: blink 1.5s infinite; + box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); + } + + // Blinking animation for the red dot + @keyframes blink { + 0% { + opacity: 1; + box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); + } + 50% { + opacity: 0.3; + box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1); + } + 100% { + opacity: 1; + box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); + } + } +} diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 900c2387e1..6a41c9639e 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -23,10 +23,4 @@

{{ .Title }}

{{ end -}} - {{ if .Page.Store.Get "hasMermaid" }} - - {{ end }} {{ end }} diff --git a/layouts/index.html b/layouts/index.html index 3c11a22dbd..3386c0f5b5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,18 +1,43 @@ {{ define "main" }} -
-
-
- - Owncast on desktop and mobile -
- -
-

Owncast is a free and open source live video and web chat server for use with existing popular broadcasting software.

- Get started +
+
+ +
+ Start your own live streaming server +
+ + +
+

+ Take control of your
+ live streaming with Owncast +

+

+ A free and open source live video and web chat server for use with
+ existing popular broadcasting software. Self-hosted and independent. +

+ + + +
+ + +
+
+ + Owncast streaming dashboard +