Browse Source

change image on home page

master
azri 1 month ago
parent
commit
57a017d983

BIN
src/assets/images/amberBeautyWallpaper.webp View File


BIN
src/assets/images/amberClothing.jpg View File


BIN
src/assets/images/amberClothing.webp View File


BIN
src/assets/images/amberHomeWallpaper.webp View File


+ 2
- 2
src/components/ProductType/ProductType.jsx View File

@@ -8,7 +8,7 @@ const ProductType = ({ title, img_url }) => {
8 8
         position: 'relative',
9 9
         width: '100%',
10 10
         height: 0,
11
-        paddingTop: '600px', // This sets the height based on top padding
11
+        paddingTop: '700px', // This sets the height based on top padding
12 12
         backgroundImage: `url(${img_url})`,
13 13
         overflow: 'hidden',
14 14
         backgroundSize: 'cover',
@@ -22,7 +22,7 @@ const ProductType = ({ title, img_url }) => {
22 22
           left: 0,
23 23
           width: '100%',
24 24
           height: '100%',
25
-          backgroundColor: 'rgba(0, 0, 0, 0.5)', // Filter overlay
25
+          backgroundColor: 'rgba(0, 0, 0, 0.3)', // Filter overlay
26 26
           display: 'flex',
27 27
           flexDirection: 'column',
28 28
           justifyContent: 'center',

+ 3
- 0
src/index.js View File

@@ -18,6 +18,8 @@ import '@fontsource/roboto/700.css';
18 18
 
19 19
 // JS MODULE STUFF
20 20
 
21
+import Maintainance from './pages/Maintainance';
22
+
21 23
 /**
22 24
  * NOTE: Dear future programmer of this project, before you judge me on how fucked up this codebase is, I already take everything into consideration and 
23 25
  * this code is really the most spegatthi that you'll ever seen, I only have 2 weeks to figure everything out
@@ -31,6 +33,7 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
31 33
 root.render(
32 34
   <Provider store={store}>
33 35
     <App />
36
+    {/* <Maintainance/> */}
34 37
   </Provider>
35 38
 );
36 39
 

+ 3
- 3
src/pages/Home.jsx View File

@@ -10,9 +10,9 @@ import VideoAds from '../components/VideoAds'
10 10
 import ProductType from '../components/ProductType';
11 11
 import NewsLetter from '../components/NewsLetter';
12 12
 import ProductService from "../services/ProductService"
13
-import AmberHomeWallpaper from "../assets/images/titleBg.jpg";
14
-import AmberBeautyWallpaper from "../assets/images/amberBeautyWallpaper.jpg";
15
-import AmberClothing from "../assets/images/amberClothing.jpg"
13
+import AmberHomeWallpaper from "../assets/images/amberHomeWallpaper.webp";
14
+import AmberBeautyWallpaper from "../assets/images/amberBeautyWallpaper.webp";
15
+import AmberClothing from "../assets/images/amberClothing.webp"
16 16
 
17 17
 const Home = () => {
18 18
 

+ 17
- 0
src/pages/Maintainance.jsx View File

@@ -0,0 +1,17 @@
1
+import React from 'react'
2
+import { Box } from '@mui/material'
3
+
4
+const Maintainance = () => {
5
+    return (
6
+        <Box
7
+            sx={{
8
+                height:"100vh",
9
+                width:"100%",
10
+                backgroundColor:"red"
11
+            }}
12
+        >
13
+        </Box>
14
+    )
15
+}
16
+
17
+export default Maintainance

Loading…
Cancel
Save