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
e9842750
Commit
e9842750
authored
May 16, 2022
by
Muhammad Ameen
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Navbar bug fix
parent
e40a8e73
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
32 deletions
+64
-32
Carousel.js
src/Components/Carousel/Carousel.js
+46
-0
Carousel.module.css
src/Components/Carousel/Carousel.module.css
+0
-0
Navbar.js
src/Components/Navbar/Navbar.js
+2
-6
Navbar.module.scss
src/Components/Navbar/Navbar.module.scss
+2
-1
dummyData.js
src/Helper/dummyData.js
+0
-24
Home.js
src/Screens/Home/Home.js
+14
-1
logo.png
src/assets/images/logo.png
+0
-0
offer.jpg
src/assets/images/offer.jpg
+0
-0
No files found.
src/Components/Carousel/Carousel.js
0 → 100644
View file @
e9842750
import
React
from
"react"
;
import
carouselImg
from
"../../assets/images/offer.jpg"
;
import
{
Carousel
}
from
"react-bootstrap"
;
const
MainCarousel
=
()
=>
{
return
(
<>
<
Carousel
variant
=
"dark"
>
<
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
>
<
/Carousel.Item
>
{
/* <Carousel.Item>
<img
className="d-block w-100"
src="holder.js/800x400?text=Second slide&bg=eee"
alt="Second slide"
/>
<Carousel.Caption>
<h5>Second slide label</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</Carousel.Caption>
</Carousel.Item>
<Carousel.Item>
<img
className="d-block w-100"
src="holder.js/800x400?text=Third slide&bg=e5e5e5"
alt="Third slide"
/>
<Carousel.Caption>
<h5>Third slide label</h5>
<p>
Praesent commodo cursus magna, vel scelerisque nisl consectetur.
</p>
</Carousel.Caption>
</Carousel.Item> */
}
<
/Carousel
>
<
/
>
);
};
export
default
MainCarousel
;
src/Components/Carousel/Carousel.module.css
0 → 100644
View file @
e9842750
src/Components/Navbar/Navbar.js
View file @
e9842750
import
React
from
"react"
;
import
React
from
"react"
;
import
{
import
{
Button
,
Col
,
Container
,
Container
,
Row
,
Navbar
,
Navbar
,
NavDropdown
,
Nav
,
Nav
,
}
from
"react-bootstrap"
;
}
from
"react-bootstrap"
;
import
style
from
"./Navbar.module.scss"
;
import
style
from
"./Navbar.module.scss"
;
import
logo
from
"../../assets/logo.png"
;
import
logo
from
"../../assets/
images/
logo.png"
;
import
{
Input
}
from
"antd"
;
import
{
Input
}
from
"antd"
;
import
{
IoCartOutline
}
from
"react-icons/io5"
;
import
{
IoCartOutline
}
from
"react-icons/io5"
;
import
{
headerData
}
from
"../../Helper/dummyData"
;
import
{
headerData
}
from
"../../Helper/dummyData"
;
...
@@ -69,7 +65,7 @@ const MainNavbar = () => {
...
@@ -69,7 +65,7 @@ const MainNavbar = () => {
{
headerData
?.
map
((
item
,
index
)
=>
{
{
headerData
?.
map
((
item
,
index
)
=>
{
return
(
return
(
<
li
>
<
li
>
<
a
href
=
""
className
=
{
headerData
?.
length
-
1
!==
index
&&
style
.
borderRight
}
>
{
item
?.
link
}
<
/a
>
<
a
href
=
{
item
?.
link
}
className
=
{
headerData
?.
length
-
1
!==
index
&&
style
.
borderRight
}
>
{
item
?.
link
}
<
/a
>
<
/li
>
<
/li
>
);
);
})}
})}
...
...
src/Components/Navbar/Navbar.module.scss
View file @
e9842750
...
@@ -34,7 +34,8 @@ $main_green: #56a514;
...
@@ -34,7 +34,8 @@ $main_green: #56a514;
}
}
}
}
.navbarMainContainer
{
.navbarMainContainer
{
height
:
90px
;
// height: 90px;
// min-height: 190px;
}
}
.searchContainer
{
.searchContainer
{
width
:
75%
;
width
:
75%
;
...
...
src/Helper/dummyData.js
View file @
e9842750
...
@@ -3,30 +3,6 @@ const headerData = [
...
@@ -3,30 +3,6 @@ const headerData = [
id
:
1
,
id
:
1
,
link
:
"Mobile Tablet and Laptop"
,
link
:
"Mobile Tablet and Laptop"
,
},
},
{
id
:
2
,
link
:
"Fashion"
,
},
{
id
:
3
,
link
:
"Groceries"
,
},
{
id
:
4
,
link
:
"Electronics Device"
,
},
{
id
:
5
,
link
:
"Sports"
,
},
{
id
:
5
,
link
:
"Tv and Home Appliances"
,
},
{
id
:
5
,
link
:
"Home and Life style"
,
},
];
];
...
...
src/Screens/Home/Home.js
View file @
e9842750
import
React
from
"react"
;
import
React
from
"react"
;
import
MainNavbar
from
"../../Components/Navbar/Navbar"
;
import
MainNavbar
from
"../../Components/Navbar/Navbar"
;
import
MainCarousel
from
"../../Components/Carousel/Carousel"
;
import
style
from
"./Home.module.scss"
import
{
Container
}
from
"react-bootstrap"
;
const
Home
=
()
=>
{
const
Home
=
()
=>
{
return
(
return
(
<>
<>
<
section
>
<
div
>
<
MainNavbar
/>
<
MainNavbar
/>
<
/div
>
<
div
className
=
{
style
.
carouselContainer
}
>
<
Container
>
<
MainCarousel
/>
<
/Container
>
<
/div
>
<
/section
>
<
/
>
<
/
>
);
);
};
};
...
...
src/assets/logo.png
→
src/assets/
images/
logo.png
View file @
e9842750
File moved
src/assets/images/offer.jpg
0 → 100644
View file @
e9842750
44.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