From d03bc5d41b7ae6f1c873735fc56c08e815fbeeb9 Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch Date: Fri, 23 Aug 2024 20:32:24 +0700 Subject: [PATCH] theme(fix): remove width of rainbow box section under site title --- assets/functions/image-404.mts | 16 ++++++++++++++++ assets/scss/03-global/_global.scss | 5 +---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 assets/functions/image-404.mts diff --git a/assets/functions/image-404.mts b/assets/functions/image-404.mts new file mode 100644 index 00000000..fe840341 --- /dev/null +++ b/assets/functions/image-404.mts @@ -0,0 +1,16 @@ +import type { Config } from '@netlify/functions' + +export default async function () { + return new Response('', { + headers: { + 'content-type': 'text/html', + 'netlify-cdn-cache-control': 'durable, immutable, max-age=31536000, public' + }, + status: 404 + }) +} + +export const config: Config = { + pattern: '^.*\\.jpe?g$', + preferStatic: true +} diff --git a/assets/scss/03-global/_global.scss b/assets/scss/03-global/_global.scss index bade745e..f6b54ec8 100644 --- a/assets/scss/03-global/_global.scss +++ b/assets/scss/03-global/_global.scss @@ -27,7 +27,6 @@ h4 { .rainbow-box { border-radius: 5px; - width: 70%; margin: 0 auto 1rem; height: 1px; background: linear-gradient(90deg, @@ -44,9 +43,7 @@ h4 { rgba(255, 0, 0, 1) 100%); } -/******************************************************************************* - * content area - ******************************************************************************/ +/* content area */ main { padding-top: 30px; max-width: 70rem;