Skip to content

Commit

Permalink
Merge pull request #114 from LikeLionHGU/#86/ApiFix-최예라
Browse files Browse the repository at this point in the history
#86/api fix 최예라
  • Loading branch information
YearaChoi authored Aug 6, 2024
2 parents 521b51b + 215032e commit aad28a8
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/components/LectureListPage/LectureListContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ function LectureListContent({ courses }) {
<Filter>
<FilterContainerMain
absolute={false}
transform="none"
top="0%"
left="0%"
marginTop="0px"
marginLeft="0px"
noPosition
/>
</Filter>
<CourseContainer>
Expand Down
4 changes: 4 additions & 0 deletions src/components/LectureListPage/ListAllContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ function LectureListContent() {
<Filter>
<FilterContainerMain
absolute={false}
transform="none"
top="0%"
left="0%"
marginTop="0px"
marginLeft="0px"
noPosition
/>
</Filter>
<CourseContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/components/MainPage/BannerMain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const Wrapper = styled.div`

const BannerBg = styled.div`
background-image: url(${mainBannerImg});
width: 108%;
width: 109%;
height: 118%;
background-size: cover;
background-position: left;
Expand Down
33 changes: 28 additions & 5 deletions src/components/MainPage/FilterContainerMain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ import { selectedDisabilityTypeState } from "../../atom";
import { selectedDateState } from "../../atom";
import { selectedPriceState } from "../../atom";

function FilterContainerMain({ absolute = true, marginTop, marginLeft }) {
function FilterContainerMain({
absolute = true,
marginTop,
marginLeft,
top,
left,
transform,
noPosition,
}) {
const navigate = useNavigate();

const [checked, setChecked] = useState({
Expand Down Expand Up @@ -588,7 +596,15 @@ function FilterContainerMain({ absolute = true, marginTop, marginLeft }) {
};

return (
<Wrapper absolute={absolute} marginTop={marginTop} marginLeft={marginLeft}>
<Wrapper
absolute={absolute}
marginTop={marginTop}
marginLeft={marginLeft}
top={top}
left={left}
transform={transform}
noPosition={noPosition}
>
<Container>
<Text>원하는 운동 강좌를 검색해보세요</Text>
<CheckboxContainer>
Expand Down Expand Up @@ -783,13 +799,20 @@ const Wrapper = styled.div`
width: 1000px;
height: auto;
margin-top: ${(props) => props.marginTop || "320px"};
margin-left: ${(props) => props.marginLeft || "220px"};
/* left: 40%; */
/* transform: translateX(-50%); */
/* margin-left: ${(props) => props.marginLeft || "220px"}; */
margin-left: ${(props) => props.marginLeft || "0px"};
background-color: white;
z-index: 10000;
border-radius: 10px;
padding-bottom: 28px;
// 조건부 스타일 적용
${(props) =>
!props.noPosition &&
`
top: ${props.top || "15%"};
left: ${props.left || "50%"};
transform: translate(-50%, -50%);
`}
`;

const Container = styled.div`
Expand Down
4 changes: 3 additions & 1 deletion src/components/MainPage/HeaderMain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,14 @@ function HeaderMain() {
export default HeaderMain;

const Wrapper = styled.div`
/* border: 1px solid red; */
height: 98px;
font-size: 20px;
display: flex;
justify-content: center;
position: absolute;
width: 1440px;
width: 100%;
min-width: 1440px;
font-family: "PretendardRegular";
`;

Expand Down

0 comments on commit aad28a8

Please sign in to comment.