diff --git a/src/client/route/404/index.html b/src/client/route/404/index.html index 1739609..9782f09 100644 --- a/src/client/route/404/index.html +++ b/src/client/route/404/index.html @@ -3,10 +3,12 @@ - Home - + 404 Not found + + -

404 Page not found.

+

404 Not found

+ diff --git a/src/client/route/404/index.scss b/src/client/route/404/index.scss index e69de29..1117f8a 100644 --- a/src/client/route/404/index.scss +++ b/src/client/route/404/index.scss @@ -0,0 +1,24 @@ +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + display: grid; + padding: 100px; + height: 100vh; + justify-content: center; + background-color: #e0e0e0; +} + +.title { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + text-align: center; +} + +.logo { + width: 250px; +} diff --git a/src/client/route/home/index.html b/src/client/route/home/index.html index 0dd5449..b38abb1 100644 --- a/src/client/route/home/index.html +++ b/src/client/route/home/index.html @@ -4,9 +4,11 @@ Home - + + - SolidJS Logo +

Home

+ diff --git a/src/client/route/home/index.scss b/src/client/route/home/index.scss index e69de29..1117f8a 100644 --- a/src/client/route/home/index.scss +++ b/src/client/route/home/index.scss @@ -0,0 +1,24 @@ +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + display: grid; + padding: 100px; + height: 100vh; + justify-content: center; + background-color: #e0e0e0; +} + +.title { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + text-align: center; +} + +.logo { + width: 250px; +} diff --git a/src/server/index.ts b/src/server/index.ts index b052924..c0d54e1 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -16,7 +16,7 @@ const routes: Route[] = [ ) }, { - pattern: new URLPattern({ pathname: '/:page([a-z0-9]+[a-z0-9-.]*\/?)' }), + pattern: new URLPattern({ pathname: '/:page/' }), handler: (request, _info, parameters) => pageHandler( request, routeDirectory,