Commit 9df6c585 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

update maw width in wishlist;

iupdate error page;
parent 50e809da
import { GitHub } from "@mui/icons-material";
import { Box } from "@mui/material"; import { Box } from "@mui/material";
import React from "react"; import React from "react";
...@@ -5,10 +6,10 @@ export default function Footer() { ...@@ -5,10 +6,10 @@ export default function Footer() {
return ( return (
<Box sx={{ p: 3, display: "flex", justifyContent: "end" }}> <Box sx={{ p: 3, display: "flex", justifyContent: "end" }}>
<a <a
className="text-slate-800 font-medium no-underline hover:underline md:mx-5" className="flex items-center text-slate-800 font-medium no-underline hover:underline md:mx-5"
href="https://github.com/nawasan111/final-exam" href="https://github.com/nawasan111/final-exam"
> >
Source code <GitHub sx={{ mx: 1 }} /> Source code
</a> </a>
<a <a
className="text-slate-800 font-medium no-underline hover:underline md:mx-5" className="text-slate-800 font-medium no-underline hover:underline md:mx-5"
......
import { Home } from "@mui/icons-material";
import { BrowserNotSupported } from "@mui/icons-material";
import { Box, IconButton, Paper } from "@mui/material";
import Link from "next/link";
import React from "react"; import React from "react";
export default function Error() { export default function Error() {
return <div>Not found</div>; return (
<Box sx={{ maxWidth: 1200, mx: "auto" }}>
<Paper className="shadow-none" sx={{ p: 5, textAlign: "center" }}>
<Box>
<Link title="กลับสู่หน้าหลัก" href={'/'}>
<IconButton sx={{ width: 100, height: 100 }}>
<BrowserNotSupported sx={{ transform: "scale(3)" }} />
</IconButton>
</Link>
</Box>
ไม่พบหน้าที่ต้องการ
</Paper>
</Box>
);
} }
...@@ -110,7 +110,7 @@ export default function Wishlist() { ...@@ -110,7 +110,7 @@ export default function Wishlist() {
<Head> <Head>
<title>รายการชื่นชอบ | OpenShop</title> <title>รายการชื่นชอบ | OpenShop</title>
</Head> </Head>
<Box> <Box sx={{maxWidth: 1200, mx: "auto"}}>
<PopupAlert <PopupAlert
open={!!message.message.length} open={!!message.message.length}
isError={message.error} isError={message.error}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment