Skip to content

Commit

Permalink
#13 [style] set reset overall layout
Browse files Browse the repository at this point in the history
๋ฉ”์ธ ํŽ˜์ด์ง€๋‚ด ์ „์ฒด์  ๋†’์ด ๋„ˆ๋น„ CSS ์กฐ์ •
issue : #13
  • Loading branch information
JangAyeon authored and JangAyeon committed Jul 18, 2022
1 parent 8f039ad commit e46a2fb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/TempReport/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';

const StyledRoot = styled.section`
width: 98%;
width: 100%;
padding-top: 1.2rem;
.slick-slider {
height: fit-content;
Expand Down
10 changes: 6 additions & 4 deletions src/pages/Main/Vote/index.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
/* eslint-disable import/no-unresolved */
import React from 'react';
// import { TempReport } from 'components';
import { StyledRoot, Button } from './style';
import { Title, TitleSection, ContentSection } from '../style';

function handleBtnClick(){
console.log("Vote handleBtnclick")
}

function handleBtnClick() {
console.log('Vote handleBtnclick');
}

function Vote() {
return (
Expand All @@ -17,7 +19,7 @@ function Vote() {
</div>
<Button onClick={handleBtnClick}>+</Button>
</TitleSection>
<ContentSection>์ฝ˜ํ…์ธ </ContentSection>
<ContentSection> ์ฝ˜ํ…์ธ  </ContentSection>
</StyledRoot>
);
}
Expand Down
13 changes: 7 additions & 6 deletions src/pages/Main/Weather/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const StyledRoot = styled.article`
}
`;
const BearSection = styled.section`
img {
width: 31.9rem;
height: 31.9rem;
}
margin-right: 3rem;
img{
width: 32rem;
height: 32rem;
}
// margin-right: 3rem;
${applyMediaQuery('mobile')} {
margin-right: 0;
margin-bottom: 3rem;
Expand All @@ -28,7 +28,8 @@ const WeatherSection = styled.section`
flex-direction: column;
justify-content: space-between;
align-items: center;
width: 31.9rem;
width: 32rem;
height: 32rem;
`;

export { StyledRoot, BearSection, WeatherSection };
3 changes: 3 additions & 0 deletions src/pages/Main/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ const TitleSection = styled.section`
const ContentSection = styled.section`
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 3rem 0;
width: 68rem;
${applyMediaQuery('mobile')} {
flex-direction: column;
width: fit-content;
}
`;

Expand Down

0 comments on commit e46a2fb

Please sign in to comment.