From 426d569820316c3b7fd0dade352079ca6f0702e3 Mon Sep 17 00:00:00 2001
From: Zoe <7711zoe@gmail.com>
Date: Sun, 19 Jan 2025 22:00:49 +0800
Subject: [PATCH] BLOG-14 Create not found page (#23)
### Description
- Add Not Found Page
- Change the home page h1 font weight
- Change the order of Prettier plugins to fix the issue of tailwind css not being sorted
### Package Changes
_No response_
### Screenshots
| Desktop (FHD 1920x1080) | Mobile (iPhone16 Pro 390x844) |
| --- | --- |
|  |
|
### Reference
Resolves #14
### Checklist
- [x] A milestone is set
Reviewed-on: https://git.squidspirit.com/squid/blog/pulls/23
Reviewed-by: squid
Co-authored-by: Zoe <7711zoe@gmail.com>
Co-committed-by: Zoe <7711zoe@gmail.com>
---
frontend/.prettierrc | 2 +-
frontend/src/app/not-found.tsx | 16 ++++++++++++++++
frontend/src/app/page.tsx | 2 +-
3 files changed, 18 insertions(+), 2 deletions(-)
create mode 100644 frontend/src/app/not-found.tsx
diff --git a/frontend/.prettierrc b/frontend/.prettierrc
index ab94e86..2326774 100644
--- a/frontend/.prettierrc
+++ b/frontend/.prettierrc
@@ -1,5 +1,5 @@
{
- "plugins": ["prettier-plugin-tailwindcss", "@trivago/prettier-plugin-sort-imports"],
+ "plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
"printWidth": 120,
"tabWidth": 2,
"trailingComma": "all",
diff --git a/frontend/src/app/not-found.tsx b/frontend/src/app/not-found.tsx
new file mode 100644
index 0000000..c60dd79
--- /dev/null
+++ b/frontend/src/app/not-found.tsx
@@ -0,0 +1,16 @@
+export default function NotFoundPage() {
+ return (
+
+
+
404
+
+
+
+ Not
+
+ Found.
+
+
+
+ );
+}
diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx
index 5641f47..8c21ab0 100644
--- a/frontend/src/app/page.tsx
+++ b/frontend/src/app/page.tsx
@@ -4,7 +4,7 @@ export default function HomePage() {
return (