From 464dae75c2595ee21455eaea0a954a36ac60414b Mon Sep 17 00:00:00 2001 From: Bel Curcio Date: Tue, 8 Mar 2022 14:37:01 +0100 Subject: [PATCH] Styling Issues --- site/components/common/Navbar/Navbar.tsx | 2 +- .../common/UserNav/UserNav.module.css | 23 +++++++++--------- site/components/ui/Container/Container.tsx | 4 ++-- site/pages/cart.tsx | 12 +++++----- site/pages/orders.tsx | 2 +- site/pages/profile.tsx | 24 +++++++++++-------- site/pages/wishlist.tsx | 4 ++-- 7 files changed, 38 insertions(+), 33 deletions(-) diff --git a/site/components/common/Navbar/Navbar.tsx b/site/components/common/Navbar/Navbar.tsx index bc1969a91..9286ef160 100644 --- a/site/components/common/Navbar/Navbar.tsx +++ b/site/components/common/Navbar/Navbar.tsx @@ -16,7 +16,7 @@ interface NavbarProps { const Navbar: FC = ({ links }) => ( - +
diff --git a/site/components/common/UserNav/UserNav.module.css b/site/components/common/UserNav/UserNav.module.css index 6e6469fff..bd1314402 100644 --- a/site/components/common/UserNav/UserNav.module.css +++ b/site/components/common/UserNav/UserNav.module.css @@ -7,20 +7,21 @@ } .item { - @apply ml-6 cursor-pointer relative transition ease-in-out duration-100 flex items-center outline-none text-primary; + @apply ml-6 cursor-pointer relative transition ease-in-out + duration-100 flex items-center outline-none text-primary; +} - &:hover { - @apply text-accent-6 transition scale-110 duration-100; - } +.item:hover { + @apply text-accent-6 transition scale-110 duration-100; +} - &:first-child { - @apply ml-0; - } +.item:first-child { + @apply ml-0; +} - &:focus, - &:active { - @apply outline-none; - } +.item:focus, +.item:active { + @apply outline-none; } .bagCount { diff --git a/site/components/ui/Container/Container.tsx b/site/components/ui/Container/Container.tsx index 095d4f9d4..d8425f3b3 100644 --- a/site/components/ui/Container/Container.tsx +++ b/site/components/ui/Container/Container.tsx @@ -12,10 +12,10 @@ const Container: FC = ({ children, className, el = 'div', - clean, + clean = false, // Full Width Screen }) => { const rootClassName = cn(className, { - 'mx-auto max-w-8xl px-6': !clean, + 'mx-auto max-w-7xl px-6 w-full': !clean, }) let Component: React.ComponentType> = diff --git a/site/pages/cart.tsx b/site/pages/cart.tsx index 09a2227a2..6823f7b62 100644 --- a/site/pages/cart.tsx +++ b/site/pages/cart.tsx @@ -3,7 +3,7 @@ import useCart from '@framework/cart/use-cart' import usePrice from '@framework/product/use-price' import commerce from '@lib/api/commerce' import { Layout } from '@components/common' -import { Button, Text } from '@components/ui' +import { Button, Text, Container } from '@components/ui' import { Bag, Cross, Check, MapPin, CreditCard } from '@components/icons' import { CartItem } from '@components/cart' import { useUI } from '@components/ui/context' @@ -48,8 +48,8 @@ export default function Cart() { } return ( -
-
+ +
{isLoading || isEmpty ? (
@@ -82,7 +82,7 @@ export default function Cart() {
) : ( -
+
My Cart Review your Order
    @@ -111,7 +111,7 @@ export default function Cart() {
)}
-
+
{process.env.COMMERCE_CUSTOMCHECKOUT_ENABLED && ( <> @@ -185,7 +185,7 @@ export default function Cart() {
-
+
) } diff --git a/site/pages/orders.tsx b/site/pages/orders.tsx index b8b10814b..58f444507 100644 --- a/site/pages/orders.tsx +++ b/site/pages/orders.tsx @@ -22,7 +22,7 @@ export async function getStaticProps({ export default function Orders() { return ( - + My Orders
diff --git a/site/pages/profile.tsx b/site/pages/profile.tsx index eb54004ee..4c883059d 100644 --- a/site/pages/profile.tsx +++ b/site/pages/profile.tsx @@ -23,24 +23,28 @@ export async function getStaticProps({ export default function Profile() { const { data } = useCustomer() return ( - + My Profile - {data && ( -
-
-
- Full Name +
+ {data && ( +
+
+ + Full Name + {data.firstName} {data.lastName}
-
- Email +
+ + Email + {data.email}
-
- )} + )} +
) } diff --git a/site/pages/wishlist.tsx b/site/pages/wishlist.tsx index 389e7aaab..c4c347986 100644 --- a/site/pages/wishlist.tsx +++ b/site/pages/wishlist.tsx @@ -40,8 +40,8 @@ export default function Wishlist() { const { data, isLoading, isEmpty } = useWishlist({ includeProducts: true }) return ( - -
+ +
My Wishlist
{isLoading ? (