코딩 연습장/JSP

Python/JSP/R 이용한 맛집 프로젝트 - 9 (JSP 지역별 지도화면)

Do아 2021. 6. 19. 22:09
728x90

2021/04/14(수)

 

 

 

 

JSP 마이페이지 알고리즘 참조

https://cordingdoah.tistory.com/104

 

Python/JSP/R 이용한 맛집 프로젝트 - 8 (JSP 마이 페이지)

2021/04/14(수) JSP 회원가입 알고리즘 참조 https://cordingdoah.tistory.com/103 Python/JSP/R 이용한 맛집 프로젝트 - 7 (JSP 회원가입) 2021/04/14(수) JSP 아이디찾기, 비밀번호찾기 알고리즘 참고 https://c..

cordingdoah.tistory.com

 

 

 

 

 

이제 각 지도화면을 띄울차례 기존에 Python으로 생성한 지도를 좀더 보기 쉽게 꾸며줌

왼쪽위에 별점 마커 띄우기

<css>

 .STAR {
            margin-right: 10px;
            margin-top: 10px;
            cursor: auto;
            float: left;
            clear: both;
            position: relative;
            z-index: 800;
            pointer-events: visiblePainted;
            pointer-events: auto;
            box-shadow: 0 1px 10px rgb(0 0 0 / 65%);
            border-radius: 4px;
            width: 150px;
            height: 190px;
            text-align: center;
            background-color: rgba(255, 255, 255, 0.6);
            padding: 10px;
        }
                     <div class="STAR">
                         <p><Label style="font-size: 15px; font-weight: 900;">별점별 마커</Label></p>
                         <div class="awesome-marker-icon-red awesome-marker leaflet-zoom-animated leaflet-interactive"
                             tabindex="0" style="margin-top: 40px; margin-left: 17px;">
                             <i class="fa-rotate-0 glyphicon glyphicon-info-sign  icon-white"></i>
                         </div>
                         <div class="awesome-marker-icon-orange awesome-marker leaflet-zoom-animated leaflet-interactive"
                             tabindex="0" style="margin-top: 90px; margin-left: 17px;">
                             <i class="fa-rotate-0 glyphicon glyphicon-info-sign  icon-white">
                             </i>
                         </div>
                         <div class="awesome-marker-icon-lightgreen awesome-marker leaflet-zoom-animated leaflet-interactive"
                             tabindex="0" style="margin-top: 140px; margin-left: 17px;">
                             <i class="fa-rotate-0 glyphicon glyphicon-info-sign  icon-white"></i>
                         </div>
                         <label
                             style="font-size: 14px; font-weight: 900; margin-top: 5px; margin-left: 35px;">4.0~5.0점</label>
                         <label
                             style="font-size: 14px; font-weight: 900; margin-top: 25px; margin-left: 35px;">3.0~4.0점</label>
                         <label
                             style="font-size: 14px; font-weight: 900; margin-top: 20px; margin-left: 35px;">0.0~3.0점</label>
                     </div>

 

 

 

 

오른쪽 아래 한식, 일식, 중식, 양식 버튼 생성

<css>

 .menu {
            margin-right: 10px;
            margin-bottom: 30px;
            cursor: auto;
            float: left;
            clear: both;
            position: relative;
            z-index: 800;
            pointer-events: visiblePainted;
            pointer-events: auto;
        }

        .menu button {
            width: 140px;
            height: 45px;
            font-family: 'Roboto', sans-serif;
            font-size: 15px;
            text-transform: uppercase;
            letter-spacing: 2.5px;
            color: #000;
            background-color: rgba(255, 255, 255, 0.6);
            border: none;
            border-radius: 45px;
            box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease 0s;
            cursor: pointer;
            outline: none;
            margin-bottom: 10px;
            font-weight: 900;
        }

        .menu button:hover {

            box-shadow: 0px 15px 20px rgba(131, 131, 131, 0.4);
            color: #fff;
            transform: translateY(-7px);
        }

        .all:hover {
            backgrpund-color: #7c7c7c;
        }

        .kr:hover {
            background-color: #197740;
        }

        .jp:hover {
            background-color: #a1c74a;
        }

        .chi:hover {
            background-color: #c55c3c;
        }

        .we:hover {
            background-color: #465ba0;
        }
<div class="menu">
	<button class="all" style="background-color: #7c7c7c; color: #fff;" onclick="location.href = 'selectAll.html'">전체</button><br>
    	<button class="kr" onclick="location.href = 'selectKorea.html'">한식</button><br>
	<button class="jp" onclick="location.href = 'selectJapan.html'">일식</button><br>
	<button class="chi" onclick="location.href = 'selectChina.html'">중식</button><br>
	<button class="we" onclick="location.href = 'selectWestern.html'">양식</button>
</div>

 

 

 

--> 결과화면 

 

728x90