-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from TABA-4th/dev
merge dev branch
- Loading branch information
Showing
7 changed files
with
422 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from "react"; | ||
|
||
// reactstrap components | ||
import { Button, Container } from "reactstrap"; | ||
|
||
// core components | ||
|
||
function MagazinePageHeader() { | ||
let pageHeader = React.createRef(); | ||
|
||
React.useEffect(() => { | ||
if (window.innerWidth > 991) { | ||
const updateScroll = () => { | ||
let windowScrollTop = window.pageYOffset / 3; | ||
pageHeader.current.style.transform = | ||
"translate3d(0," + windowScrollTop + "px,0)"; | ||
}; | ||
window.addEventListener("scroll", updateScroll); | ||
return function cleanup() { | ||
window.removeEventListener("scroll", updateScroll); | ||
}; | ||
} | ||
}); | ||
return ( | ||
<> | ||
<div className="page-header page-header-small"> | ||
<div | ||
className="page-header-image" | ||
style={{ | ||
backgroundImage: "url(" + require("assets/img/bg12.jpg") + ")" // 헤더 부분 배경 이미지 | ||
}} | ||
ref={pageHeader} | ||
></div> | ||
<div className="content-center"> | ||
<Container> | ||
<h1 className="title">NIMONAEMO MAGAZINE</h1> | ||
<div className="text-center"> | ||
</div> | ||
</Container> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default MagazinePageHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.