From 5dc342fc8996e37f14f71aa094c7789146f3b9c2 Mon Sep 17 00:00:00 2001 From: Damien MATHIEU Date: Tue, 9 Jun 2026 01:17:02 +0200 Subject: [PATCH 1/2] Update error pages (#41) Refactor code structure for improved readability and maintainability -update dark scheme rendering Co-authored-by: Stu <31927084+yCodeTech@users.noreply.github.com> --- cli/templates/404.html | 39 +++++++++++--- cli/templates/500.html | 119 +++++++++++++++++++++++------------------ 2 files changed, 97 insertions(+), 61 deletions(-) diff --git a/cli/templates/404.html b/cli/templates/404.html index 68874bf8b..48f9b4059 100644 --- a/cli/templates/404.html +++ b/cli/templates/404.html @@ -1,29 +1,53 @@ + Valet - Not Found - - -
+
- -

404

-

Not Found

+

404

+

Not Found

diff --git a/cli/templates/500.html b/cli/templates/500.html index 45dbc7bf6..9c0b875a5 100644 --- a/cli/templates/500.html +++ b/cli/templates/500.html @@ -1,75 +1,88 @@ + Valet - Internal Server Error - - -
- +
+ - - - - - - - - - - - - - - - + + + + + + + + + + + -

500

-

Internal Server Error

- -

For error details, please run this command: valet log nginx.

+

500

+

Internal Server Error

+

For error details, please run this command: valet log nginx.

This displays the entire error log (~/.config/valet/Log/nginx-error.log) in your terminal.

From 5a731807044dfc26a217a835f9acda1bc55f9357 Mon Sep 17 00:00:00 2001 From: yCodeTech Date: Tue, 9 Jun 2026 00:30:37 +0100 Subject: [PATCH 2/2] refactor: 404 and 500 error pages structure and refined CSS. - Added container div for improved HTML structure and added classes for better style selectors. - Moved the flex styles from the body to the new container class. - Refined values for widths, margins, and font sizes. - Changed some of the styles to use CSS nesting. - Moved the SVG styles into the main style block to keep all styles together. - Moved the `@media prefers-color-scheme` rules to be nested under each element that it's for. - Updated colours for dark mode. - Auto formatting --- cli/templates/404.html | 121 ++++++++++++++++++----------------- cli/templates/500.html | 142 +++++++++++++++++++++++------------------ 2 files changed, 143 insertions(+), 120 deletions(-) diff --git a/cli/templates/404.html b/cli/templates/404.html index 48f9b4059..284c0d04b 100644 --- a/cli/templates/404.html +++ b/cli/templates/404.html @@ -1,81 +1,86 @@ - + Valet - Not Found -
- - - - - - - - - - - - - - -

404

-

Not Found

+
+
+ + + + + + + + + + + + + +

404

+

Not Found

+
diff --git a/cli/templates/500.html b/cli/templates/500.html index 9c0b875a5..c02c63d83 100644 --- a/cli/templates/500.html +++ b/cli/templates/500.html @@ -1,89 +1,107 @@ - + Valet - Internal Server Error + + -
- - - - - - - - - - - - - - -

500

-

Internal Server Error

-

For error details, please run this command: valet log nginx.

-

This displays the entire error log (~/.config/valet/Log/nginx-error.log) in your terminal.

+
+
+ + + + + + + + + + + + + +

500

+

Internal Server Error

+ +

For error details, please run this command: valet log nginx.

+

This displays the entire error log  (~/.config/valet/Log/nginx-error.log) in your terminal.

+