Skip to content

Commit

Permalink
finish
Browse files Browse the repository at this point in the history
  • Loading branch information
luzhnyak committed Feb 18, 2024
1 parent ca7e6ca commit 4c3228d
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 835 deletions.
21 changes: 21 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"react-dom": "^18.2.0",
"react-redux": "^9.1.0",
"react-router-dom": "^6.22.0",
"react-toastify": "^10.0.4",
"redux": "^5.0.1",
"redux-persist": "^6.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Header = () => {
<svg width="40" height="40">
<use href={"./icons.svg#icon-car"} />
</svg>
ExpressWheels
<span className={css.logoText}>ExpressWheels</span>
</div>
</Link>
</li>
Expand Down
9 changes: 9 additions & 0 deletions src/components/Header/Header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,21 @@
gap: 16px;
}

.logoText {
@media only screen and (max-width: 475px) {
display: none;
}
}

.menu {
display: flex;
justify-content: space-between;
align-items: center;
gap: 50px;
height: 100%;
@media only screen and (max-width: 475px) {
gap: 40px;
}
}

.menuItem:first-child {
Expand Down
8 changes: 8 additions & 0 deletions src/components/SharedLayout/SharedLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ import { Suspense } from "react";
import Header from "../Header/Header";
import Loader from "../Loader/Loader";

import "react-toastify/dist/ReactToastify.css";
import { ToastContainer } from "react-toastify";

const SharedLayout = () => {
return (
<>
<Header />
<Suspense fallback={<Loader />}>
<Outlet />
</Suspense>
<ToastContainer
position="top-right"
autoClose={3000}
hideProgressBar={true}
/>
</>
);
};
Expand Down
Loading

0 comments on commit 4c3228d

Please sign in to comment.