Skip to content

Commit f638f72

Browse files
committed
Banner
1 parent cc0c2c7 commit f638f72

File tree

9 files changed

+47
-40
lines changed

9 files changed

+47
-40
lines changed
-35.9 KB
Binary file not shown.

src/assets/Images/main/headerBanner.svg

Lines changed: 31 additions & 26 deletions
Loading
7.08 KB
Loading

src/components/Home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import Footer from './footer/Footer'
1313
import DiscordDashboard from './discord/DiscordDashboard'
1414
import Blogs from './Blogs/Blogs'
1515
// import Advertisement from './advertisement/Advertisement'
16-
// import HeaderBanner from './header-banner/HeaderBanner'
16+
import HeaderBanner from './header-banner/HeaderBanner'
1717

1818
const Home = () => {
1919

2020
return (
2121
<>
2222
{/* <Advertisement /> */}
23-
{/* <HeaderBanner/> */}
23+
<HeaderBanner/>
2424
<Navbar />
2525
<Header />
2626
<Statistics />

src/components/header-banner/HeaderBanner.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import './headerBanner.css'
33

44
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'
66

77
const HeaderBanner = () => {
88
return (

src/components/header-banner/headerBanner.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@
2020
.headerImagePhone {
2121
display: block;
2222
width: 90%;
23-
height: 100px;
23+
height: 80px;
2424
/* display: none; */
2525
}
2626
}
27-
28-
@media screen and (max-width:674px) {
29-
.header-banner-container img{
30-
/* height: 30px; */
31-
}
32-
}

src/components/header/header.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
.header-right-image {
9090
margin-top: 40px;
91-
animation: wave 4.6s infinite;
91+
animation: wave 3.5s infinite;
9292
transition: smooth;
9393
}
9494

@@ -106,7 +106,7 @@
106106
}
107107
.border-line {
108108
border-bottom: 1px solid #eaeaea;
109-
margin-top: 9vh;
109+
margin-top: -3vh;
110110
}
111111
/* ============ Media Query (Medium Devices) ============= */
112112
@media screen and (max-width: 1200px) {

src/components/navbar/Navbar.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ const Navbar = () => {
77
const [active, setActive] = useState("nav__menu");
88
const [toggleicon, setToggleicon] = useState("nav__toggler");
99
const navToggle = () => {
10+
11+
if(window.scrollY >=50){
1012
active=== 'nav__menu' ? setActive('nav__menu nav__active') : setActive('nav__menu');
1113
toggleicon=== 'nav__toggler' ? setToggleicon('nav__toggler toggle') : setToggleicon('nav__toggler');
1214
}
15+
}
1316
const [navbar, setNavbar] = useState(false);
1417
const changeBackground = () => {
1518
if(window.scrollY >=50)
1619
{
1720
setNavbar(true);
21+
1822
}
1923
else{
2024
setNavbar(false);
@@ -27,7 +31,7 @@ const Navbar = () => {
2731
<nav className={navbar ? 'nav sticky' : 'nav'}>
2832
<a href="/#" className="nav__brand"><img src={Logo} alt="" /></a>
2933
<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>
3135
<li className="nav__item"><a href="/#blogss" className="nav__link">Blogs</a></li>
3236
<li className="nav__item"><a href="/#campus-captains" className="nav__link">Campus Captains</a></li>
3337
<li className="nav__item"><a href="https://discord.gg/jwvtDtnkJv" className="nav__link">Community</a></li>

src/components/navbar/navbar.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515

1616
.nav{
1717
display: flex;
18-
position: fixed;
18+
position: static;
1919
align-items: center;
20+
margin-top: 2vh;
2021
height: 12vh;
2122
width: 100%;
2223
max-width: 1600px;
@@ -130,4 +131,7 @@
130131
{
131132
box-shadow: 0 8px 6px -6px rgb(243, 240, 240);
132133
background:#fff;
134+
position: fixed;
135+
top: 0vh;
136+
margin-top: 0vh;
133137
}

0 commit comments

Comments
 (0)