Skip to content

Commit cf968b4

Browse files
committed
header and footer
1 parent 99c5572 commit cf968b4

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/Component/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function Header() {
2222

2323
return (
2424
<React.Fragment>
25-
<nav className="nav">
25+
<nav className="nav fixed-top">
2626
<div className="nav-main">
2727
<div className="logo">
2828
<a href="/"><img src={Logo} alt="Edukolab logo" /></a>

src/app.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323

2424
.logo img {
25-
width: 35%;
25+
width: 85px;
2626
height: auto;
2727
}
2828

@@ -79,6 +79,12 @@
7979
box-shadow: 1px 2px 8px 4px rgba(164, 164, 208, 0.52);
8080
}
8181

82+
.fixed-top {
83+
position: sticky;
84+
top: 0;
85+
z-index: 99;
86+
}
87+
8288
.footer {
8389
background-color: #161940;
8490
width: 100%;
@@ -96,7 +102,7 @@
96102
}
97103

98104
.ft-col img {
99-
width: 30%;
105+
width: 100px;
100106
}
101107

102108
.ft-col ul {
@@ -187,7 +193,7 @@
187193
display: block;
188194
width: 100%;
189195
height: 100vh;
190-
position: absolute;
196+
position: fixed;
191197
background-color: #fff;
192198
}
193199

0 commit comments

Comments
 (0)