Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Detail: 이미지 슬라이더, 개발자 컨테이너, 타이틀 위치 및 CSS 수정 #54

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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