diff --git a/asteroid.lisp b/asteroid.lisp index 2ab0477..5ecf4bf 100644 --- a/asteroid.lisp +++ b/asteroid.lisp @@ -719,7 +719,9 @@ (cond ;; Validate passwords match ((not (string= password confirm-password)) - (render-template-with-plist "register" + (format t "Failed to register new user '~a': passwords do not match.~%" username) + (clip:process-to-string + (load-template "register") :title "Asteroid Radio - Register" :display-error "display: block;" :display-success "display: none;" @@ -728,7 +730,9 @@ ;; Check if username already exists ((find-user-by-username username) - (render-template-with-plist "register" + (format t "Failed to register new user '~a': Username already exists.~%" username) + (clip:process-to-string + (load-template "register") :title "Asteroid Radio - Register" :display-error "display: block;" :display-success "display: none;" @@ -746,14 +750,16 @@ (setf (session:field "user-id") (if (listp user-id) (first user-id) user-id))))) ;; Redirect new users to their profile page (radiance:redirect "/asteroid/profile")) - (render-template-with-plist "register" + (clip:process-to-string + (load-template "register") :title "Asteroid Radio - Register" :display-error "display: block;" :display-success "display: none;" :error-message "Registration failed. Please try again." :success-message "")))) ;; Show registration form (no POST data) - (render-template-with-plist "register" + (clip:process-to-string + (load-template "register") :title "Asteroid Radio - Register" :display-error "display: none;" :display-success "display: none;" diff --git a/auth-routes.lisp b/auth-routes.lisp index 6aa5aec..8810a41 100644 --- a/auth-routes.lisp +++ b/auth-routes.lisp @@ -33,12 +33,16 @@ (format t "Session error: ~a~%" e) "Login successful but session error occurred"))) ;; Login failed - show form with error - (render-template-with-plist "login" - :title "Asteroid Radio - Login" - :error-message "Invalid username or password" - :display-error "display: block;"))) + (progn + (format t "Login unsuccessful for user: ~a~%" username) + (clip:process-to-string + (load-template "login") + :title "Asteroid Radio - Login" + :error-message "Invalid username or password" + :display-error "display: block;")))) ;; Show login form (no POST data) - (render-template-with-plist "login" + (clip:process-to-string + (load-template "login") :title "Asteroid Radio - Login" :error-message "" :display-error "display: none;")))) diff --git a/static/asteroid.css b/static/asteroid.css index a914007..1f03f15 100644 --- a/static/asteroid.css +++ b/static/asteroid.css @@ -270,6 +270,34 @@ body .audio-player{ text-align: center; } +body audio::-webkit-media-controls-panel{ + background-color: #1a1a1a; +} + +body audio::-webkit-media-controls-current-time-display, +body audio::-webkit-media-controls-time-remaining-display{ + color: #fff; +} + +body audio::-webkit-media-controls-enclosure{ + border-radius: 0; +} + +body audio::-webkit-media-controls-mute-button, +body audio::-webkit-media-controls-play-button, +body audio::-webkit-media-controls-volume-slider, +body audio::-webkit-media-controls-timeline, +body audio::-webkit-media-controls-toggle-closed-captions-button, +body audio::-webkit-media-controls-fullscreen-button, +body audio::-webkit-media-controls-timeline, +body audio::-webkit-media-controls-overlay-enclosure{ + -moz-filter: invert(1); + -o-filter: invert(1); + -webkit-filter: invert(1); + -ms-filter: invert(1); + filter: invert(1); +} + body .track-art{ font-size: 3em; margin-right: 20px; diff --git a/static/asteroid.lass b/static/asteroid.lass index 8afab3b..f828d0f 100644 --- a/static/asteroid.lass +++ b/static/asteroid.lass @@ -218,6 +218,34 @@ (.audio-player :text-align center) + ((:and audio |::-webkit-media-controls-panel|) + :background-color "#1a1a1a") + + ;; ((:and audio (:or |::-webkit-media-controls-mute-button| + ;; |::-webkit-media-controls-play-button| + ;; |::-webkit-media-controls-current-time-display| + ;; |::-webkit-media-controls-time-remaining-display| + ;; )) + ;; :height "20px" + ;; :line-height "20px") + + ((:and audio (:or |::-webkit-media-controls-current-time-display| + |::-webkit-media-controls-time-remaining-display|)) + :color "#fff") + + ((:and audio |::-webkit-media-controls-enclosure|) + :border-radius 0) + + ((:and audio (:or |::-webkit-media-controls-mute-button| + |::-webkit-media-controls-play-button| + |::-webkit-media-controls-volume-slider| + |::-webkit-media-controls-timeline| + |::-webkit-media-controls-toggle-closed-captions-button| + |::-webkit-media-controls-fullscreen-button| + |::-webkit-media-controls-timeline| + |::-webkit-media-controls-overlay-enclosure|)) + :filter "invert(1)") + (.track-art :font-size "3em" :margin-right "20px" diff --git a/template/login.ctml b/template/login.ctml index 4eb9d49..3dadc34 100644 --- a/template/login.ctml +++ b/template/login.ctml @@ -21,8 +21,8 @@

System Access

-