-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkspaceCollections.tsx
More file actions
59 lines (57 loc) · 1.93 KB
/
Copy pathWorkspaceCollections.tsx
File metadata and controls
59 lines (57 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import * as React from 'react';
import Link from 'next/link';
import {DecorativeImage} from './DecorativeImage';
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',
},
];
export const WorkspaceCollections = () => {
return (
<>
<section className="flex justify-center items-center flex-col pb-20 sm:pb-40 lg:pb-48 relative w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="sm:flex-row flex-col flex justify-between items-center h-8 w-full mb-2">
<h2 className="text-xl md:text-3xl text-black font-bold">
Home & Focus collections
</h2>
</div>
<section className="grid grid-cols-1 sm:grid-cols-3 gap-x-4 grid-rows-1 w-full">
{List.map(({src, category, name, link}, i) => (
<Link href={link} passHref>
<a
className={`${i == 2 &&
'hidden sm:flex'} flex mt-6 flex-col justify-center items-center w-full h-full relative z-10`}
>
<DecorativeImage
src={src}
className="w-[320px] sm:w-full rounded overflow-hidden aspect-square"
/>
<div className="flex flex-col justify-center items-center sm:items-start pt-4 w-full relative z-20">
<span className="text-sm text-gray-600">{category}</span>
<span className="text-base text-black font-semibold">
{name}
</span>
</div>
</a>
</Link>
))}
</section>
</section>
</>
);
};