updated README and code for header component

This commit is contained in:
Juthatip McDevitt 2024-07-12 11:06:09 -05:00
parent 0027c70401
commit 4d08921b79
2 changed files with 4 additions and 3 deletions

View file

@ -1,8 +1,8 @@
# E-commerce web application by Next.js
# E-commerce web application with Next.js
This project is a fullstack donut delivery web application. We will be useing MongoDB to store data and Amazon S3 to store all images. For user authentication, we will be using NextAuth.js and have two options (google provider and credentials provider) for users to register/login into thier dashboard.
This project is a full stack donut delivery web application. We will be useing MongoDB to store data and Amazon S3 to store all images. For user authentication, we will be using NextAuth.js and have two options (google provider and credentials provider) for users to register/login into thier dashboard.
## Web application architecture
## Web application architecture diagram
<p><img src="./public/web_app_architechture.png" width="800" height="380" /></p>

View file

@ -92,6 +92,7 @@ const Header = () => {
)}
{status === 'unauthenticated' && (
<>
<Link href='/cart' className="flex gap-1 items-center text-sm">Your cart({cartProducts.length})</Link>
<Link href='/login' className="border border-[#95743D] p-1 w-[100px] rounded-full">login</Link>
<Link href='/register' className="bg-[#95743D] p-1 w-[100px] text-white rounded-full">Register</Link>
</>