Преглед на файлове

add header navbar, fix social media arrangement

master
azri преди 1 седмица
родител
ревизия
1fee86bf1e

+ 1
- 1
src/components/Header/Header.jsx Целия файл

@@ -29,7 +29,7 @@ const headerStyle = createStyles({
29 29
 const Header = () => {
30 30
 
31 31
     return (
32
-        <Container sx={{display:"none"}}>
32
+        <Container>
33 33
             <Box sx={{color:"white", px:23}}>
34 34
                 <Box sx={{display:"flex", gap:1}}>
35 35
                     <InstagramIcon style={headerStyle.icon} />

+ 1
- 1
src/components/Navbar/Navbar.jsx Целия файл

@@ -282,7 +282,7 @@ const Navbar = () => {
282 282
       >
283 283
 
284 284
         {/* Conditionally render the Header */}
285
-        {/* {showHeader && <Header />} */}
285
+        {showHeader && <Header />}
286 286
 
287 287
         <Toolbar sx={{
288 288
           px: {

+ 8
- 1
src/components/NewsLetter/NewsLetter.jsx Целия файл

@@ -33,7 +33,14 @@ const NewsLetter = () => {
33 33
         }}
34 34
       >
35 35
 
36
-        <Box sx={{ width: {xs:"80%", md:"35%"}, backgroundColor: "rgba(255,255,255, 0.5)", padding: 10, textAlign:"center", color:"black" }}>
36
+        <Box sx={{ 
37
+          width: {xs:"80%", md:"40%"}, 
38
+          backgroundColor: "rgba(255,255,255, 0.5)", 
39
+          px: 15,
40
+          py: 10,
41
+          textAlign:"center", 
42
+          color:"black" 
43
+        }}>
37 44
 
38 45
           <Typography variant='h3'>
39 46
             Let's Stay in touch

+ 17
- 3
src/components/ProductSelected/ProductSelected.jsx Целия файл

@@ -26,7 +26,7 @@ const ProductSelected = () => {
26 26
       //sort
27 27
       selectedProducts = selectedProducts.sort((a, b) => new Date(b.createdAt) - new Date(a.createdAt));
28 28
       setFilterProducts(selectedProducts)
29
-      
29
+
30 30
     }
31 31
 
32 32
   }, [products])
@@ -73,11 +73,25 @@ const ProductSelected = () => {
73 73
               }}
74 74
             />
75 75
 
76
-            <Button sx={{ position: "absolute", top: 20, left: 20, boxShadow: 0 }} variant="contained">
76
+            <Button sx={{ 
77
+              position: "absolute", 
78
+              top:{
79
+                xs:0,
80
+                sm:0,
81
+                md:20
82
+              }, 
83
+              left: {
84
+                xs:0,
85
+                sm:0,
86
+                md:20
87
+              }, 
88
+              boxShadow: 0,
89
+              fontSize:10
90
+            }} variant="contained">
77 91
               NEW
78 92
             </Button>
79 93
 
80
-            <Box sx={{ pb: 5, pt: 3 }}>
94
+            <Box sx={{ pt: 3 }}>
81 95
               <Typography variant="body1" sx={{ fontWeight: "400", mb: 1 }}>
82 96
                 {collection_name}
83 97
               </Typography>

+ 1
- 1
src/components/SocialMedia/SocialMedia.jsx Целия файл

@@ -15,7 +15,7 @@ const SocialMedia = () => {
15 15
     <Box
16 16
       sx={{
17 17
         display: 'flex',
18
-        flexDirection: { xs: 'column', sm: 'row' }, // Stack on small screens
18
+        flexDirection: 'row', // Stack on small screens
19 19
         justifyContent: 'center',
20 20
         gap: 8,
21 21
         padding: 2,

+ 2
- 2
src/pages/Home.jsx Целия файл

@@ -41,7 +41,7 @@ const Home = () => {
41 41
       </Box>
42 42
 
43 43
       <VideoAds width={"100%"} height={{
44
-        xs: 350,
44
+        xs: 250,
45 45
         md: 500,
46 46
         lg: 750,
47 47
       }} />
@@ -59,7 +59,7 @@ const Home = () => {
59 59
         }
60 60
       }}>
61 61
 
62
-        <Box sx={{ flexGrow: 1, mt: 10 }}>
62
+        <Box sx={{ flexGrow: 1, mt: 5 }}>
63 63
           <Grid container spacing={2}>
64 64
             <Grid size={12}>
65 65
               <ProductType title={'CLOTHING'} link={'/collection/clothing'} img_url={AmberClothing}/>

Loading…
Отказ
Запис