File tree Expand file tree Collapse file tree 9 files changed +47
-40
lines changed Expand file tree Collapse file tree 9 files changed +47
-40
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ import Footer from './footer/Footer'
13
13
import DiscordDashboard from './discord/DiscordDashboard'
14
14
import Blogs from './Blogs/Blogs'
15
15
// import Advertisement from './advertisement/Advertisement'
16
- // import HeaderBanner from './header-banner/HeaderBanner'
16
+ import HeaderBanner from './header-banner/HeaderBanner'
17
17
18
18
const Home = ( ) => {
19
19
20
20
return (
21
21
< >
22
22
{ /* <Advertisement /> */ }
23
- { /* <HeaderBanner/> */ }
23
+ < HeaderBanner />
24
24
< Navbar />
25
25
< Header />
26
26
< Statistics />
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
2
2
import './headerBanner.css'
3
3
4
4
import headerBannerImage from '../../assets/Images/main/headerBanner.svg'
5
- import headerBannerPhoneImage from '../../assets/Images/main/headerBannerPhone.svg '
5
+ import headerBannerPhoneImage from '../../assets/Images/main/headerbannerphone.png '
6
6
7
7
const HeaderBanner = ( ) => {
8
8
return (
Original file line number Diff line number Diff line change 20
20
.headerImagePhone {
21
21
display : block;
22
22
width : 90% ;
23
- height : 100 px ;
23
+ height : 80 px ;
24
24
/* display: none; */
25
25
}
26
26
}
27
-
28
- @media screen and (max-width : 674px ) {
29
- .header-banner-container img {
30
- /* height: 30px; */
31
- }
32
- }
Original file line number Diff line number Diff line change 88
88
89
89
.header-right-image {
90
90
margin-top : 40px ;
91
- animation : wave 4.6 s infinite;
91
+ animation : wave 3.5 s infinite;
92
92
transition : smooth;
93
93
}
94
94
106
106
}
107
107
.border-line {
108
108
border-bottom : 1px solid # eaeaea ;
109
- margin-top : 9 vh ;
109
+ margin-top : -3 vh ;
110
110
}
111
111
/* ============ Media Query (Medium Devices) ============= */
112
112
@media screen and (max-width : 1200px ) {
Original file line number Diff line number Diff line change @@ -7,14 +7,18 @@ const Navbar = () => {
7
7
const [ active , setActive ] = useState ( "nav__menu" ) ;
8
8
const [ toggleicon , setToggleicon ] = useState ( "nav__toggler" ) ;
9
9
const navToggle = ( ) => {
10
+
11
+ if ( window . scrollY >= 50 ) {
10
12
active === 'nav__menu' ? setActive ( 'nav__menu nav__active' ) : setActive ( 'nav__menu' ) ;
11
13
toggleicon === 'nav__toggler' ? setToggleicon ( 'nav__toggler toggle' ) : setToggleicon ( 'nav__toggler' ) ;
12
14
}
15
+ }
13
16
const [ navbar , setNavbar ] = useState ( false ) ;
14
17
const changeBackground = ( ) => {
15
18
if ( window . scrollY >= 50 )
16
19
{
17
20
setNavbar ( true ) ;
21
+
18
22
}
19
23
else {
20
24
setNavbar ( false ) ;
@@ -27,7 +31,7 @@ const Navbar = () => {
27
31
< nav className = { navbar ? 'nav sticky' : 'nav' } >
28
32
< a href = "/#" className = "nav__brand" > < img src = { Logo } alt = "" /> </ a >
29
33
< ul className = { active } >
30
- < li className = "nav__item" > < a href = "/#courses" className = "nav__link" > Courses </ a > </ li >
34
+ < li className = "nav__item" > < a href = "/#courses" className = "nav__link" > Course </ a > </ li >
31
35
< li className = "nav__item" > < a href = "/#blogss" className = "nav__link" > Blogs</ a > </ li >
32
36
< li className = "nav__item" > < a href = "/#campus-captains" className = "nav__link" > Campus Captains</ a > </ li >
33
37
< li className = "nav__item" > < a href = "https://discord.gg/jwvtDtnkJv" className = "nav__link" > Community</ a > </ li >
Original file line number Diff line number Diff line change 15
15
16
16
.nav {
17
17
display : flex;
18
- position : fixed ;
18
+ position : static ;
19
19
align-items : center;
20
+ margin-top : 2vh ;
20
21
height : 12vh ;
21
22
width : 100% ;
22
23
max-width : 1600px ;
130
131
{
131
132
box-shadow : 0 8px 6px -6px rgb (243 , 240 , 240 );
132
133
background : # fff ;
134
+ position : fixed;
135
+ top : 0vh ;
136
+ margin-top : 0vh ;
133
137
}
You can’t perform that action at this time.
0 commit comments