Skip to content

Commit

Permalink
Merge pull request #60 from TABA-4th/dev
Browse files Browse the repository at this point in the history
merge dev branch
  • Loading branch information
kjungw1025 authored Dec 1, 2023
2 parents 589d091 + 9593e0e commit 05cf881
Show file tree
Hide file tree
Showing 18 changed files with 863 additions and 30 deletions.
74 changes: 74 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/Footers/DarkFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function DarkFooter() {
<div className="copyright" id="copyright">
© {new Date().getFullYear()}, Designed by{" "}
<a
href="https://github.com/siwooJang"
href="https://github.com/TABA-4th/taba-frontend"
target="_blank"
>
siwooJang
Nimonaemo FE
</a>
</div>
</Container>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Footers/DefaultFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function DefaultFooter() {
<div className="copyright" id="copyright">
© {new Date().getFullYear()}, Designed by{" "}
<a
href="https://github.com/siwooJang"
href="https://github.com/TABA-4th/taba-frontend"
target="_blank"
>
siwooJang
Nimonaemo FE
</a>
</div>
</Container>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Footers/TransparentFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function TransparentFooter() {
<div className="copyright" id="copyright">
© {new Date().getFullYear()}, Designed by{" "}
<a
href="https://github.com/siwooJang"
href="https://github.com/TABA-4th/taba-frontend"
target="_blank"
>
siwooJang
Nimonaemo FE
</a>
</div>
</Container>
Expand Down
67 changes: 67 additions & 0 deletions src/components/Headers/ProductHeader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import React from "react";
import { Container } from "reactstrap";


const userName = sessionStorage.getItem("nickname");

function ProductHeader() {
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 clear-filter page-header-small"
filter-color="blue"
>
<div
className="page-header-image"
style={{
backgroundImage: "url(" + require("assets/img/bg5.jpg") + ")" // 헤더 부분 배경 이미지
}}
ref={pageHeader}
></div>
<Container>
{/* <div className="photo-container">
<img alt="..." src={require("assets/img/ryan.jpg")}></img>
</div> */}
<h1 className="title">당신의 두피특성에 딱 맞는 샴푸 추천!</h1>
<h6>표시되는 가격은 프로모션 및 쇼핑몰 사정 상 실제가격과 일부 차이가 있을 수 있음을 알려드립니다.</h6>
{/*<p className="category">Photographer</p>*/}

{/* 여기다가 총 검사건수
<div className="content">
<div className="social-description">
<h2>26</h2>
<p>Comments</p>
</div>
<div className="social-description">
<h2>26</h2>
<p>Comments</p>
</div>
<div className="social-description">
<h2>48</h2>
<p>Bookmarks</p>
</div>
</div> */}
</Container>
</div>
</>
);
}

export default ProductHeader;
66 changes: 66 additions & 0 deletions src/components/Headers/ProfileMypage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import React from "react";
import { Container } from "reactstrap";


const userName = sessionStorage.getItem("nickname");

function ProfileMypageHeader() {
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 clear-filter page-header-small"
filter-color="blue"
>
<div
className="page-header-image"
style={{
backgroundImage: "url(" + require("assets/img/bg5.jpg") + ")" // 헤더 부분 배경 이미지
}}
ref={pageHeader}
></div>
<Container>
<div className="photo-container">
<img alt="..." src={require("assets/img/ryan.jpg")}></img>
</div>
<h3 className="title">{userName}</h3>
{/*<p className="category">Photographer</p>*/}

{/* 여기다가 총 검사건수
<div className="content">
<div className="social-description">
<h2>26</h2>
<p>Comments</p>
</div>
<div className="social-description">
<h2>26</h2>
<p>Comments</p>
</div>
<div className="social-description">
<h2>48</h2>
<p>Bookmarks</p>
</div>
</div> */}
</Container>
</div>
</>
);
}

export default ProfileMypageHeader;
Loading

0 comments on commit 05cf881

Please sign in to comment.