File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed
apps/brenden-dev-e2e/src/e2e Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
- import { getGreeting } from '../support/app.po' ;
2
-
3
1
describe ( 'brenden-dev' , ( ) => {
4
2
beforeEach ( ( ) => cy . visit ( '/' ) ) ;
5
3
6
- it ( 'should display welcome message' , ( ) => {
7
- // Custom command example, see `../support/commands.ts` file
8
- cy . login ( 'my-email@something.com' , 'myPassword' ) ;
9
-
10
- // Function helper example, see `../support/app.po.ts` file
11
- getGreeting ( ) . contains ( 'Welcome brenden-dev' ) ;
4
+ it ( 'should show the full header on scroll' , ( ) => {
5
+ cy . get ( 'header a' ) . should ( 'not.be.visible' ) ;
6
+ cy . scrollTo ( 0 , 400 ) ;
7
+ cy . get ( 'header a' ) . should ( 'be.visible' ) ;
12
8
} ) ;
13
9
} ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export interface BannerProps {}
4
4
export function Banner ( props : BannerProps ) {
5
5
return (
6
6
< aside className = "float-left fixed mt-2 bg-red-600 pl-24 pr-32 py-3 m-0 z-50 -left-20 top-6 -rotate-45 shadow-xl" >
7
- < a href = "https://github.com/bniedermeyer/bniedermeyer.github.io/tree/rebuild " >
7
+ < a href = "https://brenden.codes/rebuilding-my-home-on-the-web " >
8
8
< p className = "text-white" > Being built in public!</ p >
9
9
</ a >
10
10
</ aside >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export function Navbar({ displayFull = true }: NavbarProps) {
29
29
className = { `flex items-center ${
30
30
displayFull
31
31
? 'opacity-100 transition-opacity duration-700 ease-in-out reduce-motion:transition-none'
32
- : 'transition-opacity opacity-0'
32
+ : 'transition-opacity opacity-0 pointer-events-none '
33
33
} `}
34
34
>
35
35
< span className = "self-center text-2xl text-primary-dark font-semibold whitespace-nowrap dark:text-secondary-dark" >
Original file line number Diff line number Diff line change @@ -32,5 +32,6 @@ export function useDocumentScrollThrottled(
32
32
33
33
return ( ) =>
34
34
window . removeEventListener ( 'scroll' , handleDocumentScrollThrottled ) ;
35
- } , [ handleDocumentScrollThrottled ] ) ;
35
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- we only want this called at mount and unmount
36
+ } , [ ] ) ;
36
37
}
You can’t perform that action at this time.
0 commit comments