IPTV 서비스에서 콘텐츠를 수급하는 CP들을 대상으로 하는 정산시스템에서 각 수급 담당자별로 개인화된 대시보드를 제공하고 싶어
Browse files여기 담기길 원하는 내용은 다음과 같고 한글 페이지로 구성해줘
신규 계약 리스트
정산 프로세스 일정
정산에 연계된 콘텐츠 편성 스케줄과 단가, Tier정보
내가 수급한 콘텐츠의 CP 계약 선택시 해당 계약의 월, 년간 누적치를 그래프로 표기
- README.md +8 -5
- index.html +377 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: CP 정산 마스터 대시보드 📊
|
| 3 |
+
colorFrom: green
|
| 4 |
+
colorTo: green
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
index.html
CHANGED
|
@@ -1,19 +1,378 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>CP 정산 마스터 대시보드</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 11 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 13 |
+
<style>
|
| 14 |
+
.dashboard-card {
|
| 15 |
+
transition: all 0.3s ease;
|
| 16 |
+
}
|
| 17 |
+
.dashboard-card:hover {
|
| 18 |
+
transform: translateY(-5px);
|
| 19 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 20 |
+
}
|
| 21 |
+
.custom-scrollbar::-webkit-scrollbar {
|
| 22 |
+
width: 6px;
|
| 23 |
+
height: 6px;
|
| 24 |
+
}
|
| 25 |
+
.custom-scrollbar::-webkit-scrollbar-track {
|
| 26 |
+
background: #f1f1f1;
|
| 27 |
+
border-radius: 10px;
|
| 28 |
+
}
|
| 29 |
+
.custom-scrollbar::-webkit-scrollbar-thumb {
|
| 30 |
+
background: #888;
|
| 31 |
+
border-radius: 10px;
|
| 32 |
+
}
|
| 33 |
+
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
| 34 |
+
background: #555;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
</head>
|
| 38 |
+
<body class="bg-gray-50" id="vanta-bg">
|
| 39 |
+
<div class="min-h-screen">
|
| 40 |
+
<!-- 상단 네비게이션 -->
|
| 41 |
+
<nav class="bg-blue-600 text-white shadow-lg">
|
| 42 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 43 |
+
<div class="flex justify-between h-16 items-center">
|
| 44 |
+
<div class="flex items-center">
|
| 45 |
+
<i data-feather="dollar-sign" class="mr-2"></i>
|
| 46 |
+
<span class="text-xl font-bold">CP 정산 마스터</span>
|
| 47 |
+
</div>
|
| 48 |
+
<div class="flex items-center space-x-4">
|
| 49 |
+
<div class="relative">
|
| 50 |
+
<i data-feather="bell" class="cursor-pointer"></i>
|
| 51 |
+
<span class="absolute -top-1 -right-1 h-3 w-3 bg-red-500 rounded-full"></span>
|
| 52 |
+
</div>
|
| 53 |
+
<div class="flex items-center">
|
| 54 |
+
<img src="http://static.photos/people/200x200/1" class="h-8 w-8 rounded-full mr-2" alt="프로필">
|
| 55 |
+
<span class="text-sm">홍길동 담당자</span>
|
| 56 |
+
</div>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
</nav>
|
| 61 |
+
|
| 62 |
+
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
|
| 63 |
+
<!-- 대시보드 헤더 -->
|
| 64 |
+
<div class="mb-8">
|
| 65 |
+
<h1 class="text-3xl font-bold text-gray-800">정산 대시보드</h1>
|
| 66 |
+
<p class="text-gray-600">최근 업데이트: <span id="current-date" class="font-medium"></span></p>
|
| 67 |
+
</div>
|
| 68 |
+
|
| 69 |
+
<!-- 위젯 그리드 -->
|
| 70 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
|
| 71 |
+
<!-- 신규 계약 카드 -->
|
| 72 |
+
<div class="dashboard-card bg-white rounded-xl shadow-md p-6">
|
| 73 |
+
<div class="flex justify-between items-center mb-4">
|
| 74 |
+
<h2 class="text-lg font-semibold text-gray-800">신규 계약 리스트</h2>
|
| 75 |
+
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded-full">5건</span>
|
| 76 |
+
</div>
|
| 77 |
+
<div class="h-60 overflow-y-auto custom-scrollbar">
|
| 78 |
+
<ul class="space-y-3">
|
| 79 |
+
<li class="flex items-center justify-between p-2 hover:bg-gray-50 rounded">
|
| 80 |
+
<div>
|
| 81 |
+
<p class="font-medium">(주)드라마월드</p>
|
| 82 |
+
<p class="text-sm text-gray-500">드라마 10편 패키지</p>
|
| 83 |
+
</div>
|
| 84 |
+
<span class="text-sm text-green-600">+ 2,500,000원</span>
|
| 85 |
+
</li>
|
| 86 |
+
<li class="flex items-center justify-between p-2 hover:bg-gray-50 rounded">
|
| 87 |
+
<div>
|
| 88 |
+
<p class="font-medium">영화사 예술의전당</p>
|
| 89 |
+
<p class="text-sm text-gray-500">클래식 영화 5편</p>
|
| 90 |
+
</div>
|
| 91 |
+
<span class="text-sm text-green-600">+ 1,800,000원</span>
|
| 92 |
+
</li>
|
| 93 |
+
<li class="flex items-center justify-between p-2 hover:bg-gray-50 rounded">
|
| 94 |
+
<div>
|
| 95 |
+
<p class="font-medium">(주)애니메이션랜드</p>
|
| 96 |
+
<p class="text-sm text-gray-500">애니메이션 시즌2</p>
|
| 97 |
+
</div>
|
| 98 |
+
<span class="text-sm text-green-600">+ 3,200,000원</span>
|
| 99 |
+
</li>
|
| 100 |
+
<li class="flex items-center justify-between p-2 hover:bg-gray-50 rounded">
|
| 101 |
+
<div>
|
| 102 |
+
<p class="font-medium">다큐프라임</p>
|
| 103 |
+
<p class="text-sm text-gray-500">자연다큐 3편</p>
|
| 104 |
+
</div>
|
| 105 |
+
<span class="text-sm text-green-600">+ 950,000원</span>
|
| 106 |
+
</li>
|
| 107 |
+
<li class="flex items-center justify-between p-2 hover:bg-gray-50 rounded">
|
| 108 |
+
<div>
|
| 109 |
+
<p class="font-medium">스포츠미디어</p>
|
| 110 |
+
<p class="text-sm text-gray-500">실시간 중계권</p>
|
| 111 |
+
</div>
|
| 112 |
+
<span class="text-sm text-green-600">+ 4,500,000원</span>
|
| 113 |
+
</li>
|
| 114 |
+
</ul>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="mt-4 text-right">
|
| 117 |
+
<button class="text-blue-600 hover:text-blue-800 text-sm font-medium flex items-center">
|
| 118 |
+
전체 보기 <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i>
|
| 119 |
+
</button>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
|
| 123 |
+
<!-- 정산 프로세스 일정 카드 -->
|
| 124 |
+
<div class="dashboard-card bg-white rounded-xl shadow-md p-6">
|
| 125 |
+
<div class="flex justify-between items-center mb-4">
|
| 126 |
+
<h2 class="text-lg font-semibold text-gray-800">정산 프로세스 일정</h2>
|
| 127 |
+
<span class="px-2 py-1 bg-purple-100 text-purple-800 text-xs font-medium rounded-full">진행중</span>
|
| 128 |
+
</div>
|
| 129 |
+
<div class="h-60 overflow-y-auto custom-scrollbar">
|
| 130 |
+
<div class="relative">
|
| 131 |
+
<div class="border-l-2 border-blue-200 pl-4 pb-4">
|
| 132 |
+
<div class="relative mb-6">
|
| 133 |
+
<div class="absolute -left-5 top-1 h-3 w-3 bg-green-500 rounded-full border-2 border-white"></div>
|
| 134 |
+
<h3 class="text-sm font-medium text-gray-800">정산 데이터 수집 완료</h3>
|
| 135 |
+
<p class="text-xs text-gray-500">2023.11.01</p>
|
| 136 |
+
</div>
|
| 137 |
+
<div class="relative mb-6">
|
| 138 |
+
<div class="absolute -left-5 top-1 h-3 w-3 bg-green-500 rounded-full border-2 border-white"></div>
|
| 139 |
+
<h3 class="text-sm font-medium text-gray-800">CP별 정산 금액 검증</h3>
|
| 140 |
+
<p class="text-xs text-gray-500">2023.11.03 ~ 2023.11.05</p>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="relative mb-6">
|
| 143 |
+
<div class="absolute -left-5 top-1 h-3 w-3 bg-blue-500 rounded-full border-2 border-white"></div>
|
| 144 |
+
<h3 class="text-sm font-medium text-gray-800">정산 내역 승인 요청</h3>
|
| 145 |
+
<p class="text-xs text-gray-500">2023.11.10</p>
|
| 146 |
+
</div>
|
| 147 |
+
<div class="relative mb-6">
|
| 148 |
+
<div class="absolute -left-5 top-1 h-3 w-3 bg-gray-300 rounded-full border-2 border-white"></div>
|
| 149 |
+
<h3 class="text-sm font-medium text-gray-800">정산 금액 지급</h3>
|
| 150 |
+
<p class="text-xs text-gray-500">2023.11.25</p>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
<div class="mt-4">
|
| 156 |
+
<div class="bg-gray-100 rounded-full h-2">
|
| 157 |
+
<div class="bg-blue-600 h-2 rounded-full" style="width: 60%"></div>
|
| 158 |
+
</div>
|
| 159 |
+
<p class="text-xs text-gray-600 mt-1">진행률: 60%</p>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
|
| 163 |
+
<!-- 콘텐츠 편성 스케줄 카드 -->
|
| 164 |
+
<div class="dashboard-card bg-white rounded-xl shadow-md p-6">
|
| 165 |
+
<div class="flex justify-between items-center mb-4">
|
| 166 |
+
<h2 class="text-lg font-semibold text-gray-800">콘텐츠 편성 스케줄</h2>
|
| 167 |
+
<div class="flex space-x-2">
|
| 168 |
+
<button class="p-1 rounded bg-gray-100 hover:bg-gray-200">
|
| 169 |
+
<i data-feather="calendar" class="w-4 h-4 text-gray-600"></i>
|
| 170 |
+
</button>
|
| 171 |
+
<button class="p-1 rounded bg-gray-100 hover:bg-gray-200">
|
| 172 |
+
<i data-feather="filter" class="w-4 h-4 text-gray-600"></i>
|
| 173 |
+
</button>
|
| 174 |
+
</div>
|
| 175 |
+
</div>
|
| 176 |
+
<div class="h-60 overflow-y-auto custom-scrollbar">
|
| 177 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 178 |
+
<thead class="bg-gray-50">
|
| 179 |
+
<tr>
|
| 180 |
+
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">콘텐츠</th>
|
| 181 |
+
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">편성일</th>
|
| 182 |
+
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">단가</th>
|
| 183 |
+
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tier</th>
|
| 184 |
+
</tr>
|
| 185 |
+
</thead>
|
| 186 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 187 |
+
<tr>
|
| 188 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm font-medium text-gray-900">신의 퀴즈 S5</td>
|
| 189 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">매주 금요일</td>
|
| 190 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">500,000원</td>
|
| 191 |
+
<td class="px-3 py-2 whitespace-nowrap">
|
| 192 |
+
<span class="px-2 py-1 bg-green-100 text-green-800 text-xs font-medium rounded-full">A</span>
|
| 193 |
+
</td>
|
| 194 |
+
</tr>
|
| 195 |
+
<tr>
|
| 196 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm font-medium text-gray-900">미스터션샤인</td>
|
| 197 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">매주 월요일</td>
|
| 198 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">450,000원</td>
|
| 199 |
+
<td class="px-3 py-2 whitespace-nowrap">
|
| 200 |
+
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded-full">B</span>
|
| 201 |
+
</td>
|
| 202 |
+
</tr>
|
| 203 |
+
<tr>
|
| 204 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm font-medium text-gray-900">해피투게더</td>
|
| 205 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">매주 목요일</td>
|
| 206 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">300,000원</td>
|
| 207 |
+
<td class="px-3 py-2 whitespace-nowrap">
|
| 208 |
+
<span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs font-medium rounded-full">C</span>
|
| 209 |
+
</td>
|
| 210 |
+
</tr>
|
| 211 |
+
<tr>
|
| 212 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm font-medium text-gray-900">런닝맨</td>
|
| 213 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">매주 일요일</td>
|
| 214 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">600,000원</td>
|
| 215 |
+
<td class="px-3 py-2 whitespace-nowrap">
|
| 216 |
+
<span class="px-2 py-1 bg-green-100 text-green-800 text-xs font-medium rounded-full">A</span>
|
| 217 |
+
</td>
|
| 218 |
+
</tr>
|
| 219 |
+
<tr>
|
| 220 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm font-medium text-gray-900">미운 우리 새끼</td>
|
| 221 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">매주 토요일</td>
|
| 222 |
+
<td class="px-3 py-2 whitespace-nowrap text-sm text-gray-500">400,000원</td>
|
| 223 |
+
<td class="px-3 py-2 whitespace-nowrap">
|
| 224 |
+
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded-full">B</span>
|
| 225 |
+
</td>
|
| 226 |
+
</tr>
|
| 227 |
+
</tbody>
|
| 228 |
+
</table>
|
| 229 |
+
</div>
|
| 230 |
+
<div class="mt-4 text-right">
|
| 231 |
+
<button class="text-blue-600 hover:text-blue-800 text-sm font-medium flex items-center">
|
| 232 |
+
전체 보기 <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i>
|
| 233 |
+
</button>
|
| 234 |
+
</div>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
|
| 238 |
+
<!-- 누적 정산 그래프 -->
|
| 239 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 240 |
+
<div class="flex justify-between items-center mb-6">
|
| 241 |
+
<h2 class="text-xl font-semibold text-gray-800">CP별 누적 정산 현황</h2>
|
| 242 |
+
<div class="flex items-center space-x-2">
|
| 243 |
+
<select class="border border-gray-300 rounded-md px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 244 |
+
<option>최근 6개월</option>
|
| 245 |
+
<option selected>최근 1년</option>
|
| 246 |
+
<option>최근 2년</option>
|
| 247 |
+
</select>
|
| 248 |
+
<button class="p-1 rounded bg-gray-100 hover:bg-gray-200">
|
| 249 |
+
<i data-feather="refresh-cw" class="w-4 h-4 text-gray-600"></i>
|
| 250 |
+
</button>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
<div class="h-80">
|
| 254 |
+
<canvas id="settlementChart"></canvas>
|
| 255 |
+
</div>
|
| 256 |
+
</div>
|
| 257 |
+
|
| 258 |
+
<!-- 하단 퀵 메뉴 -->
|
| 259 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
|
| 260 |
+
<button class="bg-white p-4 rounded-lg shadow-md hover:bg-blue-50 transition-colors flex flex-col items-center">
|
| 261 |
+
<div class="bg-blue-100 p-3 rounded-full mb-2">
|
| 262 |
+
<i data-feather="file-text" class="text-blue-600 w-5 h-5"></i>
|
| 263 |
+
</div>
|
| 264 |
+
<span class="text-sm font-medium text-gray-700">정산 신청</span>
|
| 265 |
+
</button>
|
| 266 |
+
<button class="bg-white p-4 rounded-lg shadow-md hover:bg-purple-50 transition-colors flex flex-col items-center">
|
| 267 |
+
<div class="bg-purple-100 p-3 rounded-full mb-2">
|
| 268 |
+
<i data-feather="trending-up" class="text-purple-600 w-5 h-5"></i>
|
| 269 |
+
</div>
|
| 270 |
+
<span class="text-sm font-medium text-gray-700">통계 분석</span>
|
| 271 |
+
</button>
|
| 272 |
+
<button class="bg-white p-4 rounded-lg shadow-md hover:bg-green-50 transition-colors flex flex-col items-center">
|
| 273 |
+
<div class="bg-green-100 p-3 rounded-full mb-2">
|
| 274 |
+
<i data-feather="dollar-sign" class="text-green-600 w-5 h-5"></i>
|
| 275 |
+
</div>
|
| 276 |
+
<span class="text-sm font-medium text-gray-700">예상 정산</span>
|
| 277 |
+
</button>
|
| 278 |
+
<button class="bg-white p-4 rounded-lg shadow-md hover:bg-yellow-50 transition-colors flex flex-col items-center">
|
| 279 |
+
<div class="bg-yellow-100 p-3 rounded-full mb-2">
|
| 280 |
+
<i data-feather="settings" class="text-yellow-600 w-5 h-5"></i>
|
| 281 |
+
</div>
|
| 282 |
+
<span class="text-sm font-medium text-gray-700">설정</span>
|
| 283 |
+
</button>
|
| 284 |
+
</div>
|
| 285 |
+
</main>
|
| 286 |
+
</div>
|
| 287 |
+
|
| 288 |
+
<script>
|
| 289 |
+
// 현재 날짜 표시
|
| 290 |
+
const now = new Date();
|
| 291 |
+
const options = { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' };
|
| 292 |
+
document.getElementById('current-date').textContent = now.toLocaleDateString('ko-KR', options);
|
| 293 |
+
|
| 294 |
+
// 차트 생성
|
| 295 |
+
const ctx = document.getElementById('settlementChart').getContext('2d');
|
| 296 |
+
const settlementChart = new Chart(ctx, {
|
| 297 |
+
type: 'bar',
|
| 298 |
+
data: {
|
| 299 |
+
labels: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
| 300 |
+
datasets: [
|
| 301 |
+
{
|
| 302 |
+
label: '드라마월드',
|
| 303 |
+
data: [1200000, 1900000, 1500000, 1800000, 2200000, 2100000, 2300000, 2500000, 2400000, 2600000, 2800000, 3000000],
|
| 304 |
+
backgroundColor: 'rgba(79, 70, 229, 0.7)',
|
| 305 |
+
borderColor: 'rgba(79, 70, 229, 1)',
|
| 306 |
+
borderWidth: 1
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
label: '애니메이션랜드',
|
| 310 |
+
data: [800000, 1200000, 1100000, 1400000, 1600000, 1500000, 1700000, 1900000, 2000000, 2100000, 2200000, 2300000],
|
| 311 |
+
backgroundColor: 'rgba(99, 102, 241, 0.7)',
|
| 312 |
+
borderColor: 'rgba(99, 102, 241, 1)',
|
| 313 |
+
borderWidth: 1
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
label: '영화사 예술의전당',
|
| 317 |
+
data: [500000, 700000, 600000, 800000, 900000, 1000000, 1200000, 1100000, 1300000, 1400000, 1500000, 1600000],
|
| 318 |
+
backgroundColor: 'rgba(129, 140, 248, 0.7)',
|
| 319 |
+
borderColor: 'rgba(129, 140, 248, 1)',
|
| 320 |
+
borderWidth: 1
|
| 321 |
+
}
|
| 322 |
+
]
|
| 323 |
+
},
|
| 324 |
+
options: {
|
| 325 |
+
responsive: true,
|
| 326 |
+
maintainAspectRatio: false,
|
| 327 |
+
scales: {
|
| 328 |
+
y: {
|
| 329 |
+
beginAtZero: true,
|
| 330 |
+
ticks: {
|
| 331 |
+
callback: function(value) {
|
| 332 |
+
return value.toLocaleString() + '원';
|
| 333 |
+
}
|
| 334 |
+
}
|
| 335 |
+
}
|
| 336 |
+
},
|
| 337 |
+
plugins: {
|
| 338 |
+
tooltip: {
|
| 339 |
+
callbacks: {
|
| 340 |
+
label: function(context) {
|
| 341 |
+
let label = context.dataset.label || '';
|
| 342 |
+
if (label) {
|
| 343 |
+
label += ': ';
|
| 344 |
+
}
|
| 345 |
+
label += context.parsed.y.toLocaleString() + '원';
|
| 346 |
+
return label;
|
| 347 |
+
}
|
| 348 |
+
}
|
| 349 |
+
},
|
| 350 |
+
legend: {
|
| 351 |
+
position: 'bottom',
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
}
|
| 355 |
+
});
|
| 356 |
+
|
| 357 |
+
// Vanta.js 배경 효과
|
| 358 |
+
VANTA.NET({
|
| 359 |
+
el: "#vanta-bg",
|
| 360 |
+
mouseControls: true,
|
| 361 |
+
touchControls: true,
|
| 362 |
+
gyroControls: false,
|
| 363 |
+
minHeight: 200.00,
|
| 364 |
+
minWidth: 200.00,
|
| 365 |
+
scale: 1.00,
|
| 366 |
+
scaleMobile: 1.00,
|
| 367 |
+
color: 0x3b82f6,
|
| 368 |
+
backgroundColor: 0xf8fafc,
|
| 369 |
+
points: 10.00,
|
| 370 |
+
maxDistance: 20.00,
|
| 371 |
+
spacing: 15.00
|
| 372 |
+
});
|
| 373 |
+
|
| 374 |
+
// Feather 아이콘 로드
|
| 375 |
+
feather.replace();
|
| 376 |
+
</script>
|
| 377 |
+
</body>
|
| 378 |
</html>
|