From 3a3a4734778267b246edd543b1368e2ca3deb53f Mon Sep 17 00:00:00 2001 From: Brunoocal Date: Mon, 6 Jun 2022 15:16:33 -0300 Subject: [PATCH] Links at homepage now are clickeable --- components/Categories.tsx | 8 +++++--- components/ClothingFavorites.tsx | 8 +++++--- components/Hero.tsx | 2 +- components/Tiles.tsx | 17 ++++++++++------- components/WorkspaceCollections.tsx | 7 +++++-- components/WorkspaceFavorites.tsx | 8 +++++--- pages/category/index.tsx | 3 +++ pages/index.tsx | 2 +- 8 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 pages/category/index.tsx diff --git a/components/Categories.tsx b/components/Categories.tsx index d16ded1..6fbf0ba 100644 --- a/components/Categories.tsx +++ b/components/Categories.tsx @@ -36,9 +36,11 @@ export const Categories = () => {

Shop by Category

- - Browse all categories - + + + Browse all categories + +
{List.map(({landing, name, big}, i) => { diff --git a/components/ClothingFavorites.tsx b/components/ClothingFavorites.tsx index 8081e6d..9c1582b 100644 --- a/components/ClothingFavorites.tsx +++ b/components/ClothingFavorites.tsx @@ -23,9 +23,11 @@ export const ClothingFavorites = () => {

Get to know our favorite items

- - Browse all categories - + + + Browse all categories + +
{list && diff --git a/components/Hero.tsx b/components/Hero.tsx index 374e223..199f0a3 100644 --- a/components/Hero.tsx +++ b/components/Hero.tsx @@ -49,7 +49,7 @@ export const Hero = () => { - + + + +
diff --git a/components/WorkspaceCollections.tsx b/components/WorkspaceCollections.tsx index 1fe4bf5..f196b91 100644 --- a/components/WorkspaceCollections.tsx +++ b/components/WorkspaceCollections.tsx @@ -7,16 +7,19 @@ const List = [ name: 'Work from home accesories', category: 'Desk and office', src: '/home.png', + link: '/category/Workspace', }, { name: 'Journals and self-improving', category: 'Self-Improvement', src: '/journals.png', + link: '/category/Workspace', }, { name: 'Daily commute essentials', category: 'Travel', src: '/travel.png', + link: '/category/Accesories', }, ]; @@ -30,8 +33,8 @@ export const WorkspaceCollections = () => {
- {List.map(({src, category, name}, i) => ( - + {List.map(({src, category, name, link}, i) => ( + {

Bring the most productivity

- - Browse all products - + + + Browse all categories + +
{List.map(({colors, name, price, src}, i) => ( diff --git a/pages/category/index.tsx b/pages/category/index.tsx new file mode 100644 index 0000000..0bd6012 --- /dev/null +++ b/pages/category/index.tsx @@ -0,0 +1,3 @@ +export default function AllCategoriesPage({header}) { + return <>{header}; +} diff --git a/pages/index.tsx b/pages/index.tsx index 9dd2d77..4137b5c 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -17,7 +17,7 @@ const IndexPage = ({header}) => ( desc="We're commited to responsible, sustainable, ethical and ecological manufacturing. Our small scale approach allows us to focus on quality rather than quantity and improve your product. We're doing our best every day to delay the inevitable death of the universe." button={{ text: 'Shop Collection', - link: '/', + link: '/category/New Arrivals', }} bgColor="bg-emerald-900" bgOpacity="opacity-50"