Skip to content

Commit

Permalink
Merge pull request #86 from JaeHeon-Kim/all_about_css
Browse files Browse the repository at this point in the history
logout css and favicons
  • Loading branch information
JaeHeon-Kim authored May 6, 2021
2 parents 147052a + 14412a3 commit dd0482d
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 56 deletions.
Binary file removed public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/mindcaptor_icon.ico" />
<link rel="icon" href="%PUBLIC_URL%/mindcaptor_icon_cat_face_circle2.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand Down
Binary file removed public/mindcaptor_icon.ico
Binary file not shown.
Binary file removed public/mindcaptor_icon.png
Binary file not shown.
Binary file added public/mindcaptor_icon_cat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/mindcaptor_icon_word.ico
Binary file not shown.
30 changes: 5 additions & 25 deletions src/MyPages/MyPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ import Character2 from '../images/Character2.png';
import Character3 from '../images/Character3.png';
import Character4 from '../images/Character4.png';

const axios = require('axios');

function MyPage({ accessToken, isLogIn, loginCheck, userInfo }) {
const PhotoData = [Character1, Character2, Character3, Character4];
const [nowPhoto, setPhoto] = useState(Character1);
const [isOpen, setIsOpen] = useState(false);
const [isPhotoBoxOpen, setIsPhotoBoxOpen] = useState(false);
const { nickname, email, profile_image, comment, id } = userInfo

const ChangeInputPhoto = function (photo) {
// e.preventDefault();
setPhoto(photo);
Expand Down Expand Up @@ -46,27 +42,9 @@ function MyPage({ accessToken, isLogIn, loginCheck, userInfo }) {
};
});


const MyPageSaveData= async () =>{
const SavePhoto = await axios.post(`http://localhost:4000/mypage/${id}/profile`,
{
authorization: accessToken,
//new_profile: number
},
{
headers: { 'Content-Type': 'application/json' },
Credentials: 'include',
}

)
}




return (
<div>
<Header nickname={nickname}isOpen={isOpen} nowPhoto={nowPhoto} MyPageSaveData={MyPageSaveData}/>
<Header isOpen={isOpen} nowPhoto={nowPhoto} />
<content className="container">
<div className="pro_search_box">
<div className="introBox">
Expand All @@ -75,11 +53,13 @@ function MyPage({ accessToken, isLogIn, loginCheck, userInfo }) {
<button className="changeProPhoto" onClick={handlePhotoBox}>
편집
</button>
<div className="userNickName">닉네임 : {nickname} </div>
<div className="userNickName">닉네임 : {userInfo.nickname} </div>
</div>
<div className="intro">
<h1>자기소개</h1>
<textarea placeholder={comment===null ? "클릭하여 자기소개를 적어주세요!" : comment} />
<textarea
placeholder={`안녕하세요, ${userInfo.nickname}입니다.`}
/>
</div>
</div>
<SearchUser />
Expand Down
2 changes: 1 addition & 1 deletion src/MyPages/components/Complete.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Complete({ isOpen }) {
return (
<span>
{isOpen ? (
<div style={{ opacity: isOpen ? '1' : '0' }} className="changedPro">
<div style={{ opacity: isOpen ? '1' : '0' }} className="changedProfile">
<h3>사진변경이 완료되었습니다.</h3>
</div>
) : null}
Expand Down
11 changes: 8 additions & 3 deletions src/MyPages/components/ExitBtn.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import React from 'react';
import { useHistory } from 'react-router-dom';

export default function ExitBtn({MyPageSaveData}) {
export default function ExitBtn({ MyPageSaveData }) {
const history = useHistory();
return (
<span className="Exit">
<button onClick={() => {history.push('/Waiting')
MyPageSaveData()}}>나가기</button>
<button
onClick={() => {
history.push('/Waiting');
}}
>
나가기
</button>
</span>
);
}
4 changes: 2 additions & 2 deletions src/MyPages/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import React, { useEffect } from 'react';
import ExitBtn from './ExitBtn';
import Complete from './Complete';

export default function Header({ isOpen, nowPhoto,nickname,MyPageSaveData }) {
export default function Header({ isOpen, nowPhoto, nickname, MyPageSaveData }) {
return (
<header className="header">
<h1>{nickname}님의 마이페이지</h1>
<Complete isOpen={isOpen} />
<ExitBtn MyPageSaveData={MyPageSaveData}/>
<ExitBtn MyPageSaveData={MyPageSaveData} />
</header>
);
}
1 change: 0 additions & 1 deletion src/WaitingPages/Waiting.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default function Waiting({
// Handle forward event
} else {
setLocationKeys((keys) => [location.key, ...keys]);

history.push('/Waiting');
}
}
Expand Down
Binary file removed src/images/mindcaptor_logo.jpg
Binary file not shown.
Binary file removed src/images/mindcaptor_logo_welcome.png
Binary file not shown.
48 changes: 25 additions & 23 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,10 @@ $button-active-blue: #1669f2; */
}

.signout_btn {
width: 40px;
height: 160px;
width: 150px;
height: 60px;
cursor: pointer;
border-radius: 100px;
}

.waiting_box {
Expand Down Expand Up @@ -677,17 +679,16 @@ $button-active-blue: #1669f2; */
width: 200px;
height: 150px;
overflow-y: scroll;

}
.followList::-webkit-scrollbar{
/* .followList::-webkit-scrollbar {
width: 10px;
}
.followList::-webkit-scrollbar-track{
.followList::-webkit-scrollbar-track {
background-color: rgba(0, 0, 0, 0);
}
.followList::-webkit-scrollbar-thumb{
.followList::-webkit-scrollbar-thumb {
background-color: rgb(0, 0, 0);
}
} */

.follower {
width: 250px;
Expand All @@ -701,7 +702,7 @@ $button-active-blue: #1669f2; */
margin-top: 10px;
}

.changedPro {
.changedProfile {
position: absolute;
box-sizing: border-box;
text-align: center;
Expand All @@ -711,6 +712,7 @@ $button-active-blue: #1669f2; */
border-radius: 15px;
padding: 25px;
background-color: #77acf1;
visibility: 1;
transition: opacity 1.5s ease;
font-size: 20px;
color: white;
Expand Down Expand Up @@ -1013,18 +1015,18 @@ canvas {
height: 60px;
}

.idCreatedOk{
position: absolute;
box-sizing: border-box;
text-align: center;
width: 400px;
height: 100px;
border: 5px solid #0f4d86;
border-radius: 15px;
padding: 35px;
background-color: #77acf1;
transition: opacity 1.5s ease;
font-size: 20px;
color: white;
top: 10%;
}
.idCreatedOk {
position: absolute;
box-sizing: border-box;
text-align: center;
width: 400px;
height: 100px;
border: 5px solid #0f4d86;
border-radius: 15px;
padding: 35px;
background-color: #77acf1;
transition: opacity 1.5s ease;
font-size: 20px;
color: white;
top: 10%;
}

0 comments on commit dd0482d

Please sign in to comment.