File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export function ProjectCard({ project }: { project: (typeof PROJECTS)[0] }) {
7575 src = { imgSrc }
7676 alt = { title }
7777 fill
78- className = "object-cover transition-transform duration-500 group-hover:scale-105"
78+ className = "h-full w-full object-cover transition-transform duration-500 group-hover:scale-105"
7979 />
8080 < div className = "absolute inset-0 bg-gradient-to-t from-black/50 to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100" />
8181 </ div >
Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ import { Logo } from './logo'
1313
1414export function MobileNav ( ) {
1515 const [ navShow , setNavShow ] = useState ( false )
16- const navRef = useRef ( null )
16+ const navRef = useRef < HTMLElement | null > ( null )
1717
1818 const onToggleNav = ( ) => {
1919 setNavShow ( ( status ) => {
2020 if ( status ) {
21- enableBodyScroll ( navRef . current )
21+ navRef . current && enableBodyScroll ( navRef . current )
2222 } else {
2323 // Prevent scrolling
24- disableBodyScroll ( navRef . current )
24+ navRef . current && disableBodyScroll ( navRef . current )
2525 }
2626 return ! status
2727 } )
Original file line number Diff line number Diff line change 55 "lib" : [" dom" , " dom.iterable" , " esnext" ],
66 "allowJs" : true ,
77 "skipLibCheck" : true ,
8- "strict" : true ,
8+ "strict" : false ,
99 "forceConsistentCasingInFileNames" : true ,
1010 "noEmit" : true ,
1111 "composite" : true ,
You can’t perform that action at this time.
0 commit comments