File tree 4 files changed +67
-63
lines changed
4 files changed +67
-63
lines changed Original file line number Diff line number Diff line change 1
- const AboutClientSingle = ( { clients } ) => {
1
+ const AboutClientSingle = ( { title , image } ) => {
2
2
return (
3
3
< >
4
- { clients . map ( ( client ) => (
5
- < img
6
- src = { client . img }
7
- className = "w-64 py-5 px-10 border bg-secondary-light border-ternary-light dark:border-ternary-dark shadow-sm rounded-xl mb-8 cursor-pointer"
8
- alt = { client . title }
9
- />
10
- ) ) }
4
+ < img
5
+ src = { image }
6
+ className = "w-64 py-5 px-10 border bg-secondary-light border-ternary-light dark:border-ternary-dark shadow-sm rounded-xl mb-8 cursor-pointer"
7
+ alt = { title }
8
+ />
11
9
</ >
12
10
) ;
13
11
} ;
Original file line number Diff line number Diff line change 1
- import AmazonImage from '../images/brands/amazon_gray.png' ;
2
- import SonyImage from '../images/brands/sony_gray.png' ;
3
- import AdidasImage from '../images/brands/adidas_gray.png' ;
4
- import FilaImage from '../images/brands/fila_gray.png' ;
5
- import NBImage from '../images/brands/nb_gray.png' ;
6
- import SamsungImage from '../images/brands/samsung_gray.png' ;
7
- import CanonImage from '../images/brands/canon_gray.png' ;
8
- import PumaImage from '../images/brands/puma_gray.png' ;
9
1
import AboutClientSingle from './AboutClientSingle' ;
10
-
11
- const clientsHeading = 'Some of the brands I worked with' ;
12
- const clientsData = [
13
- {
14
- id : 1 ,
15
- title : 'Amazon' ,
16
- img : AmazonImage ,
17
- } ,
18
- {
19
- id : 2 ,
20
- title : 'Sony' ,
21
- img : SonyImage ,
22
- } ,
23
- {
24
- id : 3 ,
25
- title : 'Adidas' ,
26
- img : AdidasImage ,
27
- } ,
28
- {
29
- id : 4 ,
30
- title : 'FILA' ,
31
- img : FilaImage ,
32
- } ,
33
- {
34
- id : 5 ,
35
- title : 'NB' ,
36
- img : NBImage ,
37
- } ,
38
- {
39
- id : 6 ,
40
- title : 'SAMSUNG' ,
41
- img : SamsungImage ,
42
- } ,
43
- {
44
- id : 7 ,
45
- title : 'CANON' ,
46
- img : CanonImage ,
47
- } ,
48
- {
49
- id : 7 ,
50
- title : 'PUMA' ,
51
- img : PumaImage ,
52
- } ,
53
- ] ;
2
+ import { ClientsData , ClientsHeading } from '../utils/ClientsData' ;
54
3
55
4
const AboutClients = ( ) => {
56
5
return (
57
6
< div className = "mt-10 sm:mt-20" >
58
7
< p className = "text-2xl sm:text-4xl text-primary-dark dark:text-primary-light font-sans font-semibold" >
59
- { clientsHeading }
8
+ { ClientsHeading }
60
9
</ p >
61
10
< div className = "grid grid-cols-2 sm:grid-cols-4 mt-10 sm:mt-20 gap-2" >
62
- < AboutClientSingle clients = { clientsData } />
11
+ { ClientsData . map ( ( client ) => (
12
+ < AboutClientSingle
13
+ title = { client . title }
14
+ image = { client . img }
15
+ key = { client . id }
16
+ />
17
+ ) ) }
63
18
</ div >
64
19
</ div >
65
20
) ;
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ const HireMeModal = ({ onClose, onRequest }) => {
91
91
rounded-md
92
92
sm:rounded-lg
93
93
focus:ring-1 focus:ring-indigo-900"
94
- type = "button"
95
94
aria-label = "Submit Request"
96
95
>
97
96
Send Request
Original file line number Diff line number Diff line change
1
+ import AmazonImage from '../images/brands/amazon_gray.png' ;
2
+ import SonyImage from '../images/brands/sony_gray.png' ;
3
+ import AdidasImage from '../images/brands/adidas_gray.png' ;
4
+ import FilaImage from '../images/brands/fila_gray.png' ;
5
+ import NBImage from '../images/brands/nb_gray.png' ;
6
+ import SamsungImage from '../images/brands/samsung_gray.png' ;
7
+ import CanonImage from '../images/brands/canon_gray.png' ;
8
+ import PumaImage from '../images/brands/puma_gray.png' ;
9
+
10
+ export const ClientsHeading = 'Some of the brands I worked with' ;
11
+ export const ClientsData = [
12
+ {
13
+ id : 1 ,
14
+ title : 'Amazon' ,
15
+ img : AmazonImage ,
16
+ } ,
17
+ {
18
+ id : 2 ,
19
+ title : 'Sony' ,
20
+ img : SonyImage ,
21
+ } ,
22
+ {
23
+ id : 3 ,
24
+ title : 'Adidas' ,
25
+ img : AdidasImage ,
26
+ } ,
27
+ {
28
+ id : 4 ,
29
+ title : 'FILA' ,
30
+ img : FilaImage ,
31
+ } ,
32
+ {
33
+ id : 5 ,
34
+ title : 'NB' ,
35
+ img : NBImage ,
36
+ } ,
37
+ {
38
+ id : 6 ,
39
+ title : 'SAMSUNG' ,
40
+ img : SamsungImage ,
41
+ } ,
42
+ {
43
+ id : 7 ,
44
+ title : 'CANON' ,
45
+ img : CanonImage ,
46
+ } ,
47
+ {
48
+ id : 7 ,
49
+ title : 'PUMA' ,
50
+ img : PumaImage ,
51
+ } ,
52
+ ] ;
You can’t perform that action at this time.
0 commit comments