diff --git a/src/app/[productId]/page.tsx b/src/app/[productId]/page.tsx
index 39fa60b8..e92d1210 100644
--- a/src/app/[productId]/page.tsx
+++ b/src/app/[productId]/page.tsx
@@ -10,8 +10,9 @@ import {
TextContainer,
DescriptionContainer,
ToastPopUP,
+ Fullscreen,
} from './styles';
-import { GlobalStyle } from '../../styles/components';
+
import NavBar from '../../components/NavBarFolder/NavBar';
import { Product } from '../../schema/schema';
import Buttons from './Buttons';
@@ -39,8 +40,7 @@ export default function ItemDisplay({
}, [params.productId]);
return (
-
-
+
{Item?.description}
-
+
);
}
diff --git a/src/app/[productId]/styles.ts b/src/app/[productId]/styles.ts
index 4de2f750..ccd5dcf7 100644
--- a/src/app/[productId]/styles.ts
+++ b/src/app/[productId]/styles.ts
@@ -85,3 +85,8 @@ export const ToastPopUP = styled(ToastContainer)`
z-index: 100;
transform: translatey(130px);
`;
+
+export const Fullscreen = styled.div`
+ width: 100%;
+ height: 100%;
+`;
diff --git a/src/app/login/styles.ts b/src/app/login/styles.ts
index a5f91ddd..273a4576 100644
--- a/src/app/login/styles.ts
+++ b/src/app/login/styles.ts
@@ -6,6 +6,8 @@ export const LoginBox = styled.div`
width: 500px;
height: 420px;
border: 1px solid ${COLORS.neutralGrey};
+ justify-self: center;
+ align-self: center;
`;
export const LoginContent = styled.div`
@@ -73,11 +75,9 @@ export const EyeIcon = styled(Eye)`
`;
export const Fullscreen = styled.div`
- display: flex;
- justify-content: center;
- align-items: center;
width: 100%;
- height: 870px;
+ height: 100%;
+ display: grid;
`;
export const InputField = styled.div`
diff --git a/src/app/profileScreen/page.tsx b/src/app/profileScreen/page.tsx
index 38041d1f..48e2c696 100644
--- a/src/app/profileScreen/page.tsx
+++ b/src/app/profileScreen/page.tsx
@@ -1,7 +1,7 @@
'use client';
import { useRouter } from 'next/navigation';
-import { toast } from 'react-toastify';
+import { toast, ToastContainer } from 'react-toastify';
import { useEffect, useState } from 'react';
import {
Heading2,
@@ -36,6 +36,7 @@ import {
BackButtonDiv,
BlankSpace,
HeaderDiv,
+ Fullscreen,
} from './styles';
import { signOut } from '../../api/supabase/auth/auth';
import 'react-toastify/dist/ReactToastify.css';
@@ -212,7 +213,7 @@ export default function Profile() {
return Error Loading User
;
}
return (
-
+
@@ -220,6 +221,12 @@ export default function Profile() {
My Profile
+
{user.delivery_allowed ? (
@@ -233,6 +240,6 @@ export default function Profile() {
Favorites
*/}
-
+
);
}
diff --git a/src/app/profileScreen/styles.ts b/src/app/profileScreen/styles.ts
index aab40616..7afc9ff6 100644
--- a/src/app/profileScreen/styles.ts
+++ b/src/app/profileScreen/styles.ts
@@ -138,3 +138,8 @@ export const BlankSpace = styled.div`
width: 250px;
height: 200px;
`;
+
+export const Fullscreen = styled.div`
+ width: 100%;
+ height: 100%;
+`;
diff --git a/src/app/storefront/IndividualItem.tsx b/src/app/storefront/IndividualItem.tsx
index a44c13e3..e0975f53 100644
--- a/src/app/storefront/IndividualItem.tsx
+++ b/src/app/storefront/IndividualItem.tsx
@@ -51,15 +51,14 @@ export default function IndividualItem(props: {
style={{ width: '250px', height: '250px' }}
/>
-
clickFunction()}
onMouseEnter={() => setHovering(true)}
onMouseLeave={() => setHovering(false)}
>
-
+
-
+
{IsFavorite ? 'Remove from favorites' : 'Add to favorites'}
diff --git a/src/app/storefront/StoreFrontNavBar.tsx b/src/app/storefront/StoreFrontNavBar.tsx
index 52d70058..2642b4a9 100644
--- a/src/app/storefront/StoreFrontNavBar.tsx
+++ b/src/app/storefront/StoreFrontNavBar.tsx
@@ -134,6 +134,7 @@ export default function StoreFrontNavBar(props: {
key={type.id - 1}
value={type.name}
setFiltredProducts={setFilteredProducts}
+ id={type.id}
content={type.name}
setCategoryWord={setCategoryWord}
index={index + ind}
diff --git a/src/app/storefront/page.tsx b/src/app/storefront/page.tsx
index 480b4a53..235f97de 100644
--- a/src/app/storefront/page.tsx
+++ b/src/app/storefront/page.tsx
@@ -4,7 +4,7 @@ import React, { useEffect, useState } from 'react';
import Storefront from './storefrontItems';
import Footer from '../../components/FooterFolder/Footer';
-import { ShopAllText } from './styles';
+import { ShopAllText, Fullscreen } from './styles';
import { fetchUserProducts } from '../../api/supabase/queries/product_queries';
import { Product } from '../../schema/schema';
@@ -31,7 +31,7 @@ export default function App() {
}, []);
return (
-
+
Shop {CategoryWord}
-
+
);
}
diff --git a/src/app/storefront/productButtons.tsx b/src/app/storefront/productButtons.tsx
index 837d6042..5e84713a 100644
--- a/src/app/storefront/productButtons.tsx
+++ b/src/app/storefront/productButtons.tsx
@@ -13,20 +13,20 @@ import {
import { Product } from '../../schema/schema';
export default function ProductButtons(props: {
- key: number;
value: string;
setFiltredProducts: (category: Product[]) => void;
content: string;
setCategoryWord: (word: string) => void;
index: number;
+ id: number;
setClickedButton: (clicked: number) => void;
clickedButton: number;
}) {
const {
- key,
value,
content,
setFiltredProducts,
+ id,
setCategoryWord,
index,
setClickedButton,
@@ -89,7 +89,7 @@ export default function ProductButtons(props: {