Skip to content

Commit

Permalink
Merge pull request #54 from 2023WISCOM/feature/#11-project
Browse files Browse the repository at this point in the history
Project Detail: 이미지 슬라이더, 개발자 컨테이너, 타이틀 위치 및 CSS 수정
  • Loading branch information
imddoy authored Nov 3, 2023
2 parents b85b8bf + e1f6145 commit 2268143
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 87 deletions.
1 change: 0 additions & 1 deletion WISCOM/src/components/Project/Developer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const Developer = ({ data }) => {
const developerLength = data && data.developer.length;
const upBoxData = data && data.developer.slice(2, developerLength);
const downBoxData = data && data.developer.slice(0, Math.min(2, developerLength));

return (
<D.DeveloperContainer>
{data && (
Expand Down
21 changes: 14 additions & 7 deletions WISCOM/src/components/Project/ImageSliderStyle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,30 @@ export const ImageSliderContainer = styled.div`
--arrow-size: 90px; /* 화살표 크기 변수 설정 */
position: relative; /* 부모 클래스에 relative 포지션을 추가 */
margin-bottom: 200px;
@media (max-width: 425px) {
margin-bottom: 100px;
}
`;

export const SliderBannerWrap = styled.div`
width: 100%;
max-width: 1100px;
width: 1100px;
height: auto;
position: relative;
aspect-ratio: 11 / 7; /* 가로 세로 비율을 11:7로 고정 */
border-radius: 30px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
box-shadow: 0 0.01px 0.01px rgba(0, 0, 0, 0.1);
position: relative;
display: flex;
align-items: center;
margin-left: 10%;
margin-right: 10%;
justify-content: center;
margin: 0 auto; /* 필수!!!!! */
// margin: 0 auto; /* 필수!!!!! */
`;

export const SlideBanner = styled.div`
Expand All @@ -36,13 +42,14 @@ export const SlideBanner = styled.div`
export const BannerImage = styled.img`
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 30px;
position: absolute;
left: 0;
opacity: 0;
transition: opacity 0.8s ease-in-out;
border-radius: 30px;
border: 3px solid rgba(0, 0, 0, 0.1);
&.active {
opacity: 1;
}
Expand Down
Loading

0 comments on commit 2268143

Please sign in to comment.