diff --git a/src/assets/styles/Product.scss b/src/assets/styles/Product.scss index 8f09ba52..9cfc5c5e 100644 --- a/src/assets/styles/Product.scss +++ b/src/assets/styles/Product.scss @@ -5,10 +5,11 @@ margin-top: 2rem; box-shadow: 0.1rem 0.1rem 0.5rem rgba(0, 0, 0, 0.2); background-color: $secondary-color-light; + transform: none; &:hover { - transform: scale(1.05); + transform: scale(1.05) !important; box-shadow: 1rem 1rem 1rem rgba(0, 0, 0, 0.3); - transition: all 0.3s ease-in-out;; + transition: transform 0.1s ease !important; } .product-image-container { diff --git a/src/assets/styles/Sample.scss b/src/assets/styles/Sample.scss index 0eacaf31..e594b0a7 100644 --- a/src/assets/styles/Sample.scss +++ b/src/assets/styles/Sample.scss @@ -169,7 +169,7 @@ @media screen and (max-width: 900px) { .sampleImages1 { - height: 20rem; + height: 10rem; .sample2 { .arrow { .icon-arrow { @@ -187,7 +187,7 @@ .menShoe, .phones, .womenShoe, .accessories { img { - height: 9.5rem; + height: 8.5rem; } p { font-size: 1rem; @@ -204,7 +204,8 @@ @media screen and (max-width: 480px) { .sampleImages1 { - height: 15rem; + gap: 0.5rem; + height: 12rem; .sample2 { .arrow { .icon-arrow { @@ -221,8 +222,10 @@ } .menShoe, .phones, .womenShoe, .accessories { + height: 5.5rem; + padding: 0; img { - height: 7rem; + height: 100%; } p { font-size: 0.8rem; diff --git a/src/assets/styles/SellerLayout.scss b/src/assets/styles/SellerLayout.scss index 477a4cc4..e81e0cfe 100644 --- a/src/assets/styles/SellerLayout.scss +++ b/src/assets/styles/SellerLayout.scss @@ -1,279 +1,297 @@ .seller__wrapper { - height: 100vh; + height: 100vh; + display: flex; + + .left__side { + width: 26rem; display: flex; - - .left__side { - width: 26rem; - display: flex; + .icons__side { + display: flex; + flex-direction: column; + background-color: $primary-color; + height: 100%; + width: 6.5rem; - .icons__side { - display: flex; - flex-direction: column; - background-color: $primary-color; - height: 100%; - width: 6.5rem; - - .icons { - display: flex; - flex-direction: column; - align-items: center; - height: 100%; - width: 100%; - gap: 34rem; - - .icons__upper { - margin-top: 10rem; - display: flex; - flex-direction: column; - gap: 3rem; - - .icon { - color: $white-color; - font-size: 2rem; - } - } + .icons { + display: flex; + flex-direction: column; + align-items: center; + height: 100%; + width: 100%; + justify-content: space-between; - .icons__bottom { - height: 4rem; - display: flex; - align-items: center; + .icons__upper { + margin-top: 10rem; + display: flex; + flex-direction: column; + gap: 3rem; - .icon { - color: $white-color; - font-size: 3rem; - } - } - } + .icon { + color: $white-color; + font-size: 2rem; + } } - .dashboard__lower__link h2 { - cursor: pointer; + .icons__bottom { + height: 4rem; + display: flex; + align-items: center; + margin-bottom: 3rem; + + .icon { + color: $white-color; + font-size: 3rem; + } } + } + } - .dashboard__items { - display: flex; - flex-direction: column; - height: 100%; - width: 19.5rem; - margin-left: .1rem; - - .dashboard__side { - display: flex; - flex-direction: column; - height: 100%; - width: 100%; - gap: 37.5rem; - - .dashboard__links { - display: flex; - flex-direction: column; - margin-top: 11rem; - height: 5rem; - gap: 3.5rem; - - .text_content { - color: $text-color; - font-size: 1.8rem; - transition: all 0.5s ease-in-out; - text-decoration: none; - } - } + .dashboard__lower__link h2 { + cursor: pointer; + } - .dashboard__lower__link { - height: 4rem; - display: flex; - align-items: center; - - .text_content { - color: $text-color; - font-size: 1.8rem; - transition: all 0.5s ease-in-out; - text-decoration: none; - } - } - } + .dashboard__items { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; + margin-left: 1.5rem; + + .dashboard__side { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; + justify-content: space-between; + + .dashboard__links { + display: flex; + flex-direction: column; + margin-top: 10rem; + width: 15rem; + gap: 3rem; + + .text_content { + color: $text-color; + font-size: 1.8rem; + text-decoration: none; + padding: 1rem; + border-radius: .5rem; + transition: background-color 0.3s, color 0.3s; + display: block; + + + &:hover { + background-color: $menu-hover; + color: $white !important; + width: 15rem !important ; + } + } + } + + .dashboard__lower__link { + height: 4rem; + display: flex; + margin-bottom: 3rem; - .active { - display: flex; + .text_content { + color: $text-color; + font-size: 1.9rem; + text-decoration: none; + padding: 1rem; + border-radius: .5rem; + transition: background-color 0.3s, color 0.3s; + display: block; + + &:hover { background-color: $menu-hover; + color: $white !important; width: 15rem; - padding: 1rem 1rem; - transition: all 0.5s ease-in-out; - align-items: center; - border-radius: .5rem; + } } } - } + } - .main__seller__content__dashboard { + .active { display: flex; - flex-direction: column; - flex: 1; - max-height: 100vh; - + background-color: $menu-hover; + color: $white !important; + padding: 1rem; + border-radius: .5rem; + width: 15rem; + } } + } - .main__seller__dashboard { - display: flex; - flex: 1; - width: 100%; - min-height: calc(100vh - 120px); - max-height: calc(100vh - 120px); - background-color: $container-color; - padding: 20px; - - .outlet { - flex: 0 0 60%; - border-radius: 20px; - min-height: 95%; - max-height: 95%; - min-width: 70%; - max-width: 70%; - padding: 2rem; - overflow-y: scroll; - scroll-behavior: smooth; - background-color: white; - - &::-webkit-scrollbar { - display: none; - } - } + .main__seller__content__dashboard { + display: flex; + flex-direction: column; + flex: 1; + max-height: 100vh; + } - .right__side { - flex: 0 0 20%; - min-width: 20%; - max-width: 20%; - min-height: 100%; - max-height: 100%; - display: flex; - flex-direction: column; - gap: 25px; - padding: 0 20px; - - .right-profile { - background-color: $white-color; - height: 40%; - border-radius: 20px; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); - padding: 2rem; - .profile-image { - border-radius: 50%; - height: 6rem; - border: 0.2rem solid #FF6D18; - width: 6rem; - object-fit: cover; - margin-bottom: 1rem; - } - .profile-name { - font-size: 1.8rem; - font-weight: 600; - color: $text-color; - margin: 0; - } - .profile-edit { - font-size: 1.4rem; - color: $text-color; - background-color: #ffede2; - margin: 0; - cursor: pointer; - border: none; - color: $primary-color; - border-radius: 2rem; - padding: 0.5rem 1.8rem; - margin-top: 1rem; - font-size: 1.4rem; - .icon-edit { - color: $primary-color; - margin-left: 1rem; - } - } - .progress-bar-container { - display: flex; - align-items: center; - font-size: 1.4rem; - margin-top: 1rem; - color: $text-color; - .order-progress { - color: #57ce57; - margin-left: 0.5rem; - margin-right: 0.5rem; - } - } - - .progress-bar { - width: 3rem; - height: 1rem; - background-color: #e0e0e0; - border-radius: 0.5rem; - overflow: hidden; - } - - .progress-bar-fill { - height: 100%; - transition: width 0.3s ease; - } - } + .main__seller__dashboard { + display: flex; + flex: 1; + width: 100%; + min-height: calc(100vh - 120px); + max-height: calc(100vh - 120px); + background-color: $container-color; + padding: 20px; + + .outlet { + background-color: white; + flex: 0 0 60%; + border-radius: 20px; + min-height: 95%; + max-height: 95%; + min-width: 70%; + max-width: 70%; + box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); + padding: 2rem; + overflow-y: scroll; + scroll-behavior: smooth; + + &::-webkit-scrollbar { + display: none; + } + } + + .right__side { + flex: 0 0 20%; + min-width: 20%; + max-width: 20%; + min-height: 100%; + max-height: 100%; + display: flex; + flex-direction: column; + gap: 25px; + padding: 0 20px; - .right-products { - .loader { - display: flex; - justify-content: center; - align-items: center; - height: 50vh; + .right-profile { + background-color: $white-color; + height: 40%; + border-radius: 20px; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); + padding: 2rem; + .profile-image { + border-radius: 50%; + height: 6rem; + border: 0.2rem solid #FF6D18; + width: 6rem; + object-fit: cover; + margin-bottom: 1rem; + } + .profile-name { + font-size: 1.8rem; + font-weight: 600; + color: $text-color; + margin: 0; + } + .profile-edit { + font-size: 1.4rem; + color: $text-color; + background-color: #ffede2; + margin: 0; + cursor: pointer; + border: none; + color: $primary-color; + border-radius: 2rem; + padding: 0.5rem 1.8rem; + margin-top: 1rem; + font-size: 1.4rem; + .icon-edit { + color: $primary-color; + margin-left: 1rem; + } + } + .progress-bar-container { + display: flex; + align-items: center; + font-size: 1.4rem; + margin-top: 1rem; + color: $text-color; + .order-progress { + color: $primary-color; + margin-left: 0.5rem; + margin-right: 0.5rem; } - background-color: $white-color; - height: 60%; - overflow-y: scroll; - scroll-behavior: smooth; - border-radius: 20px; - box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); - padding: 1rem; - &::-webkit-scrollbar { - display: none; } - .right-header { - font-size: 1.4rem; - color: #000; + + .progress-bar { + width: 3rem; + height: 1rem; + background-color: #e0e0e0; + border-radius: 0.5rem; + overflow: hidden; } - .product-header{ - display: flex; - justify-content: space-between; - align-items: center; - padding: 0.3rem 0.9rem; - border-radius: 2rem; - margin-top: 1rem; - background-color: #d9d9d9; - color: #FF6D18; + + .progress-bar-fill { + height: 100%; + transition: width 0.3s ease; } - } - } - } + } + + .right-products { + .loader { + display: flex; + justify-content: center; + align-items: center; + height: 50vh; + } + background-color: $white-color; + height: 60%; + overflow-y: scroll; + scroll-behavior: smooth; + border-radius: 20px; + box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); + padding: 1rem; + &::-webkit-scrollbar { + display: none; + } + .right-header { + font-size: 1.4rem; + color: #000; + } + .product-header{ + display: flex; + justify-content: space-between; + align-items: center; + padding: 0.3rem 0.9rem; + border-radius: 2rem; + margin-top: 1rem; + background-color: #d9d9d9; + color: #FF6D18; + } + } + } + } } .seller-dashboard-container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - width: 100%; - gap: 30px; - + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + width: 100%; + gap: 30px; + .statisticCards { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; - + .card { transition: margin-top 0.3s ease; } - + .card:hover { margin-top: -20px; } @@ -285,7 +303,7 @@ background-color: #fff; overflow: hidden; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); - + .chart-header { display: flex; @@ -306,23 +324,23 @@ align-items: center; flex-direction: row; gap: 20px; - + .dot { height: 10px; width: 10px; border-radius: 50%; - + &.completed { background-color: #ff7300; } - + &.cancelled { background-color: #bfbfbf; } } } } - + .monthDropDown { .dropdown-button { background-color: #ff7300; @@ -332,7 +350,7 @@ border-radius: 5px; cursor: pointer; font-size: 14px; - + .arrow-down { margin-left: 5px; } @@ -343,41 +361,41 @@ } @media (max-width: 1024px) { - .seller__wrapper { - .left__side { - width: 6.5rem; + .seller__wrapper { + .left__side { + width: 6.5rem; - .dashboard__items { - display: none; - } - } + .dashboard__items { + display: none; + } + } - .main__seller__content__dashboard { - flex: 1; - padding: auto; - padding-left: 0px; - } + .main__seller__content__dashboard { + flex: 1; + padding: auto; + padding-left: 0px; + } - .main__seller__dashboard { - padding: 12px; + .main__seller__dashboard { + padding: 12px; - .outlet { - max-width: calc(100vw - 3.5rem); - overflow-y: scroll; - } + .outlet { + max-width: calc(100vw - 3.5rem); + overflow-y: scroll; + } - .right__side { - display: none; - } - } - } + .right__side { + display: none; + } + } + } } .seller-loading { - width: 100%; - height: 100vh; - display: flex; - justify-content: center; - align-items: center; + width: 100%; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; } \ No newline at end of file diff --git a/src/assets/styles/SellerProduct.scss b/src/assets/styles/SellerProduct.scss index a80453b3..38002fd0 100644 --- a/src/assets/styles/SellerProduct.scss +++ b/src/assets/styles/SellerProduct.scss @@ -12,7 +12,6 @@ max-width: 100%; max-height: 100%; - .seller-product-header { display: flex; flex-direction: row; diff --git a/src/assets/styles/SellerSideProduct.scss b/src/assets/styles/SellerSideProduct.scss index 0a3b3513..f8a50099 100644 --- a/src/assets/styles/SellerSideProduct.scss +++ b/src/assets/styles/SellerSideProduct.scss @@ -25,7 +25,7 @@ margin-left: 1rem; &__title { - font-size: 16px; + font-size: 1rem; font-weight: bold; } } @@ -37,7 +37,7 @@ border-radius: 0.5rem; &.available { - color: rgb(3, 216, 3); + color: rgb(3, 71, 3); background-color: rgba(3, 216, 3, 0.3); } diff --git a/src/assets/styles/adminDashboard.scss b/src/assets/styles/adminDashboard.scss index dc90dee6..78639605 100644 --- a/src/assets/styles/adminDashboard.scss +++ b/src/assets/styles/adminDashboard.scss @@ -41,10 +41,21 @@ cursor: pointer; } + .text_content:hover { + display: flex; + color: $white; + background-color: $menu-hover; + width: 15rem; + padding: 1rem; + border-radius: .5rem; + } + .active { display: flex; background-color: $menu-hover; + color: $white !important; width: 15rem; + color:$white; padding: 1rem 1rem; transition: all 0.5s ease-in-out; align-items: center; diff --git a/src/components/cards/cards.tsx b/src/components/cards/cards.tsx index c509f70c..844752ac 100644 --- a/src/components/cards/cards.tsx +++ b/src/components/cards/cards.tsx @@ -8,7 +8,7 @@ const Card = ({ title, value, percentage, isPositive, onClick }) => {
{value}
{isPositive ? '+' : '-'}{percentage}%
diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index 2b01887b..c0723a0a 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -24,6 +24,7 @@ import logo from "../../../public/assets/images/logo.png"; import useSocket from '../../hooks/useSocket'; import { toast } from 'react-toastify'; import { PulseLoader } from 'react-spinners'; + const Header: React.FC = () => { const dispatch = useAppDispatch(); const navigate = useNavigate(); @@ -32,22 +33,16 @@ const Header: React.FC = () => { const [isMenuOpen, setIsMenuOpen] = useState(false); const [isNotificationOpen, setIsNotificationOpen] = useState(false); const location = useLocation(); - const { - isAuthenticated, - user, - token: tokenLogin, - } = useAppSelector((state) => state.auth); + const { isAuthenticated, user, token: tokenLogin } = useAppSelector((state) => state.auth); const { notifications } = useAppSelector((state) => state.notification); const [token, setToken] = useState(''); const [is2FAEnabled, setIs2FAEnabled] = useState(false); const [is2FALoading, setIs2FALoading] = useState(false); const navEl = useRef- e-Commerce Ninjas -
+ +e-Commerce Ninjas