Skip to content

Commit d431952

Browse files
committed
asdf
1 parent 67c48f2 commit d431952

File tree

13 files changed

+153
-64
lines changed

13 files changed

+153
-64
lines changed

pages/cart.js

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ const useStyles = createStyles((theme) => ({
2727
badge: {
2828
color: theme.colors.teal[9],
2929
},
30+
btnClear: {
31+
backgroundImage: `linear-gradient(135deg, ${theme.colors.teal[4]} 0%, ${theme.colors.teal[4]} 100%)`,
32+
}
3033
}));
3134

3235
const Cart = () => {
@@ -44,7 +47,6 @@ const Cart = () => {
4447
},
4548
buttonClear: {
4649
padding: " 4px 20px",
47-
backgroundColor: "transparent",
4850
textDecoration: "none",
4951
color: "white",
5052
border: "none",
@@ -176,18 +178,20 @@ const Cart = () => {
176178
<br />
177179
<Badge className={classes.badge}>+ prix de livraison</Badge>
178180
</Center>
181+
<div style={{display: "flex", justifyContent: "flex-end", marginRight: "50px"}}>
179182
<Button className={classes.button}>
180-
<button style={styles.buttonClear} onClick={handleClear}>
183+
<button style={styles.buttonClear} className={classes.btnClear} onClick={handleClear}>
181184
<IconTrashXFilled />
182185
vider le panier
183186
</button>
184187
</Button>
188+
</div>
185189

186190
<form
187191
action="https://formsubmit.co/[email protected]"
188192
method="POST"
189193
>
190-
<Grid>
194+
<Grid style={{margin: "2px auto", width: "800px"}}>
191195
<Grid.Col md={4}>
192196
<Text style={{ display: "inline" }}>
193197
Nom: <span style={{ color: "red" }}>*</span>
@@ -211,14 +215,6 @@ const Cart = () => {
211215
/>
212216
<input type="hidden" name="_next" value="https://ambinternationale.com" />
213217
</Grid.Col>
214-
<Grid.Col md={4}>
215-
<Text style={{ display: "inline" }}>Email:</Text>
216-
<input
217-
type="email"
218-
name="email"
219-
style={{ margin: "8px", padding: "8px", borderRadius: "5px" }}
220-
/>
221-
</Grid.Col>
222218
<Grid.Col md={4}>
223219
<Text style={{ display: "inline" }}>
224220
Addresse: <span style={{ color: "red" }}>*</span>
@@ -230,6 +226,14 @@ const Cart = () => {
230226
style={{ margin: "8px", padding: "8px", borderRadius: "5px" }}
231227
/>
232228
</Grid.Col>
229+
<Grid.Col md={4}>
230+
<Text style={{ display: "inline" }}>Email:</Text>
231+
<input
232+
type="email"
233+
name="email"
234+
style={{ margin: "8px", padding: "8px", borderRadius: "5px" }}
235+
/>
236+
</Grid.Col>
233237
</Grid>
234238
<input type="hidden" name="_subject" value="New Order!" />
235239
<input type="hidden" name="cart" value={JSON.stringify(cart)} />

pages/discover/index.js

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Text, Grid, Center, Button} from "@mantine/core";
2+
import BaseButton from "@/src/components/baseButton";
23
import { VenteCard } from "@/src/components/productsComponents/mainProd2";
34
import Head from "next/head";
45
import { CardsCarousel } from "@/src/components/carousel";
@@ -34,7 +35,7 @@ const Events = ({ bestSelling }) => {
3435
fontSize: "18px"
3536
},
3637
wrapper: {
37-
margin: "0 15px"
38+
margin: "10px 55px"
3839
}
3940
}
4041

@@ -55,7 +56,7 @@ const Events = ({ bestSelling }) => {
5556
<div>
5657
<CardsCarousel />
5758
<div style={styles.wrapper}>
58-
<h1>Meilleurs Ventes</h1>
59+
<h2 style={{marginTop: "20px", color: "#937b44"}}>NOS MEILLEURS VENTES</h2>
5960
<Grid style={{padding: "30px" }}>
6061
{bestSelling &&
6162
bestSelling.map((product) => {
@@ -70,18 +71,19 @@ const Events = ({ bestSelling }) => {
7071
<Grid.Col sm={10} offset={1} md={5}>
7172
<Image src={"/VIT_D.jpg"} style={{borderRadius: "32px"}} width={500} height={380} />
7273
</Grid.Col>
73-
<Grid.Col sm={10} md={5}>
74-
<h1>DÉCOUVREZ Les Vitamines D3 a plusieurs dosages </h1>
74+
<Grid.Col style={{margin: "50px"}} sm={10} md={5}>
75+
<h2>DÉCOUVREZ Les Vitamines D3 a plusieurs dosages </h2>
7576
<p>Dosée à 500,1000,4000,50.000 UI par comprimé, elles est très agréable à utiliser au quotidien. La vitamine D contribue au fonctionnement normal du système immunitaire. Elles contribue également à maintenir une ossature et une fonction musculaire normale.</p>
76-
<Link href={"/products/d3"}>Découvrir le produit</Link>
77+
<Link href={"/products/d3"}></Link>
78+
<BaseButton link={"/products/d3"} text={"Découvrir le produit"} />
7779
</Grid.Col>
7880
</Grid>
7981

80-
<Grid>
81-
<Grid.Col offset={1} sm={10} md={5}>
82-
<h1>apple cider complex newgate </h1>
82+
<Grid style={{marginTop: "20px"}}>
83+
<Grid.Col style={{paddingLeft: "50px",display: "flex", justifyContent:"center", flexDirection: "column"}} offset={1} sm={10} md={5}>
84+
<h1 style={{textTransform: "uppercase"}}>Apple Cider Complex<br /> Newgate </h1>
8385
<p>lorem ipsum </p>
84-
<Link href={"/products/1"}>Découvrir le produit</Link>
86+
<BaseButton link={"/products/1"} text={"Découvrir le produit"} />
8587
</Grid.Col>
8688
<Grid.Col sm={10} md={5}>
8789
<Image src={"/appl2.jpg"} width={500} height={500} />
@@ -99,23 +101,28 @@ const Events = ({ bestSelling }) => {
99101
</Grid>
100102
</section>
101103

102-
<Center> <h1>Découvrez nos offres du moment</h1> </Center>
104+
<section style={{margin: "40px 0", textTransform: "uppercase"}}>
105+
<Center> <h2>Découvrez nos offres du moment</h2> </Center>
103106
<Center> <Text>Profitez de nos promotions pour essayer quelque chose de nouveau!</Text> </Center>
104-
107+
</section>
105108
<Grid>
106-
<Grid.Col style={{border: "1px solid #ccc"}} offset={1} sm={10} md={4}>
109+
<Grid.Col style={{border: "1px solid #ccc", padding: "40px"}} offset={1} sm={10} md={4}>
107110
<Center>
108111
<Image src={"/NG.jpg"} width={350} height={350} />
109-
</Center>
110-
<h1>DISPONNIBLE DANS LES PHARMACIES </h1>
112+
</Center>
113+
<Center>
114+
<h3 style={{textAlign: "center"}}>DISPONNIBLE DANS LES PHARMACIES </h3>
115+
</Center>
111116
</Grid.Col>
112-
<Grid.Col style={{border: "1px solid #ccc"}} offset={1} sm={10} md={4}>
117+
<Grid.Col style={{border: "1px solid #ccc", padding: "40px"}} offset={1} sm={10} md={4}>
113118
<Center>
114119
<Image src={"/az3.jpg"} width={350} height={350} />
115-
</Center>
116-
<h1>nos Meilleurs ventes</h1>
120+
</Center>
121+
<div style={{textAlign: "Center"}}>
122+
<h3 style={{textTransform: "uppercase", marginTop:"10px"}}>nos Meilleurs ventes</h3>
117123
<Text>Découvrez vos produits préférés dès maintenant sur notre site</Text>
118-
<Link href={"/products/8"}>Découvrir</Link>
124+
<BaseButton link={"/products/8"} text={"Découvrir"} />
125+
</div>
119126
</Grid.Col>
120127
</Grid>
121128
</div>

pages/products/[id].js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { FaqWithBg } from "@/src/components/productsComponents/fqa";
77
import { useDisclosure } from '@mantine/hooks';
88
import { Modal } from '@mantine/core';
99
import Head from "next/head";
10+
import AgrandirImg from "@/src/components/ProdImgAgr";
1011

1112
const useStyles = createStyles((theme) => ({
1213
kbd: {
@@ -26,7 +27,6 @@ const useStyles = createStyles((theme) => ({
2627
}))
2728
const Product = ({ id, data, similarProds }) => {
2829
const [opened, { open, close }] = useDisclosure(false);
29-
const [ImgOpened, { ImgOpen, ImgClose }] = useDisclosure(false);
3030

3131
const styles={
3232
button: {
@@ -108,15 +108,7 @@ const Product = ({ id, data, similarProds }) => {
108108
<Grid gutter={{ base: 2 }}>
109109

110110
<Grid.Col sm={12} md={4} offset={1} span={"auto"} >
111-
<Center style={{padding: "10px", display: "block", paddingBottom: "0"}}>
112-
<Image src={image} height={250} width={300} alt="just iamge" style={{objectFit: "contain"}}/>
113-
</Center>
114-
115-
<Modal opened={ImgOpened} onClose={ImgClose} withCloseButton={false}>
116-
sdfasd
117-
<Image src={image} height={350} width={400} alt="just iamge" style={{objectFit: "contain"}}/>
118-
</Modal>
119-
<Button className={classes.button} onClick={ImgOpen} style={styles.buttonWrapper}>Agrandir</Button>
111+
<AgrandirImg image={image}/>
120112
</Grid.Col>
121113

122114
<Grid.Col md={6}>

src/components/MainImg.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const useStyles = createStyles((theme) => ({
6565

6666
control: {
6767
color: "white",
68+
textTransform: "uppercase",
6869
height: rem(42),
6970
lineHeight: rem(42),
7071
fontSize: theme.fontSizes.md,
@@ -102,7 +103,7 @@ function MainImg() {
102103
<div className={classes.inner}>
103104
<div className={classes.controls}>
104105
<Button onClick={ScrollDown} className={classes.control} size="lg">
105-
DECOUVRIR
106+
Découvrir
106107
</Button>
107108
</div>
108109
</div>

src/components/ProdImgAgr.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import Image from 'next/image';
2+
import { useDisclosure } from '@mantine/hooks';
3+
import { Modal } from '@mantine/core';
4+
import { Button, createStyles, Title, Center } from '@mantine/core';
5+
6+
7+
const useStyles = createStyles((theme) => ({
8+
title: {
9+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
10+
},
11+
}));
12+
13+
14+
export default function AgrandirImg({image}) {
15+
const [opened, { open, close }] = useDisclosure(false);
16+
17+
const styles={
18+
button: {
19+
padding: "18px",backgroundColor: "transparent", textDecoration: "none",color: "white", border: "none",
20+
fontWeight: "bold"
21+
},
22+
buttonWrapper: {
23+
margin: "5px",
24+
padding: 0
25+
},
26+
wrapper: {
27+
margin: "20px auto",
28+
}
29+
}
30+
const {classes} = useStyles();
31+
return (
32+
<>
33+
<Center style={{padding: "10px", display: "block", paddingBottom: "0"}}>
34+
<Image src={image} height={250} width={300} alt="just iamge" style={{objectFit: "contain"}}/>
35+
</Center>
36+
37+
<Modal opened={opened} onClose={close} withCloseButton={false}>
38+
<Image src={image} height={350} width={400} alt="just iamge" style={{objectFit: "contain"}}/>
39+
</Modal>
40+
41+
<Button className={classes.button} onClick={open} >Agrandir</Button>
42+
</>
43+
);
44+
}
45+
46+

src/components/banner.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const useStyles = createStyles((theme) => ({
2929
paddingLeft: theme.spacing.md,
3030
paddingRight: theme.spacing.md,
3131
color: theme.white,
32-
marginBottom: theme.spacing.xs,
3332
textAlign: 'center',
3433
fontFamily: `Greycliff CF, ${theme.fontFamily}`,
3534

@@ -88,16 +87,15 @@ const useStyles = createStyles((theme) => ({
8887
alignItems: "center"
8988
},
9089
IconWrapper: {
91-
9290
color: "white",
9391
textAlign: "center",
94-
9592
},
9693
Icon:{
9794
broderRadius: "50%",
9895
},
9996
IconText:{
10097
marginTop: "-35px",
98+
fontWeight:"700"
10199
},
102100
secondaryControl: {
103101
color: theme.white,
@@ -127,15 +125,15 @@ export default function Banner() {
127125
</div>
128126
<div className={classes.IconWrapper}>
129127
<div ><Image className={classes.Icon} src={"/icon2.png"} width={250} height={250} /></div>
130-
<p className={classes.IconText}>Beaute</p>
128+
<p className={classes.IconText}>Beauté</p>
131129
</div>
132130
<div className={classes.IconWrapper}>
133131
<div ><Image className={classes.Icon} src={"/icon1.png"} width={250} height={250} /></div>
134-
<p className={classes.IconText}>Defenses Immunitaires</p>
132+
<p className={classes.IconText}>Défenses immunitaires</p>
135133
</div>
136134
<div className={classes.IconWrapper}>
137135
<div ><Image className={classes.Icon} src={"/icon4.png"} width={250} height={250} /></div>
138-
<p className={classes.IconText}>Energie</p>
136+
<p className={classes.IconText}>Énergie</p>
139137
</div>
140138
</div>
141139
</div>

src/components/baseButton.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { createStyles} from '@mantine/core';
2+
import Link from 'next/link';
3+
4+
const useStyles = createStyles((theme) => ({
5+
Link: {
6+
textDecoration: "none",
7+
color: "white",
8+
backgroundColor: "black",
9+
fontWeight: "bold",
10+
textTransform: "uppercase",
11+
padding: "15px 40px",
12+
},
13+
}));
14+
15+
export default function BaseButton({ link, text}) {
16+
const { classes } = useStyles();
17+
18+
return (
19+
<>
20+
<div style={{marginLeft: "15px", marginTop: "20px"}}>
21+
<Link className={classes.Link} href={link}>{text}</Link>
22+
</div>
23+
</>
24+
);
25+
}

src/components/carousel.js

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Carousel } from '@mantine/carousel';
22
import { useMediaQuery } from '@mantine/hooks';
3-
import { createStyles, Paper, Text, Title, Button, useMantineTheme, rem } from '@mantine/core';
4-
import Link from 'next/link';
3+
import { createStyles, Paper, useMantineTheme, rem } from '@mantine/core';
4+
import BaseButton from './baseButton';
55

66
const useStyles = createStyles((theme) => ({
77
card: {
@@ -13,7 +13,22 @@ const useStyles = createStyles((theme) => ({
1313
backgroundSize: 'cover',
1414
backgroundPosition: 'center',
1515
},
16-
16+
CarouselTxtWrapper: {
17+
marginLeft: "150px",
18+
marginTop: "60px",
19+
},
20+
CarouselText: {
21+
fontWeight: "1000",
22+
fontSize: "2rem",
23+
lineHeight: "32px",
24+
textTransform: "uppercase",
25+
letterSpacing: "2px",
26+
color: `${theme.colors.teal[9]}`,
27+
},
28+
button: {
29+
lineHeight: "52px",
30+
marginTop: "20px",
31+
},
1732
title: {
1833
fontFamily: `Greycliff CF, ${theme.fontFamily}`,
1934
fontWeight: 900,
@@ -43,10 +58,9 @@ function Card({ image, title}) {
4358
sx={{ backgroundImage: `url(${image})` }}
4459
className={classes.card}
4560
>
46-
<div>
47-
{/* <Title order={3} className={classes.title}> {title} </Title>*/}
48-
<h3 className={classes.CarouselText}>renforcer votre<br />immunite avec newgate</h3>
49-
<Link className={classes.CarouselBtn} href={"/products"}>je decouvre</Link>
61+
<div className={classes.CarouselTxtWrapper}>
62+
<h3 className={classes.CarouselText}>renforcer votre<br />immunité avec newgate</h3>
63+
<BaseButton link={"/products"} className={classes.button} text={"je découvre"} />
5064
</div>
5165
</Paper>
5266
);

0 commit comments

Comments
 (0)