Commit 5605c76 1 parent 776c75d commit 5605c76 Copy full SHA for 5605c76
File tree 2 files changed +26
-12
lines changed
2 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 5
5
}
6
6
}
7
7
8
+ @keyframes slideDown {
9
+ from {
10
+ transform : translateY (-100% );
11
+ opacity : 0 ;
12
+ }
13
+ to {
14
+ transform : translateY (0 );
15
+ opacity : 1 ;
16
+ }
17
+ }
18
+
19
+ .headerVisible {
20
+ animation : slideDown 0.5s ease-out forwards;
21
+ }
22
+
8
23
.header {
24
+ position : fixed;
25
+ top : 0 ;
26
+ left : 0 ;
27
+ right : 0 ;
28
+ height : rem (56 );
29
+ z-index : 2 ;
30
+ animation : slideDown 0.5s ease-out forwards;
9
31
background-color : var (--mantine-color-body );
10
- height : rem (56px );
11
32
border-bottom : rem (1px ) solid
12
33
light-dark (var (--mantine-color-gray-3 ), var (--mantine-color-dark-4 ));
13
34
}
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import classes from "./HeaderMenu.module.css";
15
15
import Image from "next/image" ;
16
16
import Link from "next/link" ;
17
17
import { IconBrandFacebook , IconBrandLinkedin } from "@tabler/icons-react" ;
18
+ import { Fade } from "react-awesome-reveal" ;
18
19
19
20
const links = [
20
21
{ link : "/#about" , label : "About" } ,
@@ -101,17 +102,9 @@ export function HeaderMenu() {
101
102
return (
102
103
< >
103
104
< header
104
- className = { classes . header }
105
- style = { {
106
- position : "fixed" ,
107
- top : 0 ,
108
- left : 0 ,
109
- right : 0 ,
110
- height : rem ( 56 ) ,
111
- zIndex : 2 ,
112
- transition : "transform 400ms ease" ,
113
- backgroundColor : "var(--mantine-color-body)" ,
114
- } }
105
+ className = { `${ classes . header } ${
106
+ showHeader ? classes . headerVisible : ""
107
+ } `}
115
108
>
116
109
< Container size = "lg" >
117
110
< div className = { classes . inner } >
You can’t perform that action at this time.
0 commit comments