-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.html
74 lines (74 loc) · 5.01 KB
/
editor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>글쓰기</title>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
<link href="https://ai-public.creatie.ai/gen_page/tailwind-custom.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com/3.4.5?plugins=forms@0.5.7,typography@0.5.13,aspect-ratio@0.4.2,container-queries@0.1.1"></script>
<script src="https://ai-public.creatie.ai/gen_page/tailwind-config.min.js" data-color="#000000" data-border-radius="small"></script>
</head>
<body class="bg-gray-50 font-['Noto_Sans_KR']">
<div class="max-w-4xl mx-auto min-h-screen bg-white shadow-sm">
<header class="border-b border-gray-200">
<div class="flex items-center justify-between px-4 py-3">
<div class="flex items-center space-x-4">
<a href="main.html" class="text-gray-700 hover:text-gray-900 !rounded-button">
<i class="fas fa-arrow-left text-xl"></i>
</a>
</div>
<div class="flex items-center space-x-4">
<button class="text-gray-700 hover:text-gray-900 !rounded-button group relative">
<div class="relative">
<i class="fas fa-share-alt text-xl"></i>
<div class="hidden group-hover:block absolute top-full right-0 mt-2 bg-white shadow-lg rounded-lg py-2 w-auto min-w-[200px] whitespace-nowrap">
<a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100"><i class="fas fa-file-alt mr-2"></i>TXT파일로 내보내기</a>
<a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100"><i class="fas fa-file-pdf mr-2"></i>PDF파일로 내보내기</a>
</div>
</div>
</button>
</div>
</div>
</header>
<main class="px-4 py-6">
<div class="flex items-center justify-between mb-6">
<div class="text-sm text-gray-600">
<span>단어 수: <span id="word-count">0</span> 글자 수: <span id="char-count">0</span></span>
</div>
<div class="text-sm text-green-500">
<i class="fas fa-check mr-1"></i>자동저장됨 <span class="text-gray-500">오후 2:30</span>
</div>
</div>
<div class="space-y-4">
<input type="text" class="w-full text-2xl font-medium border-0 focus:ring-0 px-0 font-serif text-left" placeholder="제목을 입력해주세요" value=""/>
<textarea class="w-full h-[calc(100vh-400px)] resize-none border-0 focus:ring-0 px-0 font-serif overflow-y-auto scrollbar scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-gray-100 text-left" placeholder="내용을 입력해주세요" value="" oninput="function countText() { const text = this.value; const wordCount = text.trim().split(/\s+/).filter(word => word.length > 0).length; const charCount = text.replace(/\s/g, '').length; document.getElementById('word-count').textContent = wordCount; document.getElementById('char-count').textContent = charCount; } countText();"></textarea>
</div>
</main>
<footer class="fixed bottom-0 left-0 right-0 bg-gray-100 border-t border-gray-200">
<div class="max-w-4xl mx-auto">
<div class="flex items-center justify-between px-4 py-2">
<div class="flex items-center space-x-3">
<button class="p-2 text-gray-700 hover:text-gray-900 !rounded-button hover:bg-gray-200 focus:outline-none transition-colors" onclick="document.getElementById('id-31').style.fontWeight = this.classList.contains('active') ? 'normal' : 'bold'; this.classList.toggle('active');">
<i class="fas fa-bold"></i>
</button>
<button class="p-2 text-gray-700 hover:text-gray-900 !rounded-button">
<i class="fas fa-italic"></i>
</button>
<button class="p-2 text-gray-700 hover:text-gray-900 !rounded-button">
<i class="fas fa-underline"></i>
</button>
<button class="p-2 text-gray-700 hover:text-gray-900 !rounded-button">
<i class="fas fa-quote-right"></i>
</button>
<button class="p-2 text-gray-700 hover:text-gray-900 !rounded-button">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</div>
</div>
</footer>
</div>
</body>
</html>