Skip to content

Commit

Permalink
Merge pull request #372 from SejongPeer/feature/24
Browse files Browse the repository at this point in the history
feat : [24] 게시글 작성 데탑버전 & 게시글 작성 후 페이지 이동
  • Loading branch information
AhnRian authored Aug 1, 2024
2 parents 15bc5e4 + f2aba38 commit 3c5b95d
Show file tree
Hide file tree
Showing 12 changed files with 638 additions and 609 deletions.
37 changes: 18 additions & 19 deletions src/components/button/submitButton/SubmitBtn.module.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
.submitBtn,
.submitBtn_notReady {
width: 100%;
height: 52px;
background-color: #ff4b4b;
text-align: center;
color: #ffffff;
border: none;
border-radius: 28px;
font-size: 1.7vh;
font-weight: 700;
}
.submitBtn:hover {
cursor: pointer;
}
.submitBtn {
width: 343px;
height: 52px;
background-color: #ff4b4b;
text-align: center;
color: #ffffff;
border: none;
border-radius: 28px;
font-size: 18px;
font-weight: 700;
background-color: #ff4b4b;
}
.submitBtn_notReady {
width: 343px;
height: 52px;
background-color: #E5E5E5;
text-align: center;
color: #ffffff;
border: none;
border-radius: 28px;
font-size: 18px;
font-weight: 700;
}
background-color: #ffffff;
}
182 changes: 117 additions & 65 deletions src/components/studyPostWrite/ImageUpload.module.css
Original file line number Diff line number Diff line change
@@ -1,71 +1,123 @@
@media (min-width: 768px) {
.iamgeContainer {
.iamgeContainer {
width: 100%;
height: 170px;
padding: 0 25px;
background-color: #ffffff;
border-bottom: 1px solid #e5e5e5;
}
.iamgeContainer p {
width: 100%;
font-size: 1.7vh;
font-weight: 600;
margin-bottom: 10px;
}

}
.iamgeContainer p{}
.uploadImgWrapper{}
.image{}
.uploadImg{}
.uploadImgWrapper {
width: 100%;
display: flex;
gap: 10px;
position: relative;
}
.imageWrapper {
width: 100px;
height: 100px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
cursor: pointer;
}
.imageWrapper img.upload {
width: 100%;
height: 100%;
border-radius: 8px;
}
.uploadImg {
width: 24px;
height: 24px;
margin: 0;
cursor: pointer;
position: relative;
}
.uploadImg img {
width: 100%;
height: 100%;
}
.hiddenInput {
display: none;
}
.delete {
width: 28px;
height: 28px;
background-image: url('../../assets/image/close_with_circle.png');
background-size: cover;
z-index: 4;
position: absolute;
top: 4px;
right: 4px;
cursor: pointer;
}
}

@media (max-width: 768px) {
.iamgeContainer {
width: 100%;
height: 154px;
padding: 0 16px;
background-color: #FFFFFF;
border-bottom: 1px solid #E5E5E5;
}
.iamgeContainer p{
width: 100%;
font-size: 15px;
font-weight: 600;
margin-bottom: 10px;
}
.iamgeContainer {
width: 100%;
height: 154px;
padding: 0 16px;
background-color: #ffffff;
border-bottom: 1px solid #e5e5e5;
}
.iamgeContainer p {
width: 100%;
font-size: 15px;
font-weight: 600;
margin-bottom: 10px;
}

.uploadImgWrapper{
width: 100%;
display: flex;
gap: 10px;
position: relative;
}
.imageWrapper{
width: 100px;
height: 100px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
cursor: pointer;
}
.imageWrapper img.upload {
width: 100%;
height: 100%;
border-radius: 8px;
}
.uploadImg{
width: 24px;
height: 24px;
margin: 0;
cursor: pointer;
position: relative;
}
.uploadImg img {
width: 100%;
height: 100%;
}
.hiddenInput {
display: none;
}
.delete{
width: 28px;
height: 28px;
background-image: url('../../assets/image/close_with_circle.png');
background-size: cover;
z-index: 4;
position: absolute;
top: 4px;
right: 4px;
cursor: pointer;
}
}
.uploadImgWrapper {
width: 100%;
display: flex;
gap: 10px;
position: relative;
}
.imageWrapper {
width: 100px;
height: 100px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
cursor: pointer;
}
.imageWrapper img.upload {
width: 100%;
height: 100%;
border-radius: 8px;
}
.uploadImg {
width: 24px;
height: 24px;
margin: 0;
cursor: pointer;
position: relative;
}
.uploadImg img {
width: 100%;
height: 100%;
}
.hiddenInput {
display: none;
}
.delete {
width: 28px;
height: 28px;
background-image: url('../../assets/image/close_with_circle.png');
background-size: cover;
z-index: 4;
position: absolute;
top: 4px;
right: 4px;
cursor: pointer;
}
}
30 changes: 19 additions & 11 deletions src/components/studyPostWrite/PostHeader.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
import style from './PostHeader.module.css';
import cancelBtn from '../../assets/image/cancel.png';

const Header = ({onOpenConfirmModal}) => {
return (
<div className={style.header}>
<h3 style={{ fontFamily: 'jalnan', marginTop: '21px', fontWeight: 500 }}>
팀원 모으기
</h3>
<img src={cancelBtn} onClick={onOpenConfirmModal} alt="Cancel" />
</div>
);
}
const Header = ({ onOpenConfirmModal }) => {
return (
<div className={style.header}>
<h3
style={{
fontFamily: 'jalnan',
marginTop: '21px',
fontWeight: 500,
fontSize: '25px',
paddingTop: '5px',
}}
>
팀원 모으기
</h3>
<img src={cancelBtn} onClick={onOpenConfirmModal} alt="Cancel" />
</div>
);
};

export default Header;
export default Header;
41 changes: 21 additions & 20 deletions src/components/studyPostWrite/PostHeader.module.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
@media (min-width: 768px) {
.header {
width: 28vw;
height: 7vh;
background-color: #ffffff;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #E5E5E5;
}
.header {
width: 674px;
height: 7vh;
background-color: #ffffff;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #e5e5e5;
padding: 0 25px;
}
}

@media (max-width: 768px) {
.header {
width: 100vw;
height: 48px;
background-color: #ffffff;
display: flex;
justify-content: space-around;
align-items: center;
gap: 200px;
border-bottom: 1px solid #E5E5E5;
}
}
.header {
width: 100vw;
height: 48px;
background-color: #ffffff;
display: flex;
justify-content: space-around;
align-items: center;
gap: 200px;
border-bottom: 1px solid #e5e5e5;
}
}
Loading

0 comments on commit 3c5b95d

Please sign in to comment.