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

Feat/my account #128

Merged
merged 14 commits into from
May 16, 2024
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/e-commerce_website.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 54 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
"custom-react-inner-image-zoom": "^3.0.6",
"firebase": "^10.8.0",
"leaflet": "^1.9.4",
"nanoid": "^5.0.7",
"react": "^18.2.0",
"react-bootstrap": "^2.10.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.51.4",
"react-image-zoom": "^1.3.1",
"react-inner-image-zoom": "^3.0.2",
"react-lazy-load-image-component": "^1.6.0",
Expand All @@ -33,6 +35,7 @@
"reactjs-image-zoom": "^1.0.8",
"rn-range-slider": "^2.2.2",
"styled-components": "^5.3.11",
"uuidv4": "^6.2.13",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import MapComponent from "./components/map/ITEMmap";
import SellerForm from "./pages/SellerRegistration";
import { db } from "./firebase";
import { collection, doc, getDocs } from "firebase/firestore";
import {Account} from "./components/AccountDetails/Account";

const MyContext = createContext();

Expand Down Expand Up @@ -248,6 +249,9 @@ function App() {
/>
<Route exact={true} path="/cart" element={<Cart />} />


<Route exact={true} path="/account" element={<Account/>}/>

{/* sign in , signup Protection */}
{isLogin === null && (
<Route exact={true} path="signIn" element={<SignIn />} />
Expand Down
Empty file added src/Model/useModel.js
Empty file.
Binary file added src/assets/images/pfp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions src/components/AccountDetails/Account.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.cardwidth{
width: 50%;
height: auto;
}

.negmargin{
margin-top: -30%;
}

.profileImageP{
height: 200px;
width: 200px;
border-radius: 50%;
}

.imgbackground{
height: 400px;
width: 100vw;
opacity: 0.2;
filter: blur(3px);
}

@media only screen and (max-width: 600px) {
negmargin{
margin-top: -60%;
position: relative;
}
}



Loading