Files
TK-FB-Project/web-ui/docs/index.html

295 lines
8.8 KiB
HTML

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>테크니컬코리아 문서 시스템</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f8f9fa;
min-height: 100vh;
color: #333;
padding: 20px;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 40px;
background: white;
border: 2px solid #dc2626;
box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
min-height: calc(100vh - 40px);
}
.header {
text-align: center;
margin-bottom: 40px;
padding-bottom: 30px;
border-bottom: 1px solid #dc2626;
}
.header h1 {
color: #dc2626;
font-size: 2rem;
margin-bottom: 10px;
font-weight: 500;
}
.header p {
color: #6b7280;
font-size: 1rem;
font-weight: 400;
}
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.card {
background: white;
border: 1px solid #dc2626;
padding: 25px;
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(220, 38, 38, 0.1);
}
.card:hover {
border-color: #991b1b;
box-shadow: 0 5px 20px rgba(220, 38, 38, 0.15);
transform: translateY(-2px);
}
.card-icon {
font-size: 2rem;
margin-bottom: 15px;
opacity: 0.8;
display: none;
}
.card h3 {
color: #111827;
font-size: 1.2rem;
margin-bottom: 10px;
font-weight: 600;
}
.card p {
color: #6b7280;
font-size: 0.9rem;
margin-bottom: 20px;
line-height: 1.5;
}
.card-link {
display: inline-block;
background: white;
color: #dc2626;
text-decoration: none;
padding: 10px 20px;
border: 1px solid #dc2626;
font-size: 0.9rem;
transition: all 0.3s ease;
font-weight: 500;
}
.card-link:hover {
background: #dc2626;
color: white;
}
.search-card {
grid-column: 1 / -1;
text-align: center;
}
.search-box {
display: flex;
gap: 10px;
margin-top: 15px;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
.search-box input {
flex: 1;
padding: 12px 15px;
background: white;
border: 1px solid #dc2626;
color: #111827;
font-size: 0.9rem;
outline: none;
transition: all 0.3s ease;
}
.search-box input::placeholder {
color: #9ca3af;
}
.search-box input:focus {
border-color: #991b1b;
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.search-box button {
background: white;
color: #dc2626;
border: 1px solid #dc2626;
padding: 12px 20px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.9rem;
font-weight: 500;
}
.search-box button:hover {
background: #dc2626;
color: white;
}
.footer {
text-align: center;
padding-top: 30px;
border-top: 1px solid #dc2626;
margin-top: auto;
}
.footer p {
color: #6b7280;
font-size: 0.8rem;
margin-bottom: 5px;
font-weight: 400;
}
/* 반응형 */
@media (max-width: 768px) {
.container {
padding: 20px;
margin: 10px;
}
.header h1 {
font-size: 1.6rem;
}
.card-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.search-box {
flex-direction: column;
}
.search-box button {
width: 100%;
}
}
</style>
</head>
<body>
<div class="container">
<header class="header">
<h1>테크니컬코리아 문서 시스템</h1>
<p>회사 규정 및 절차서 열람 시스템</p>
</header>
<main class="main-content">
<div class="card-grid">
<!-- HSE 문서 -->
<div class="card">
<h3>HSE 관리시스템</h3>
<p>ISO 45001:2018 기반 안전보건환경 관련 절차서</p>
<a href="hse.html" class="card-link">바로가기</a>
</div>
<!-- 품질 문서 -->
<div class="card">
<h3>품질 관리시스템</h3>
<p>ISO 9001 기반 품질관리 절차 및 매뉴얼</p>
<a href="quality.html" class="card-link">바로가기</a>
</div>
<!-- 인사 규정 -->
<div class="card">
<h3>인사 규정</h3>
<p>인사관리 규정 및 지침서</p>
<a href="hr.html" class="card-link">바로가기</a>
</div>
<!-- 기술 문서 -->
<div class="card">
<h3>기술 문서</h3>
<p>설계 표준, 용접절차, BOM 시스템 가이드라인</p>
<a href="technical.html" class="card-link">바로가기</a>
</div>
<!-- 경영 방침 -->
<div class="card">
<h3>경영 방침</h3>
<p>회사 방침, 윤리강령 및 정책 문서</p>
<a href="policy.html" class="card-link">바로가기</a>
</div>
<!-- 검색 -->
<div class="card search-card">
<h3>문서 검색</h3>
<div class="search-box">
<input type="text" id="searchInput" placeholder="문서명 또는 키워드 입력">
<button onclick="searchDocuments()">검색</button>
</div>
</div>
</div>
</main>
<footer class="footer">
<p>테크니컬코리아 내부 전용 문서시스템</p>
<p>http://192.168.0.3:10080/docs</p>
</footer>
</div>
<script>
// 문서 검색 기능
function searchDocuments() {
const searchTerm = document.getElementById('searchInput').value.toLowerCase().trim();
if (searchTerm === '') {
alert('검색어를 입력해주세요.');
return;
}
// 키워드에 따른 페이지 추천
if (searchTerm.includes('iso') || searchTerm.includes('45001') || searchTerm.includes('hse') || searchTerm.includes('안전')) {
window.location.href = 'hse.html';
} else if (searchTerm.includes('품질') || searchTerm.includes('quality') || searchTerm.includes('9001')) {
window.location.href = 'quality.html';
} else if (searchTerm.includes('인사') || searchTerm.includes('hr') || searchTerm.includes('급여')) {
window.location.href = 'hr.html';
} else if (searchTerm.includes('기술') || searchTerm.includes('설계') || searchTerm.includes('용접') || searchTerm.includes('bom')) {
window.location.href = 'technical.html';
} else if (searchTerm.includes('경영') || searchTerm.includes('정책') || searchTerm.includes('윤리')) {
window.location.href = 'policy.html';
} else {
alert('관련 문서를 찾을 수 없습니다. 다른 키워드로 시도해보세요.');
}
}
// Enter 키 검색
document.getElementById('searchInput').addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
searchDocuments();
}
});
</script>
</body>
</html>