Spaces:
Running
Running
이번엔 오디오북을 만들자 ! 오디오녹음 해서 오디오 북만들자 디자인 이쁘게 해주고 그누보드 계시판이랑 연동해서 사용할거야 ! 그누보드게시판 첨부파일에 오디오 파일 올리고 그걸 불러와서 보여주는것 !! - Initial Deployment
Browse files- README.md +7 -5
- index.html +433 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: audio-book
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,433 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ko">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>오디오북 녹음 시스템</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
theme: {
|
| 12 |
+
extend: {
|
| 13 |
+
colors: {
|
| 14 |
+
primary: '#4f46e5',
|
| 15 |
+
secondary: '#7c3aed',
|
| 16 |
+
dark: '#1e293b',
|
| 17 |
+
light: '#f8fafc'
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
</script>
|
| 23 |
+
<style>
|
| 24 |
+
.waveform {
|
| 25 |
+
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
|
| 26 |
+
background-size: 200% 100%;
|
| 27 |
+
animation: wave 1.5s linear infinite;
|
| 28 |
+
}
|
| 29 |
+
@keyframes wave {
|
| 30 |
+
0% { background-position: 200% 0; }
|
| 31 |
+
100% { background-position: -200% 0; }
|
| 32 |
+
}
|
| 33 |
+
.progress-dot {
|
| 34 |
+
position: absolute;
|
| 35 |
+
top: -3px;
|
| 36 |
+
width: 8px;
|
| 37 |
+
height: 8px;
|
| 38 |
+
border-radius: 50%;
|
| 39 |
+
background-color: #4f46e5;
|
| 40 |
+
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
|
| 41 |
+
}
|
| 42 |
+
.audio-thumbnail {
|
| 43 |
+
background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
|
| 44 |
+
}
|
| 45 |
+
</style>
|
| 46 |
+
</head>
|
| 47 |
+
<body class="bg-gray-50 min-h-screen">
|
| 48 |
+
<!-- Header -->
|
| 49 |
+
<header class="bg-gradient-to-r from-primary to-secondary text-white">
|
| 50 |
+
<div class="container mx-auto px-4 py-6">
|
| 51 |
+
<div class="flex justify-between items-center">
|
| 52 |
+
<div>
|
| 53 |
+
<h1 class="text-2xl md:text-3xl font-bold">오디오북 녹음 시스템</h1>
|
| 54 |
+
<p class="mt-1 text-indigo-100">나만의 오디오북을 녹음하고 관리하세요</p>
|
| 55 |
+
</div>
|
| 56 |
+
<div class="flex items-center space-x-4">
|
| 57 |
+
<button class="bg-white hover:bg-gray-100 text-primary font-bold py-2 px-4 rounded-full flex items-center">
|
| 58 |
+
<i class="fas fa-user mr-2"></i>로그인
|
| 59 |
+
</button>
|
| 60 |
+
<div class="h-8 w-8 bg-white rounded-full flex items-center justify-center text-primary">
|
| 61 |
+
<i class="fas fa-bell"></i>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
</header>
|
| 67 |
+
|
| 68 |
+
<main class="container mx-auto px-4 py-8">
|
| 69 |
+
<!-- 녹음 섹션 -->
|
| 70 |
+
<section class="mb-12 bg-white rounded-xl shadow-lg overflow-hidden">
|
| 71 |
+
<div class="p-6 border-b border-gray-200">
|
| 72 |
+
<h2 class="text-xl font-bold text-gray-800 flex items-center">
|
| 73 |
+
<i class="fas fa-microphone-alt mr-2 text-primary"></i>
|
| 74 |
+
새 오디오북 녹음하기
|
| 75 |
+
</h2>
|
| 76 |
+
</div>
|
| 77 |
+
<div class="p-6">
|
| 78 |
+
<div id="recordingContainer" class="mb-6">
|
| 79 |
+
<div class="bg-gray-100 rounded-lg p-4 flex justify-between items-center mb-4">
|
| 80 |
+
<div class="flex items-center">
|
| 81 |
+
<div class="w-12 h-12 rounded-full bg-red-500 flex items-center justify-center mr-4">
|
| 82 |
+
<i class="fas fa-microphone-alt text-white"></i>
|
| 83 |
+
</div>
|
| 84 |
+
<div>
|
| 85 |
+
<h3 class="font-medium">새로운 녹음 시작하기</h3>
|
| 86 |
+
<p class="text-sm text-gray-500">아래 버튼을 눌러 녹음을 시작하세요</p>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
<button id="recordButton" class="bg-primary hover:bg-primary-dark text-white py-2 px-6 rounded-full flex items-center">
|
| 90 |
+
<i class="fas fa-microphone mr-2"></i>녹음 시작
|
| 91 |
+
</button>
|
| 92 |
+
</div>
|
| 93 |
+
|
| 94 |
+
<!-- 녹음 중 표시 -->
|
| 95 |
+
<div id="recordingIndicator" class="hidden items-center justify-center mb-6 p-4 border-2 border-dashed border-red-200 rounded-lg">
|
| 96 |
+
<div class="mr-4 flex">
|
| 97 |
+
<div class="waveform w-2 h-8 mx-0.5 rounded-md bg-red-500"></div>
|
| 98 |
+
<div class="waveform w-2 h-4 mx-0.5 rounded-md bg-red-500"></div>
|
| 99 |
+
<div class="waveform w-2 h-6 mx-0.5 rounded-md bg-red-500"></div>
|
| 100 |
+
<div class="waveform w-2 h-10 mx-0.5 rounded-md bg-red-500"></div>
|
| 101 |
+
<div class="waveform w-2 h-7 mx-0.5 rounded-md bg-red-500"></div>
|
| 102 |
+
</div>
|
| 103 |
+
<div class="text-red-600 font-semibold">
|
| 104 |
+
<i class="fas fa-circle mr-2 animate-pulse"></i>녹음 중
|
| 105 |
+
</div>
|
| 106 |
+
<button id="stopButton" class="ml-4 bg-red-600 hover:bg-red-700 text-white py-1 px-4 rounded-full text-sm">
|
| 107 |
+
중지하기
|
| 108 |
+
</button>
|
| 109 |
+
</div>
|
| 110 |
+
|
| 111 |
+
<!-- 녹음 완료 후 -->
|
| 112 |
+
<div id="recordedAudioSection" class="hidden">
|
| 113 |
+
<h3 class="font-medium mb-2">녹음 완료</h3>
|
| 114 |
+
<div class="flex items-center mb-4">
|
| 115 |
+
<audio id="recordedAudio" controls></audio>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="flex items-center">
|
| 118 |
+
<input type="text" id="audioTitle" placeholder="오디오북 제목 입력" class="flex-1 border border-gray-300 rounded-l-lg py-2 px-4 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 119 |
+
<button id="saveButton" class="bg-primary hover:bg-primary-dark text-white py-2 px-6 rounded-r-lg">저장하기</button>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
</section>
|
| 125 |
+
|
| 126 |
+
<!-- 오디오북 라이브러리 -->
|
| 127 |
+
<section>
|
| 128 |
+
<div class="flex justify-between items-center mb-6">
|
| 129 |
+
<h2 class="text-2xl font-bold text-gray-800 flex items-center">
|
| 130 |
+
<i class="fas fa-book-reader mr-2 text-secondary"></i>
|
| 131 |
+
오디오북 라이브러리
|
| 132 |
+
</h2>
|
| 133 |
+
<div class="flex items-center">
|
| 134 |
+
<div class="relative">
|
| 135 |
+
<input type="text" placeholder="제목으로 검색..." class="border border-gray-300 rounded-lg py-2 pl-10 pr-4 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 136 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
| 137 |
+
</div>
|
| 138 |
+
<select class="ml-3 border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 139 |
+
<option>최신순</option>
|
| 140 |
+
<option>인기순</option>
|
| 141 |
+
<option>가나다순</option>
|
| 142 |
+
</select>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 147 |
+
<!-- 오디오북 항목 1 -->
|
| 148 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 149 |
+
<div class="p-4 flex items-center border-b border-gray-200">
|
| 150 |
+
<div class="audio-thumbnail w-12 h-12 rounded-lg flex items-center justify-center text-white">
|
| 151 |
+
<i class="fas fa-headphones text-lg"></i>
|
| 152 |
+
</div>
|
| 153 |
+
<div class="ml-4">
|
| 154 |
+
<h3 class="font-medium">행복한 감자 이야기</h3>
|
| 155 |
+
<p class="text-sm text-gray-500">3일 전 등록</p>
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
<div class="p-4">
|
| 159 |
+
<div class="relative pt-1">
|
| 160 |
+
<div class="flex mb-1 items-center justify-between">
|
| 161 |
+
<div>
|
| 162 |
+
<span class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-primary bg-indigo-100">
|
| 163 |
+
재생 중
|
| 164 |
+
</span>
|
| 165 |
+
</div>
|
| 166 |
+
<div class="text-right">
|
| 167 |
+
<span class="text-xs font-semibold inline-block text-gray-600">
|
| 168 |
+
1:23 / 3:45
|
| 169 |
+
</span>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
<div class="relative flex items-center">
|
| 173 |
+
<div class="overflow-hidden h-2 mb-1 text-xs flex rounded bg-gray-200 w-full">
|
| 174 |
+
<div style="width:35%" class="shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-gradient-to-r from-primary to-secondary"></div>
|
| 175 |
+
</div>
|
| 176 |
+
<div class="progress-dot" style="left:35%"></div>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
<div class="flex justify-between items-center mt-4">
|
| 180 |
+
<button class="flex items-center text-gray-600 hover:text-primary">
|
| 181 |
+
<i class="fas fa-play-circle text-xl"></i>
|
| 182 |
+
</button>
|
| 183 |
+
<button class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200">
|
| 184 |
+
<i class="fas fa-step-backward text-gray-600"></i>
|
| 185 |
+
</button>
|
| 186 |
+
<button class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200">
|
| 187 |
+
<i class="fas fa-step-forward text-gray-600"></i>
|
| 188 |
+
</button>
|
| 189 |
+
<div class="flex items-center">
|
| 190 |
+
<i class="fas fa-volume-up text-gray-500 mr-2"></i>
|
| 191 |
+
<input type="range" min="0" max="100" value="70" class="w-20">
|
| 192 |
+
</div>
|
| 193 |
+
<button class="flex items-center text-red-500 hover:text-red-700">
|
| 194 |
+
<i class="fas fa-trash"></i>
|
| 195 |
+
</button>
|
| 196 |
+
</div>
|
| 197 |
+
</div>
|
| 198 |
+
<div class="px-4 py-3 bg-gray-50 border-t border-gray-200 flex items-center">
|
| 199 |
+
<i class="fas fa-file-download text-gray-500"></i>
|
| 200 |
+
<span class="text-sm text-gray-600 ml-2">3.2MB</span>
|
| 201 |
+
<span class="mx-2 text-gray-300">•</span>
|
| 202 |
+
<i class="fas fa-headphones text-gray-500"></i>
|
| 203 |
+
<span class="text-sm text-gray-600 ml-2">1,245회 재생</span>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
|
| 207 |
+
<!-- 오디오북 항목 2 -->
|
| 208 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 209 |
+
<div class="p-4 flex items-center border-b border-gray-200">
|
| 210 |
+
<div class="audio-thumbnail w-12 h-12 rounded-lg flex items-center justify-center text-white">
|
| 211 |
+
<i class="fas fa-book text-lg"></i>
|
| 212 |
+
</div>
|
| 213 |
+
<div class="ml-4">
|
| 214 |
+
<h3 class="font-medium">촌닭의 하늘 나는 법</h3>
|
| 215 |
+
<p class="text-sm text-gray-500">1주일 전 등록</p>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
+
<div class="p-4">
|
| 219 |
+
<div class="relative pt-1">
|
| 220 |
+
<div class="flex mb-1 items-center justify-between">
|
| 221 |
+
<div>
|
| 222 |
+
<span class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-gray-600 bg-gray-100">
|
| 223 |
+
대기 중
|
| 224 |
+
</span>
|
| 225 |
+
</div>
|
| 226 |
+
</div>
|
| 227 |
+
<div class="overflow-hidden h-2 mb-1 text-xs flex rounded bg-gray-200">
|
| 228 |
+
<div style="width:0" class="shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-gradient-to-r from-primary to-secondary"></div>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
<div class="flex justify-between items-center mt-4">
|
| 232 |
+
<button class="flex items-center text-gray-600 hover:text-primary">
|
| 233 |
+
<i class="fas fa-play-circle text-xl"></i>
|
| 234 |
+
</button>
|
| 235 |
+
<button class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200">
|
| 236 |
+
<i class="fas fa-step-backward text-gray-600"></i>
|
| 237 |
+
</button>
|
| 238 |
+
<button class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200">
|
| 239 |
+
<i class="fas fa-step-forward text-gray-600"></i>
|
| 240 |
+
</button>
|
| 241 |
+
<div class="flex items-center">
|
| 242 |
+
<i class="fas fa-volume-up text-gray-500 mr-2"></i>
|
| 243 |
+
<input type="range" min="0" max="100" value="100" class="w-20">
|
| 244 |
+
</div>
|
| 245 |
+
<button class="flex items-center text-red-500 hover:text-red-700">
|
| 246 |
+
<i class="fas fa-trash"></i>
|
| 247 |
+
</button>
|
| 248 |
+
</div>
|
| 249 |
+
</div>
|
| 250 |
+
<div class="px-4 py-3 bg-gray-50 border-t border-gray-200 flex items-center">
|
| 251 |
+
<i class="fas fa-file-download text-gray-500"></i>
|
| 252 |
+
<span class="text-sm text-gray-600 ml-2">4.7MB</span>
|
| 253 |
+
<span class="mx-2 text-gray-300">•</span>
|
| 254 |
+
<i class="fas fa-headphones text-gray-500"></i>
|
| 255 |
+
<span class="text-sm text-gray-600 ml-2">897회 재생</span>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
|
| 259 |
+
<!-- 오디오북 항목 3 -->
|
| 260 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 261 |
+
<div class="p-4 flex items-center border-b border-gray-200">
|
| 262 |
+
<div class="audio-thumbnail w-12 h-12 rounded-lg flex items-center justify-center text-white">
|
| 263 |
+
<i class="fas fa-moon text-lg"></i>
|
| 264 |
+
</div>
|
| 265 |
+
<div class="ml-4">
|
| 266 |
+
<h3 class="font-medium">잠 못 드는 밤을 위한 이야기</h3>
|
| 267 |
+
<p class="text-sm text-gray-500">2주 전 등록</p>
|
| 268 |
+
</div>
|
| 269 |
+
</div>
|
| 270 |
+
<div class="p-4">
|
| 271 |
+
<div class="relative pt-1">
|
| 272 |
+
<div class="flex mb-1 items-center justify-between">
|
| 273 |
+
<div>
|
| 274 |
+
<span class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-green-600 bg-green-100">
|
| 275 |
+
완료됨
|
| 276 |
+
</span>
|
| 277 |
+
</div>
|
| 278 |
+
<div class="text-right">
|
| 279 |
+
<span class="text-xs font-semibold inline-block text-gray-600">
|
| 280 |
+
5:24 / 5:24
|
| 281 |
+
</span>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
<div class="overflow-hidden h-2 mb-1 text-xs flex rounded bg-gray-200">
|
| 285 |
+
<div style="width:100%" class="shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-gradient-to-r from-primary to-secondary"></div>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
<div class="flex justify-between items-center mt-4">
|
| 289 |
+
<button class="flex items-center text-gray-600 hover:text-primary">
|
| 290 |
+
<i class="fas fa-redo-alt text-xl"></i>
|
| 291 |
+
</button>
|
| 292 |
+
<button class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200">
|
| 293 |
+
<i class="fas fa-step-backward text-gray-600"></i>
|
| 294 |
+
</button>
|
| 295 |
+
<button class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200">
|
| 296 |
+
<i class="fas fa-step-forward text-gray-600"></i>
|
| 297 |
+
</button>
|
| 298 |
+
<div class="flex items-center">
|
| 299 |
+
<i class="fas fa-volume-up text-gray-500 mr-2"></i>
|
| 300 |
+
<input type="range" min="0" max="100" value="80" class="w-20">
|
| 301 |
+
</div>
|
| 302 |
+
<button class="flex items-center text-red-500 hover:text-red-700">
|
| 303 |
+
<i class="fas fa-trash"></i>
|
| 304 |
+
</button>
|
| 305 |
+
</div>
|
| 306 |
+
</div>
|
| 307 |
+
<div class="px-4 py-3 bg-gray-50 border-t border-gray-200 flex items-center">
|
| 308 |
+
<i class="fas fa-file-download text-gray-500"></i>
|
| 309 |
+
<span class="text-sm text-gray-600 ml-2">6.1MB</span>
|
| 310 |
+
<span class="mx-2 text-gray-300">•</span>
|
| 311 |
+
<i class="fas fa-headphones text-gray-500"></i>
|
| 312 |
+
<span class="text-sm text-gray-600 ml-2">2,457회 재생</span>
|
| 313 |
+
</div>
|
| 314 |
+
</div>
|
| 315 |
+
</div>
|
| 316 |
+
</section>
|
| 317 |
+
</main>
|
| 318 |
+
|
| 319 |
+
<!-- Footer -->
|
| 320 |
+
<footer class="bg-dark text-gray-300 py-8 mt-16">
|
| 321 |
+
<div class="container mx-auto px-4">
|
| 322 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 323 |
+
<div>
|
| 324 |
+
<h3 class="text-white font-bold text-lg mb-4">오디오북</h3>
|
| 325 |
+
<p class="mb-4">나만의 오디오북을 녹음하고 공유하는 플랫폼입니다. 감동적인 목소리로 이야기를 만들어보세요.</p>
|
| 326 |
+
<div class="flex space-x-4">
|
| 327 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f"></i></a>
|
| 328 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a>
|
| 329 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a>
|
| 330 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-youtube"></i></a>
|
| 331 |
+
</div>
|
| 332 |
+
</div>
|
| 333 |
+
<div>
|
| 334 |
+
<h3 class="text-white font-bold text-lg mb-4">기능</h3>
|
| 335 |
+
<ul class="space-y-2">
|
| 336 |
+
<li><a href="#" class="hover:text-white transition">오디오 녹음</a></li>
|
| 337 |
+
<li><a href="#" class="hover:text-white transition">라이브러리 관리</a></li>
|
| 338 |
+
<li><a href="#" class="hover:text-white transition">커뮤니티 공유</a></li>
|
| 339 |
+
<li><a href="#" class="hover:text-white transition">음성 편집</a></li>
|
| 340 |
+
</ul>
|
| 341 |
+
</div>
|
| 342 |
+
<div>
|
| 343 |
+
<h3 class="text-white font-bold text-lg mb-4">리소스</h3>
|
| 344 |
+
<ul class="space-y-2">
|
| 345 |
+
<li><a href="#" class="hover:text-white transition">도움말</a></li>
|
| 346 |
+
<li><a href="#" class="hover:text-white transition">사용 가이드</a></li>
|
| 347 |
+
<li><a href="#" class="hover:text-white transition">블로그</a></li>
|
| 348 |
+
<li><a href="#" class="hover:text-white transition">문의하기</a></li>
|
| 349 |
+
</ul>
|
| 350 |
+
</div>
|
| 351 |
+
<div>
|
| 352 |
+
<h3 class="text-white font-bold text-lg mb-4">뉴스레터</h3>
|
| 353 |
+
<p class="mb-4">새로운 기능과 업데이트 소식을 받아보세요.</p>
|
| 354 |
+
<form class="flex">
|
| 355 |
+
<input type="email" placeholder="이메일 주소" class="bg-gray-700 rounded-l px-3 py-2 w-full focus:outline-none">
|
| 356 |
+
<button class="bg-primary hover:bg-primary-dark text-white px-4 rounded-r">
|
| 357 |
+
<i class="fas fa-paper-plane"></i>
|
| 358 |
+
</button>
|
| 359 |
+
</form>
|
| 360 |
+
</div>
|
| 361 |
+
</div>
|
| 362 |
+
<div class="border-t border-gray-800 mt-8 pt-6 text-center">
|
| 363 |
+
<p>© 2023 오디오북 녹음 시스템. 모든 권리 보유.</p>
|
| 364 |
+
</div>
|
| 365 |
+
</div>
|
| 366 |
+
</footer>
|
| 367 |
+
|
| 368 |
+
<script>
|
| 369 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 370 |
+
const recordButton = document.getElementById('recordButton');
|
| 371 |
+
const stopButton = document.getElementById('stopButton');
|
| 372 |
+
const saveButton = document.getElementById('saveButton');
|
| 373 |
+
const recordingIndicator = document.getElementById('recordingIndicator');
|
| 374 |
+
const recordedAudioSection = document.getElementById('recordedAudioSection');
|
| 375 |
+
const recordedAudio = document.getElementById('recordedAudio');
|
| 376 |
+
|
| 377 |
+
// 녹음 기능 시뮬레이션
|
| 378 |
+
recordButton.addEventListener('click', function() {
|
| 379 |
+
// 시뮬레이션: 녹음 시작
|
| 380 |
+
recordButton.disabled = true;
|
| 381 |
+
recordingIndicator.classList.remove('hidden');
|
| 382 |
+
|
| 383 |
+
// 실제로는 MediaRecorder API로 대체해야 함
|
| 384 |
+
// navigator.mediaDevices.getUserMedia({ audio: true })
|
| 385 |
+
// .then(function(stream) {
|
| 386 |
+
// mediaRecorder = new MediaRecorder(stream);
|
| 387 |
+
// // 녹음 시작...
|
| 388 |
+
// });
|
| 389 |
+
});
|
| 390 |
+
|
| 391 |
+
stopButton.addEventListener('click', function() {
|
| 392 |
+
// 시뮬레이션: 녹음 중지
|
| 393 |
+
recordingIndicator.classList.add('hidden');
|
| 394 |
+
recordedAudioSection.classList.remove('hidden');
|
| 395 |
+
|
| 396 |
+
// 녹음 내용을 가져오기 시뮬레이션
|
| 397 |
+
recordedAudio.src = "https://soundhelix.com/examples/mp3/SoundHelix-Song-2.mp3";
|
| 398 |
+
recordedAudio.load();
|
| 399 |
+
});
|
| 400 |
+
|
| 401 |
+
saveButton.addEventListener('click', function() {
|
| 402 |
+
const title = document.getElementById('audioTitle').value;
|
| 403 |
+
if (!title) {
|
| 404 |
+
alert('오디오북 제목을 입력해주세요.');
|
| 405 |
+
return;
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
// 시뮬레이션: 저장 성공
|
| 409 |
+
alert(`'${title}' 오디오북이 성공적으로 저장되었습니다!`);
|
| 410 |
+
|
| 411 |
+
// 저장 후 초기화
|
| 412 |
+
recordButton.disabled = false;
|
| 413 |
+
recordedAudioSection.classList.add('hidden');
|
| 414 |
+
document.getElementById('audioTitle').value = "";
|
| 415 |
+
});
|
| 416 |
+
|
| 417 |
+
// 플레이어 컨트롤 동작
|
| 418 |
+
document.querySelectorAll('.fa-play-circle').forEach(button => {
|
| 419 |
+
button.addEventListener('click', function() {
|
| 420 |
+
// 플레이어 상태 토글
|
| 421 |
+
if (this.classList.contains('fa-play-circle')) {
|
| 422 |
+
this.classList.remove('fa-play-circle');
|
| 423 |
+
this.classList.add('fa-pause-circle');
|
| 424 |
+
} else {
|
| 425 |
+
this.classList.remove('fa-pause-circle');
|
| 426 |
+
this.classList.add('fa-play-circle');
|
| 427 |
+
}
|
| 428 |
+
});
|
| 429 |
+
});
|
| 430 |
+
});
|
| 431 |
+
</script>
|
| 432 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=nkjoy/audio-book" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 433 |
+
</html>
|