-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from LikeLionHGU/mang_#17/profile
๐จ Profile page ํ๋ค๊ฐ ๋ง์
- Loading branch information
Showing
15 changed files
with
213 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,91 @@ | ||
// ์๋๋ฐฉ ํ๋กํ ๋ณด์ด๋ ํ์ด์ง | ||
import React, { useEffect, useState } from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
import EditImg from "../imgs/edit.svg"; | ||
import ImgNone from "../imgs/img_none.svg"; | ||
import Header from "../components/Header"; | ||
import Slide from "../components/Slide"; | ||
import axios from "axios"; | ||
|
||
import "../styles/profile.scss"; | ||
|
||
export default function Profile() { | ||
return <>Hi</>; | ||
} | ||
const navigate = useNavigate(); | ||
const [wallpaper, setWallPaper] = useState(`${ImgNone}`); | ||
const [profile, setProFile] = useState(`${ImgNone}`); | ||
const [userInfo, setUserInfo] = useState([]); | ||
const [isSubscribed, setIsSubscribed] = useState(false); | ||
|
||
const handleSubscribe = () => { | ||
setIsSubscribed(!isSubscribed); | ||
}; | ||
|
||
return( | ||
<div className="profile-page"> | ||
<Header mode={2} /> | ||
<div className="profile-container"> | ||
<div className="profile-wall-paper-section"> | ||
<img className="profile-wall-pape-cover" src={wallpaper} alt="img" /> | ||
|
||
<div className="profile-img-section"> | ||
<img className="profile-img-cover" src={profile} alt="img" /> | ||
</div> | ||
</div> | ||
|
||
|
||
<div className="profile-details"> | ||
<div className="profile-details-exp"> | ||
<div className="profile-details-edit"> | ||
<div>{userInfo.name}</div> | ||
</div> | ||
<div>{userInfo.userOneliner}</div> | ||
<div>์ด๋ฉ์ผ</div> | ||
<div>{userInfo.email}</div> | ||
</div> | ||
<div className="profile-details-count"> | ||
<div className="books-progress-count"> | ||
<div>์งํ ์ค์ธ ์ฑ </div> | ||
<div>{userInfo.progressProjects}๊ถ</div> | ||
</div> | ||
<div className="books-completed-count"> | ||
<div>์๊ฒฐ๋ ์ฑ </div> | ||
<div>{userInfo.finishedProjects}๊ถ</div> | ||
</div> | ||
<div className="books-subscribe-count"> | ||
<div>๊ตฌ๋ ์</div> | ||
<div>{userInfo.subscribeUserCounts}๋ช </div> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<button onClick={handleSubscribe}> | ||
{isSubscribed ? '๊ตฌ๋ ์ค' : '๊ตฌ๋ ํ๊ธฐ'} | ||
</button> | ||
</div> | ||
|
||
</div> | ||
|
||
<div className="profile-book-lists"> | ||
<div className="profile-book-projects"> | ||
<div> | ||
ํ๋ก์ ํธ | ||
</div> | ||
<Slide mode={2} data={userInfo.progressProjectList || []} /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
) | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.profile-page { | ||
height: 100vh; | ||
} | ||
|
||
.profile-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.profile-wall-paper-section { | ||
width: 100%; | ||
height: 362px; | ||
overflow: hidden; | ||
padding: 0 !important; | ||
position: relative; | ||
} | ||
|
||
.profile-wall-pape-cover { | ||
width: 100%; | ||
height: 100%; | ||
-o-object-fit: cover; | ||
object-fit: cover; | ||
} | ||
|
||
.profile-img-section { | ||
top: 10px; | ||
width: 100px; | ||
height: 100px; | ||
z-index: 10; | ||
position: relative; | ||
margin-top: 20px; | ||
} | ||
|
||
.profile-img-cover { | ||
width: 100%; | ||
height: 100%; | ||
-o-object-fit: cover; | ||
object-fit: cover; | ||
}/*# sourceMappingURL=profile.css.map */ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.profile-page{ | ||
height: 100vh; | ||
} | ||
|
||
.profile-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.profile-wall-paper-section { | ||
width: 100%; | ||
height: 362px; | ||
overflow: hidden; | ||
padding: 0 !important; // ํจ๋ฉ์ ํ์คํ๊ฒ ์ ๊ฑฐํ๊ธฐ ์ํด !important ์ฌ์ฉ | ||
position: relative; | ||
} | ||
|
||
.profile-wall-pape-cover { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
|
||
.profile-img-section { | ||
top: 10px; // ํ์ํ ์์น์ ๋ง๊ฒ ์กฐ์ | ||
width: 100px; | ||
height: 100px; | ||
z-index: 10; | ||
position: relative; | ||
margin-top: 20px; // ์ฌ๋ฐฑ ์ถ๊ฐ | ||
} | ||
|
||
.profile-img-cover { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} |