-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
109 lines (99 loc) · 4.05 KB
/
Copy pathindex.html
File metadata and controls
109 lines (99 loc) · 4.05 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>تحلیل شعر – Tailwind</title>
<link rel="stylesheet" href="./assets/css/Vazir-Code.css">
<script src="./assets/js/tailwind-browser@4.js"></script>
<style>
.syllable-display {
font-family: 'Vazir Code', monospace;
direction: ltr;
text-align: left;
white-space: nowrap;
}
.result {
text-align: right;
}
.summarize {
font-size: 1.2em;
font-weight: bold;
font-family: 'Vazir Code', monospace;
}
</style>
</head>
<body class="bg-white text-gray-900 antialiased text-center font-sans">
<nav class="bg-gray-100 border-b border-gray-200 px-4 py-3 flex flex-wrap items-center justify-between">
<a href="./index.html" class="text-xl font-bold text-gray-800 hover:text-gray-600 transition">
📚 پروژه متن باز ریتمیک
</a>
<div id="navbarNav" class="hidden lg:flex lg:items-center lg:gap-4 w-full lg:w-auto mt-3 lg:mt-0">
<ul class="flex flex-col lg:flex-row lg:space-x-4 rtl:space-x-reverse space-y-2 lg:space-y-0 w-full">
<li>
<a href="./index.html" class="block px-3 py-2 rounded-md text-blue-700 bg-blue-100 font-semibold">تحلیل شعر</a>
</li>
<li>
<a href="./list-words.html" class="block px-3 py-2 rounded-md text-gray-700 hover:bg-gray-200 transition">لیست کلمات</a>
</li>
<li>
<a href="./about.html" class="block px-3 py-2 rounded-md text-gray-700 hover:bg-gray-200 transition">درباره ما</a>
</li>
<li>
<a href="./my-word-list.html" class="block px-3 py-2 rounded-md text-gray-700 hover:bg-gray-200 transition">کلمات من</a>
</li>
</ul>
</div>
<div class="flex items-center">
<button
navbar-toggler
type="button"
class="block lg:hidden p-2 rounded-md text-gray-600 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-gray-400"
>
☰
</button>
<span class="text-gray-500 text-sm hidden sm:inline">
تعداد کلمات: <span id="totalWords" class="font-semibold">۰</span>
</span>
</div>
</nav>
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<h1 class="text-2xl md:text-3xl font-bold text-gray-800 mb-6">تحلیل شعر</h1>
<div id="input-container" class="space-y-4 mb-6"></div>
<div class="flex justify-center gap-4 flex-wrap mb-6">
<button
add-line
class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-6 rounded-lg shadow-sm transition duration-150 focus:outline-none focus:ring-2 focus:ring-blue-400"
>
+ افزودن مصرع جدید
</button>
</div>
<div class="summarize text-gray-700 bg-gray-50 p-4 rounded-lg mb-6 flex justify-center gap-6">
<div>تعداد مصرعها: <strong class="countLine text-blue-600">۰</strong></div>
<div>تعداد ابیات: <strong class="countCouplet text-green-600">۰</strong></div>
</div>
<div class="mb-6">
<textarea
poemArea
class="w-full h-64 p-4 border border-gray-300 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent font-mono text-sm"
placeholder="شعر خود را اینجا وارد کنید (هر مصرع در یک خط) ..."
></textarea>
</div>
<div class="flex flex-wrap justify-center gap-4">
<button
share-page
class="bg-green-600 hover:bg-green-700 text-white cursor-pointer font-medium py-2 px-6 rounded-lg shadow-sm transition"
>
🔗 اشتراکگذاری این صفحه
</button>
<button
export-all-word
class="bg-purple-600 hover:bg-purple-700 text-white cursor-pointer font-medium py-2 px-6 rounded-lg shadow-sm transition"
>
📥 جمعآوری کلمات
</button>
</div>
</main>
<script src="./pages/index.mjs" type="module"></script>
</body>
</html>