Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User account page #7

Open
wants to merge 4 commits into
base: Main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 0 additions & 104 deletions .gitignore

This file was deleted.

1 change: 0 additions & 1 deletion README.md

This file was deleted.

9 changes: 9 additions & 0 deletions src/components/UserNav/UserNav.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.p-btn-hov:hover {
color: var(--color-primary);
}

.user-nav-main-container {
width: 100%;
height: 58.2rem;
border-radius: 0.5rem;
}
104 changes: 104 additions & 0 deletions src/components/UserNav/UserNav.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
import React from "react";
import "../../styles/root.css";

export function UserNav() {
return (
<>
<nav className="user-nav-container box-shadow">
<form>
<section className="filter-section flex-row-spc-btw p-btn-hov">
<div className="AlertDomMainContainer">
<h4 className="flex-evenly pad-normal-top padding-small-left1 buttonAnimation ">
<span>My Orders</span>
</h4>
</div>
</section>

<section className="padding-small-left1 flex-column-start">
<h4 className="">
ACCOUNT SETTINGS
</h4>
<a
className="pad-normal-top p-btn-hov"
href=""
>
Profile Information
</a>
<a
className="pad-normal-top p-btn-hov"
href=""
>
Manage Addresses
</a>
<a
className="pad-normal-top p-btn-hov"
href=""
>
PAN Card Information
</a>
</section>

<section className="padding-small-left1 flex-column-start">
<h4 className="">PAYMENTS</h4>
<a
className="pad-normal-top p-btn-hov"
href=""
>
Gift Cards
</a>
<a
className="pad-normal-top p-btn-hov"
href=""
>
Saved UPI
</a>
<a
className="pad-normal-top p-btn-hov"
href=""
>
Saved Cards
</a>
</section>

<section className="padding-small-left1 flex-column-start">
<h4 className="">My Stuff</h4>
<a
className="pad-normal-top p-btn-hov"
href=""
>
My Coupons
</a>
<a
className="pad-normal-top p-btn-hov"
href=""
>
My Reviews & Ratings
</a>
<a
className="pad-normal-top p-btn-hov"
href=""
>
All Notifications
</a>
<a
className="pad-normal-top p-btn-hov"
href=""
>
My WishList
</a>
</section>

<section className="filter-section flex-row-spc-btw padding-small-left1 p-btn-hov">
<div className="AlertDomMainContainer">
<h4 className="flex-evenly pad-normal-top buttonAnimation ">
<span>Logout</span>
</h4>
</div>
</section>
</form>
</nav>
</>
);
}

export default UserNav;
44 changes: 44 additions & 0 deletions src/components/UserPage/UserPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.user-main-container {
height: 100%;
}

.user-page-container {
margin-left: 1rem;
border-radius: 1rem;
}

.flex-align-center {
display: flex;
flex-wrap: wrap;
align-items: center;
}
.user-form-input {
padding: 0.5rem;
}

.pad-normal-top {
padding-top: 1rem;
}

.padding-large-top {
padding-top: 2rem;
}

.padding-normal-top {
padding-top: 1rem;
}

.user-container-avatar {
border-radius: 0.5rem;
margin-bottom: 0.5rem;
}

.avatar-img-container {
width: 3rem;
height: 3rem;
}

.avatar-img {
width: 100%;
border-radius: 50%;
}
Loading