Search

프로필 화면 생성

유형
화면구현
작업 내용
Date
2023/03/08
링크
비고
프로필 화면 코드
화면은 피그마에 있는 화면과 크게 다르지 않기 때문에 넣지 않겠습니다.
프로필 화면을 클릭하면 프로필 수정창이 뜰 수 있도록 팝업창 기능을 넣었습니다.
아직 프로필 백단을 맡은 조원이 develop 브랜치에 병합을 하지 않은 상태라 url 을 알 수 없었습니다. 그래서 대강 login 화면이 나오게 임의로 url 을 지정하였습니다.
프로필 백단을 맡은 조원이 쉽게 이용할 수 있도록 주석을 꼼꼼히 달았습니다.
<!-- 프로필 화면 --> <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="main_layout"> <head> <title>Profile</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="../../static/css/profile.css" th:href="@{/css/profile.css}"/> </head> <body> <!-- 정말 위치와 CSS 만 입혀 놨으니, 만들어 놓으신 파일 들을 보면서 수정해주세요 --> <div layout:fragment="content"> <div class="container__profile"> <div class="txt__welcome">님 안녕하세요</div> <!-- 클릭 하면 유저 사진 바꿀수 있는 팝업창 생성 --> <button class="wrapper__user__pic" onclick="window.open('/login', 'window_name', 'width=430, height=500, location=no, status=no, scrollbars=yes');"></button> <!-- 랭크 부분은 나중에 다같이 상의 --> <div class="wrapper__lank"> <div class="user__lank">새싹 여행자</div> </div> <!-- 클래스 이름을 알맞게 수정 해서 쓰면 됩니다 . id 를 쓰셔도 좋아요 --> <div class="wrapper__profile__btn"> <button class="btn__travel1">님의 여행 일정</button> <button class="btn__travel2">님의 이전 여행</button> </div> </div> </div> </body> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="/js/jQuery-2.1.4.min.js"></script> <script></script>
HTML
복사