Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hummartapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Ameen
hummartapp
Commits
e9052784
Commit
e9052784
authored
May 17, 2022
by
Muhammad Ameen
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Header complete with responsive
parent
e9842750
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
110 additions
and
17 deletions
+110
-17
Carousel.js
src/Components/Carousel/Carousel.js
+16
-8
Carousel.module.css
src/Components/Carousel/Carousel.module.css
+0
-0
Carousel.module.scss
src/Components/Carousel/Carousel.module.scss
+18
-0
dummyData.js
src/Helper/dummyData.js
+14
-2
Home.js
src/Screens/Home/Home.js
+24
-7
Home.module.scss
src/Screens/Home/Home.module.scss
+38
-0
20_discount.jpeg
src/assets/images/20_discount.jpeg
+0
-0
bestPrice.jpg
src/assets/images/bestPrice.jpg
+0
-0
fruitAndVegetables.jpeg
src/assets/images/fruitAndVegetables.jpeg
+0
-0
mart_inner.jpeg
src/assets/images/mart_inner.jpeg
+0
-0
prayerMat.jpg
src/assets/images/prayerMat.jpg
+0
-0
No files found.
src/Components/Carousel/Carousel.js
View file @
e9052784
...
...
@@ -2,18 +2,26 @@ import React from "react";
import
carouselImg
from
"../../assets/images/offer.jpg"
;
import
{
Carousel
}
from
"react-bootstrap"
;
import
{
carouselData
}
from
"../../Helper/dummyData"
;
import
style
from
"./Carousel.module.scss"
const
MainCarousel
=
()
=>
{
return
(
<>
<
Carousel
variant
=
"dark"
>
<
Carousel
variant
=
"dark"
controls
=
{
false
}
indicators
=
{
false
}
className
=
{
`
${
style
.
carousel
}
`
}
interval
=
{
3000
}
>
{
carouselData
?.
map
((
item
,
inndex
)
=>
{
return
(
<
Carousel
.
Item
>
<
img
className
=
"d-block w-100"
src
=
{
carouselImg
}
alt
=
"First slide"
/>
<
Carousel
.
Caption
>
<
h5
>
First
slide
label
<
/h5
>
<
p
>
Nulla
vitae
elit
libero
,
a
pharetra
augue
mollis
interdum
.
<
/p
>
<
/Carousel.Caption
>
<
img
className
=
{
`d-block w-100
${
style
.
image
}
`
}
src
=
{
item
?.
image
}
alt
=
"First slide"
fluid
/>
<
/Carousel.Item
>
);
})}
{
/* <Carousel.Item>
<img
className="d-block w-100"
...
...
src/Components/Carousel/Carousel.module.css
deleted
100644 → 0
View file @
e9842750
src/Components/Carousel/Carousel.module.scss
0 → 100644
View file @
e9052784
.image
{
height
:
550px
;
}
.carousel
{
height
:
550px
;
}
@media
only
screen
and
(
max-width
:
1200px
)
{
.image
{
height
:
350px
;
}
.carousel
{
height
:
350px
;
}
}
\ No newline at end of file
src/Helper/dummyData.js
View file @
e9052784
import
fruitAndVegetablesImg
from
"../assets/images/fruitAndVegetables.jpeg"
;
import
offerImg
from
"../assets/images/offer.jpg"
;
import
discountImg
from
"../assets/images/20_discount.jpeg"
;
import
mart_innerImg
from
"../assets/images/mart_inner.jpeg"
;
const
headerData
=
[
{
id
:
1
,
link
:
"Mobile Tablet and Laptop"
,
},
];
const
carouselData
=
[
{
id
:
1
,
image
:
fruitAndVegetablesImg
},
{
id
:
2
,
image
:
offerImg
},
{
id
:
3
,
image
:
discountImg
},
{
id
:
4
,
image
:
mart_innerImg
},
];
export
{
headerData
}
export
{
headerData
,
carouselData
};
src/Screens/Home/Home.js
View file @
e9052784
import
React
from
"react"
;
import
MainNavbar
from
"../../Components/Navbar/Navbar"
;
import
MainCarousel
from
"../../Components/Carousel/Carousel"
;
import
style
from
"./Home.module.scss"
import
{
Container
}
from
"react-bootstrap"
;
import
style
from
"./Home.module.scss"
;
import
{
Container
,
Row
,
Col
}
from
"react-bootstrap"
;
import
bestPriceImg
from
"../../assets/images/bestPrice.jpg"
;
import
prayerMatImg
from
"../../assets/images/prayerMat.jpg"
;
const
Home
=
()
=>
{
return
(
...
...
@@ -11,10 +13,25 @@ const Home = () => {
<
div
>
<
MainNavbar
/>
<
/div
>
<
div
className
=
{
style
.
carouselContainer
}
>
<
Container
>
<
div
>
<
Container
className
=
{
style
.
carouselContainer
}
>
<
Row
className
=
{
style
.
carouselContainerRow
}
>
<
Col
xl
=
{
3
}
md
=
{
12
}
sm
=
{
12
}
>
<
div
className
=
{
style
.
leftImages
}
>
<
div
>
<
img
src
=
{
bestPriceImg
}
alt
=
"best price"
/>
<
/div
>
<
div
>
<
img
src
=
{
prayerMatImg
}
alt
=
"prayer mat"
/>
<
/div
>
<
/div
>
<
/Col
>
<
Col
xl
=
{
8
}
md
=
{
12
}
sm
=
{
12
}
>
<
div
>
<
MainCarousel
/>
<
/div
>
<
/Col
>
<
/Row
>
<
/Container
>
<
/div
>
<
/section
>
...
...
src/Screens/Home/Home.module.scss
View file @
e9052784
.carouselContainer
{
margin-top
:
30px
;
.leftImages
{
display
:
flex
;
align-items
:
center
;
flex-direction
:
column
;
width
:
100%
;
}
.leftImages
div
:nth-child
(
2
)
{
margin-top
:
30px
;
}
.carouselContainerRow
{
display
:
flex
;
justify-content
:
center
;
}
}
@media
only
screen
and
(
max-width
:
1200px
)
{
.carouselContainer
{
// background-color: red;
.leftImages
{
display
:
flex
;
justify-content
:
center
;
flex-direction
:
row
;
width
:
100%
;
overflow
:
auto
;
}
.leftImages
div
{
padding
:
0px
30px
30px
30px
;
}
.leftImages
div
:nth-child
(
2
)
{
margin-top
:
0px
;
}
}
}
src/assets/images/20_discount.jpeg
0 → 100644
View file @
e9052784
139 KB
src/assets/images/bestPrice.jpg
0 → 100644
View file @
e9052784
73.8 KB
src/assets/images/fruitAndVegetables.jpeg
0 → 100644
View file @
e9052784
40.4 KB
src/assets/images/mart_inner.jpeg
0 → 100644
View file @
e9052784
109 KB
src/assets/images/prayerMat.jpg
0 → 100644
View file @
e9052784
39.2 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment