1
- import { Text , Grid , Center , Button } from "@mantine/core" ;
1
+ import { createStyles , Text , Grid , Center , Button } from "@mantine/core" ;
2
2
import BaseButton from "@/src/components/baseButton" ;
3
3
import { VenteCard } from "@/src/components/productsComponents/mainProd2" ;
4
4
import Head from "next/head" ;
5
5
import { CardsCarousel } from "@/src/components/carousel" ;
6
6
import Image from "next/image" ;
7
7
import Link from "next/link" ;
8
8
9
+
10
+
11
+ const useStyles = createStyles ( ( theme ) => ( {
12
+ banner : {
13
+ marginTop : "20px" ,
14
+ color :"white" ,
15
+ width : "100%" ,
16
+ backgroundColor : "#5f594f" ,
17
+ height : "350px" ,
18
+ } ,
19
+ IcoText : {
20
+ fontWeight : "300" ,
21
+ letterSpacing : "1px" ,
22
+ marginLeft : "10px" ,
23
+ marginTop : '-20px' ,
24
+ } ,
25
+ bannerContent :{
26
+ margin :"5px auto" ,
27
+ width : "1000px"
28
+ }
29
+ } ) ) ;
30
+
31
+
32
+
33
+
34
+
9
35
const Events = ( { bestSelling } ) => {
36
+ const { classes, theme } = useStyles ( ) ;
10
37
11
38
const styles = {
12
39
select : {
@@ -17,14 +44,6 @@ const Events = ({ bestSelling }) => {
17
44
marginLeft : "10px" ,
18
45
fontWeight : "600" ,
19
46
} ,
20
- banner : {
21
- backgroundColor : "#ccc" ,
22
- height : "150px" ,
23
- } ,
24
- bannerContent : {
25
- width : "700px" ,
26
- margin : "20px auto"
27
- } ,
28
47
option : {
29
48
fontWeight : "600" ,
30
49
} ,
@@ -69,7 +88,7 @@ const Events = ({ bestSelling }) => {
69
88
</ Grid >
70
89
< Grid >
71
90
< Grid . Col sm = { 10 } offset = { 1 } md = { 5 } >
72
- < Image src = { "/VIT_D.jpg" } style = { { borderRadius : "32px" } } width = { 500 } height = { 380 } />
91
+ < Image src = { "/VIT_D.jpg" } style = { { borderRadius : "32px" } } objectFit = { "contain" } width = { 500 } height = { 380 } />
73
92
</ Grid . Col >
74
93
< Grid . Col style = { { margin : "50px" } } sm = { 10 } md = { 5 } >
75
94
< h2 > DÉCOUVREZ Les Vitamines D3 a plusieurs dosages </ h2 >
@@ -80,26 +99,32 @@ const Events = ({ bestSelling }) => {
80
99
</ Grid >
81
100
82
101
< Grid style = { { marginTop : "20px" } } >
83
- < Grid . Col style = { { paddingLeft : "50px " , display : "flex" , justifyContent :"center" , flexDirection : "column" } } offset = { 1 } sm = { 10 } md = { 5 } >
102
+ < Grid . Col style = { { paddingLeft : "30px " , display : "flex" , justifyContent :"center" , flexDirection : "column" } } offset = { 1 } sm = { 10 } md = { 5 } >
84
103
< h1 style = { { textTransform : "uppercase" } } > Apple Cider Complex< br /> Newgate </ h1 >
85
104
< p > lorem ipsum </ p >
86
105
< BaseButton link = { "/products/1" } text = { "Découvrir le produit" } />
87
106
</ Grid . Col >
88
107
< Grid . Col sm = { 10 } md = { 5 } >
89
- < Image src = { "/appl2.jpg" } width = { 500 } height = { 500 } />
108
+ < Image src = { "/appl2.jpg" } width = { 500 } height = { 500 } objectFit = { "contain" } />
90
109
</ Grid . Col >
91
110
</ Grid >
92
111
93
- < section styles = { styles . banner } >
94
- LA MAJORITÉ DE NOS PRODUITS SONT
95
- < Grid style = { styles . bannerContent } >
96
- < Grid . Col span = { 2 } > < Image src = { "/icon1.png" } width = { 180 } height = { 180 } /> < br /> SANS OGM</ Grid . Col >
97
- < Grid . Col span = { 2 } > < Image src = { "/icon2.png" } width = { 180 } height = { 180 } /> < br /> VÉGÉTALIEN</ Grid . Col >
98
- < Grid . Col span = { 2 } > < Image src = { "/icon3.png" } width = { 180 } height = { 180 } /> < br /> SANS GLUTEN</ Grid . Col >
99
- < Grid . Col span = { 2 } > < Image src = { "/icon4.png" } width = { 180 } height = { 180 } /> < br /> SANS PRODUITS LAITIERS</ Grid . Col >
100
- < Grid . Col span = { 2 } > < Image src = { "/icon1.png" } width = { 180 } height = { 180 } /> < br /> HALAL</ Grid . Col >
112
+ < section className = { classes . banner } >
113
+ < Center >
114
+ < h4 style = { { marginTop : "30px" } } >
115
+ LA MAJORITÉ DE NOS PRODUITS SONT
116
+ </ h4 >
117
+ </ Center >
118
+ < Center >
119
+ < Grid className = { classes . bannerContent } >
120
+ < Grid . Col span = { 2 } > < Image src = { "/icon1.png" } width = { 180 } height = { 180 } objectFit = { "contain" } /> < br /> < Center className = { classes . IcoText } > SANS OGM</ Center > </ Grid . Col >
121
+ < Grid . Col span = { 2 } > < Image src = { "/icon2.png" } width = { 180 } height = { 180 } objectFit = { "contain" } /> < br /> < Center className = { classes . IcoText } > VÉGÉTALIEN</ Center > </ Grid . Col >
122
+ < Grid . Col span = { 2 } > < Image src = { "/icon3.png" } width = { 180 } height = { 180 } objectFit = { "contain" } /> < br /> < Center className = { classes . IcoText } > SANS GLUTEN</ Center > </ Grid . Col >
123
+ < Grid . Col span = { 2 } > < Image src = { "/icon4.png" } width = { 180 } height = { 180 } objectFit = { "contain" } /> < br /> < Center className = { classes . IcoText } > SANS PRODUITS LAITIERS</ Center > </ Grid . Col >
124
+ < Grid . Col span = { 2 } > < Image src = { "/icon1.png" } width = { 180 } height = { 180 } objectFit = { "contain" } /> < br /> < Center className = { classes . IcoText } > HALAL</ Center > </ Grid . Col >
101
125
</ Grid >
102
- </ section >
126
+ </ Center >
127
+ </ section >
103
128
104
129
< section style = { { margin : "40px 0" , textTransform : "uppercase" } } >
105
130
< Center > < h2 > Découvrez nos offres du moment</ h2 > </ Center >
0 commit comments