Skip to content

Commit

Permalink
Merge branch 'develop' into shipment8
Browse files Browse the repository at this point in the history
  • Loading branch information
shoqying authored Dec 19, 2024
2 parents 16bc0a6 + beb065b commit eadbc65
Show file tree
Hide file tree
Showing 5 changed files with 327 additions and 309 deletions.
16 changes: 16 additions & 0 deletions stockMate/src/main/java/com/stockm8/controller/HomeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import javax.mail.internet.MimeMessage;
import javax.servlet.http.HttpSession;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
Expand Down Expand Up @@ -224,4 +225,19 @@ public String priceGET(Model model, HttpSession session) throws Exception {
return "/price";
}


// 약도 - /minimap (GET)
@RequestMapping(value = "/minimap", method = RequestMethod.GET)
public String minimapGET(Model model, HttpSession session) throws Exception {
Long userId = (Long) session.getAttribute("userId");
// if (id == null) {
// // 세션에 id가 없으면 에러 처리
// return "redirect:/user/main";
// }
// UserVO resultVO = userService.getUser(userId);
// model.addAttribute("resultVO", resultVO);
return "/minimap";
}

}

12 changes: 12 additions & 0 deletions stockMate/src/main/webapp/WEB-INF/views/dashboard.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
<title>대시보드</title>
<link rel="stylesheet" href="<c:url value='/resources/css/bannerStyle.css' />">
<style>
<<<<<<< HEAD
/* Reset and Global Styles */
body, html {
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
background-color: #f5f5f5;
color: #333;
height: 100%;
}
/* Flex Container */
.container {
display: flex;
Expand Down
223 changes: 125 additions & 98 deletions stockMate/src/main/webapp/WEB-INF/views/main.jsp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html lang="ko">
<head>
<meta charset="UTF-8">
Expand All @@ -17,8 +15,6 @@
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #121212;
color: #ffffff;
line-height: 1.6;
Expand Down Expand Up @@ -91,53 +87,6 @@ body {
box-shadow: 0 0 15px #007BFF, 0 0 30px #0056b3;
}
/* Content Section */
.content {
text-align: center;
padding: 50px 20px;
background: #1e1e1e;
border-top: 4px solid #007BFF;
border-radius: 10px 10px 0 0;
box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4);
}
.content h2 {
color: #007BFF;
font-size: 2.5rem;
margin-bottom: 15px;
}
/* Row Layout */
.content .row {
display: flex;
justify-content: center;
gap: 30px;
}
.content .column {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
max-width: 500px;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.content .column img {
width: 100%;
height: 400px;
object-fit: cover;
transition: transform 0.5s ease;
}
.content .column img:hover {
transform: scale(1.1);
}
/* Footer */
.footer {
background: #333333;
Expand All @@ -159,28 +108,70 @@ body {
text-decoration: underline;
}
/* 모달 기본 스타일 */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
justify-content: center;
align-items: center;
z-index: 1000;
animation: fadeIn 0.3s ease-in-out;
}
/* 모달 내용 */
.modal-content {
background-color: #ffffff;
color: #333333;
padding: 30px;
border-radius: 15px;
width: 50%;
max-width: 600px;
position: relative;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
border: 3px solid #007BFF;
transform: translateY(-30px);
animation: slideDown 0.3s ease-in-out;
}
.map-section {
display: flex;
flex-direction: column;
align-items: center; /* 가운데 정렬 */
justify-content: center;
text-align: center;
height: 60vh;
/* 닫기 버튼 */
.close {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
font-weight: bold;
color: #333333;
cursor: pointer;
}
.map-section img {
max-width: 1050px; /* 이미지 최대 너비 설정 */
width: 100%; /* 반응형 이미지 크기 */
height: auto;
transition: transform 0.3s ease; /* 부드럽게 확대 효과 */
.close:hover {
color: red;
}
.map-section img:hover {
transform: scale(1.5); /* 이미지 안에서만 확대 */
@keyframes fadeIn {
from {
background-color: rgba(0, 0, 0, 0);
}
to {
background-color: rgba(0, 0, 0, 0.6);
}
}
@keyframes slideDown {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
</style>
</head>
<body>
Expand All @@ -193,54 +184,90 @@ body {
<!-- Navigation -->
<div class="nav">
<a href="user/signup">회원가입</a>
<a href="user/signin">로그인</a>
<a href="/dashboard">대시보드</a>
<a href="/howtouse">대시보드 사용법</a>
<a href="/intro">회사소개</a>
<a href="/location">창고소개</a>
<a href="/price">임대료</a>
<a href="/consultation">상담문의</a>
<a href="https://map.naver.com/p/search/%EA%B2%BD%EA%B8%B0%EB%8F%84%20%EC%9A%A9%EC%9D%B8%EC%8B%9C%20%EC%B2%98%EC%9D%B8%EA%B5%AC%20%EC%96%91%EC%A7%80%EB%A9%B4%20%EC%A3%BC%EB%B6%81%EB%A1%9C%20103-1/address/14164717.7610606,4473895.3924035,%EA%B2%BD%EA%B8%B0%EB%8F%84%20%EC%9A%A9%EC%9D%B8%EC%8B%9C%20%EC%B2%98%EC%9D%B8%EA%B5%AC%20%EC%96%91%EC%A7%80%EB%A9%B4%20%EC%A3%BC%EB%B6%81%EB%A1%9C%20103-1,new?searchType=address&isCorrectAnswer=true&c=15.00,0,0,0,dh" target="_blank">오시는 길</a>
</div>

<!-- Main Content -->
<div class="content">
<h1>20년 노하우의 Stock-mate</h1>

<div class="row">
<div class="column">
<img src="resources/css/9950253.jpg" alt="Warehouse Exterior">
</div>
<div class="column">
<img src="resources/css/36140.jpg" alt="Warehouse Interior">
</div>
</div>
<!-- Footer -->
<div class="footer">
<a href="javascript:void(0);" onclick="showTerms();">이용약관</a> |
<a href="javascript:void(0);" onclick="showPrivacyPolicy();">개인정보취급방침</a> |
<a href="javascript:void(0);" onclick="showEmailPolicy();">이메일주소무단수집거부</a>
</div>

<!-- Map Section -->
<div class="map-section">
<h3>회사 약도</h3>
<img src="resources/css/약도.png" alt="회사 약도">
<!-- '이용약관' 모달 -->
<div id="termsModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal('termsModal');">&times;</span>
<h2>이용약관</h2>
<p>
<strong>제 1조 총칙 </strong><br>
이 약관은 stock-mate(이하 "회사")가 제공하는 모든 서비스의 이용조건 및 절차를 규정함을 목적으로 합니다.
</p>
<p>
<strong>제 2조 약관의 효력과 변경 </strong><br>
(1) 이 약관은 본 사이트에 공지함으로써 효력을 발휘합니다.<br>
(2) 회사는 필요 시 약관을 변경할 수 있으며, 변경된 약관은 사이트에 게시하거나 기타 방법으로 공지합니다.
</p>
</div>
</div>

<!-- Additional Contact Info -->
<div class="contact-info" style="text-align: center; margin: 20px 0; color: #ffffff;">
<h3 style="color: #007BFF;">문의사항</h3>
<p>대표번호: <strong>031-532-0223</strong></p>
<p>영업문의: <strong>황성인 센터장 010-5555-6354</strong></p>
<p style="font-size: 0.9rem;">경기 용인시 처인구 양지면 주북로 105-5</p>
</div>
<!-- '개인정보취급방침' 모달 -->
<div id="privacyModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal('privacyModal');">&times;</span>
<h2>개인정보취급방침</h2>
<p>
안성창고 회원의 개인 정보 보호를 매우 중요시하며, <br>
<strong>[정보통신망 이용 촉진 등에 관한 법률]</strong>을 준수하고 있습니다.<br>
고객님의 개인 정보 보호를 위해 최선을 다하겠습니다.
</p>
<p>
본 방침은 2020년 10월 19일부터 시행됩니다.
</p>
</div>
</div>

<!-- '이메일주소무단수집거부' 모달 -->
<div id="emailPolicyModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal('emailPolicyModal');">&times;</span>
<h2>이메일주소무단수집거부</h2>
<p>
본 사이트에 게시된 이메일 주소가 전자우편 수집 프로그램이나 그 밖의 기술적 장치를 이용하여 무단으로
수집되는 것을 거부하며, 이를 위반 시 정보통신망 법에 의해 형사처분됨을 유념하시기 바랍니다.
</p>
<p>
정보통신망 법 제50조 2<br>
<strong>[전자우편 주소의 무단 수집 행위 등 금지]</strong><br>
1. 누구든지 전자우편 주소의 수집을 거부하는 의사가 명시된 인터넷 홈페이지에서 자동으로 전자우편 주소를 수집하는 프로그램 또는 기술적 장치를 이용하여 전자우편 주소를 수집하여서는 아니 된다.<br>
2. 누구든지 제1항의 규정을 위반하여 수집된 전자우편 주소를 판매, 유통하여서는 아니 된다.<br>
3. 누구든지 제1항 및 2항의 규정에 의하여 수집, 판매 및 유통이 금지된 전자우편 주소임을 알고 이를 정보 전송에 이용하여서는 아니 된다.
</p>
</div>
</div>

<script>
function showTerms() {
document.getElementById("termsModal").style.display = "flex";
}
<!-- Back Button -->
<div class="back-button">
<a href="#">뒤로 돌아가기</a>
</div>
function showPrivacyPolicy() {
document.getElementById("privacyModal").style.display = "flex";
}
function showEmailPolicy() {
document.getElementById("emailPolicyModal").style.display = "flex";
}
<!-- Footer -->
<div class="footer">
회사 정보 - 사업자 번호, 연락처 등 유의 사항<br>
<a href="#">개인정보 처리방침</a> | <a href="#">이용약관</a>
</div>
function closeModal(modalId) {
document.getElementById(modalId).style.display = "none";
}
</script>
</body>
</html>
Loading

0 comments on commit eadbc65

Please sign in to comment.