Skip to content

Commit

Permalink
Merge pull request #62 from TABA-4th/dev
Browse files Browse the repository at this point in the history
merge dev branch
  • Loading branch information
kjungw1025 authored Dec 4, 2023
2 parents 05cf881 + f0a6360 commit 228e145
Show file tree
Hide file tree
Showing 7 changed files with 422 additions and 7 deletions.
Binary file added src/assets/img/bg12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/img13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions src/components/Headers/MagazinePageHeader.js
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;
2 changes: 1 addition & 1 deletion src/components/Navbars/IndexNavbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function IndexNavbar() {
<NavLink href="/">Home</NavLink>
</NavItem>
<NavItem>
<NavLink href="/landing">Landing</NavLink>
<NavLink href="/magazine">Magazine</NavLink>
</NavItem>
{isLoggedIn ? (
// 로그인한 사용자에게 보여줄 항목
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import SurveyPage from "views/examples/SurveyPage";
import HaircareProductPage from "views/examples/HaircareProductPage";
import FileUploaderPage from "views/examples/FileUploaderPage";
import ResultPage from "views/examples/ResultPage";
import MagazinePage from 'views/examples/MagazinePage';

import PublicRoute from "components/Functions/PublicRoute";
import ProtectedRoute from "components/Functions/ProtectedRoute";
Expand All @@ -40,6 +41,7 @@ root.render(
<Route path="/calendar" element={<ProtectedRoute><CalendarPage /></ProtectedRoute>} />
<Route path="/file-upload" element={<ProtectedRoute><FileUploaderPage /></ProtectedRoute>} />
<Route path="/result" element={<ResultPage />} />
<Route path="/magazine" element={<MagazinePage/>} />

<Route path="/survey" element={<ProtectedRoute><SurveyPage/></ProtectedRoute>}/>
<Route path="/product" element={<PublicRoute><HaircareProductPage /></PublicRoute>}/>
Expand Down
Loading

0 comments on commit 228e145

Please sign in to comment.