diff --git a/my-app/package.json b/my-app/package.json index bebd2c6..b2e5146 100644 --- a/my-app/package.json +++ b/my-app/package.json @@ -2,7 +2,7 @@ "name": "my-app", "version": "0.1.0", "private": true, - "proxy":"https://api.unsplash.com", + "proxy": "https://api.unsplash.com", "dependencies": { "@testing-library/jest-dom": "^5.11.5", "@testing-library/react": "^11.1.1", diff --git a/my-app/src/routes/Mypage.css b/my-app/src/routes/Mypage.css new file mode 100644 index 0000000..24afcb7 --- /dev/null +++ b/my-app/src/routes/Mypage.css @@ -0,0 +1,212 @@ +.mypage_page { + display: block; + /* border: 2px solid black; */ + width: 100%; + height: auto; + background-color: white; +} +.mypage_nav { + position: static; + box-sizing: border-box; + height: 50px; + top: 0; + display: flex; + align-items: center; + width: 100vw; + padding-left: 42px; + padding-right: 42px; + background-color: #e9ad17; +} +.mypage_logo_box { + box-sizing: border-box; + display: block; + margin: auto 0; +} +.Mypage_logo { + margin: 0 auto; + vertical-align: bottom; + max-width: 110px; + max-height: 60px; +} +/* 회원정보칸 */ +.mypage_userinfo { + /* background-color: #fff; */ + position: static; + top: 0; + align-content: center; + padding-left: 55px; + padding-right: 55px; + padding-top: 20px; + padding-bottom: 20px; +} +.mypage_userinfo_frame { + height: 300px; + border: 2px solid #937666; + border-radius: 10px; + padding-left: 20px; + padding: 20px; + height: auto; +} +.mypage_userinfo_content_box { + overflow: hidden; + /* border: 2px solid black; */ + height: auto; + padding: 20px; +} +.mypage_profile_photo { + /* box-sizing: border-box; */ + overflow: hidden; + float: left; + /* border: 2px solid black; */ + height: 180px; + width: 190px; + padding: 10px; +} +#mypage_profile_photo { + overflow: hidden; + width: 160px; + height: 160px; +} +.mypage_profile { + overflow: hidden; + box-sizing: border-box; + float: left; + /* border: 2px solid black; */ + height: 180px; + width: 70%; + padding: 20px; +} +.mypage_profile_name { + position: static; + display: block; + /* vertical-align: middle; */ + padding: 0px; + height: auto; + margin: 0; + margin-bottom: 10px; +} +.mypage_profile_email { + display: block; + position: static; + padding: 0px; + height: auto; + margin: 0; + margin-bottom: 10px; +} +.mypage_profile_phone { + display: block; + position: static; + padding: 0px; + height: auto; + margin: 0; + margin-bottom: 10px; +} +#mypage_profile_name { + margin-right: 72px; +} +#mypage_profile_email { + margin-right: 55px; +} +#mypage_profile_phone { + margin-right: 20px; +} +dl { + display: flex; +} +dt { + display: block; +} +dd { + display: block; +} +.mypage_profile_edit { + position: static; + width: 100%; +} +#mypage_edit_btn { + float: right; + cursor: pointer; + text-align: center; + display: block; + height: auto; + width: 20%; + font-size: 13px !important; + font-weight: 700; + padding: 9px 12px; + box-sizing: border-box; + border-radius: 5px; + background: 0; + background-color: #e9ad17; + color: #fff !important; + /* text-shadow: none; */ + border: 1px solid transparent; +} +/* 내 ToGoList칸 */ +.mypage_mylist { + position: static; + /* border: 2px solid black; */ + padding-left: 55px; + padding-right: 55px; + padding-top: 20px; + padding-bottom: 20px; + height: auto; + margin: 0 auto; +} +.mypage_mycontent_box { + height: 600px; + border: 2px solid #937666; + border-radius: 10px; + padding: 20px; +} +.mypage_mycontent_frame { + height: auto; + border: 2px solid #937666; + border-radius: 10px; + padding: 10px; +} +.mypage_mycontent_map { + width: 100%; + height: 100px; + border: 2px solid #937666; + border-radius: 10px; + margin-bottom: 10px; +} +.mypage_mycontent_content { + width: 100%; + height: auto; + border: 2px solid #937666; + border-radius: 10px; + padding: 10px; + margin-bottom: 10px; +} +.mypage_mycontent_tag { + width: 100%; + height: auto; + border: 2px solid #937666; + border-radius: 10px; + padding: 10px; +} +/* 계정삭제 */ +.mypage_deleteinfo { + position: fixed static; + bottom: 0; + height: 50px; +} +#delete_myinfo { + cursor: pointer; + display: block; + height: auto; + margin-left: auto; + margin-right: auto; + width: 20%; + font-size: 13px !important; + font-weight: 700; + padding: 9px 12px; + box-sizing: border-box; + border-radius: 5px; + background: 0; + background-color: #e9ad17; + color: #fff !important; + /* text-shadow: none; */ + border: 1px solid transparent; +} diff --git a/my-app/src/routes/Mypage.js b/my-app/src/routes/Mypage.js index 55e0a3a..d39e249 100644 --- a/my-app/src/routes/Mypage.js +++ b/my-app/src/routes/Mypage.js @@ -1,7 +1,72 @@ +/* eslint-disable */ import React from "react"; - -function Mypage(){ - return ( mypage!!); +import { Link, Route, Redirect } from "react-router-dom" +import './Mypage.css' +class Mypage extends React.Component{ + constructor(props) { + super(props) + this.state = { + } + } + render(){ + return ( +