Skip to content

Commit

Permalink
Merge pull request #34 from JongMany/feat/refactor-architecture
Browse files Browse the repository at this point in the history
[Fix] vh 단위를 dvh로 변경
  • Loading branch information
JongMany authored Jul 30, 2024
2 parents 20d29e1 + 1278903 commit 50b4ba6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function ProjectsShowCase() {
return (
<>
<main
className="absolute top-0 left-0 w-full h-[100vh] scrollbar-hide"
className="absolute top-0 left-0 w-full h-[100dvh] scrollbar-hide"
style={{
scrollSnapType: "y mandatory",
overflowY: "auto",
Expand All @@ -52,7 +52,7 @@ function ProjectsShowCase() {
>
<section className="flex flex-col items-center justify-center">
<div className="fixed top-0 left-0 w-full overflow-y-auto -z-10">
<div className="h-[100vh]" ref={containerRef}></div>
<div className="h-[100dvh]" ref={containerRef}></div>
</div>
{/* 홈 */}
<ContentContainer height="137.5vh">
Expand Down Expand Up @@ -225,7 +225,7 @@ function ProjectsShowCase() {
</ContentContainer>
{/* 137.5vh */}
<ContentContainer height="137.5vh" scrollSnapAlign="end">
<div className="flex h-[100vh] flex-col justify-center items-center">
<div className="flex h-[100dvh] flex-col justify-center items-center">
<Contact />
</div>
</ContentContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const MainLoadingScreen = ({ isLoading, onStarted }) => {
return (
//absolute z-50 h-[100vh] w-[100vw] flex justify-center items-center
<div
className={`z-50 absolute h-[100vh] w-[100vw] transition-all durtaion-300 ${
className={`z-50 absolute h-[100dvh] w-[100dvw] transition-all durtaion-300 ${
!isLoading ? "opacity-0 -z-10 invisible" : "overflow-y-hidden"
} `}
>
Expand Down

0 comments on commit 50b4ba6

Please sign in to comment.