-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
186 lines (184 loc) · 5.02 KB
/
popup.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Daily JLPT N5 Vocabulary</title>
<link href="https://fonts.googleapis.com/css2?family=Zain:wght@700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Zain', Arial, sans-serif;
background-color: #522258;
text-align: center;
padding: 20px;
direction: rtl;
}
.card-container {
perspective: 1000px;
display: inline-block;
}
.card {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
margin: 20px auto;
cursor: pointer;
width: 250px;
height: 200px;
transition: transform 0.6s;
transform-style: preserve-3d;
position: relative;
}
.card.flip {
transform: rotateY(180deg);
}
.card-front, .card-back, .card-about {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 10px;
top: 0;
left: 0;
}
.card-back, .card-about {
background-color: #333333;
color: white;
transform: rotateY(180deg);
}
.kanji, .furigana, .meaning, .about-content {
font-size: 2.2em;
margin-top: 10px;
font-family: 'Zain', Arial, sans-serif;
font-weight: bold;
}
.kanji {
color: #8C3061;
}
.furigana {
color: #C63C51;
}
.meaning {
color: #D95F59;
display: none;
}
.about-content {
color: #D95F59;
text-align: center;
padding: 20px;
}
.audio {
position: absolute;
bottom: 10px;
left: 10px;
}
.audio a {
text-decoration: none;
color: white;
background-color: #C63C51;
padding: 5px 10px;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s;
font-family: 'Zain', Arial, sans-serif;
}
.audio a:hover {
background-color: #D95F59;
}
.btn-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
}
.btn-container button {
background-color: #C63C51;
color: white;
border: none;
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-family: 'Zain', Arial, sans-serif;
font-weight: bold;
}
.btn-container button:hover {
background-color: #350d0b;
}
.favorite-btn {
position: absolute;
bottom: 5px;
right: 10px;
background-color: #FFA500;
color: white;
border: none;
padding: 5px 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-family: 'Zain', Arial, sans-serif;
font-weight: bold;
}
.favorite-btn:hover {
background-color: #FF8C00;
}
.remove-btn {
background-color: #8b0f0f;
color: white;
border: none;
padding: 5px 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-family: 'Zain', Arial, sans-serif;
font-weight: bold;
position: absolute;
bottom: 5px;
right: 10px;
}
.remove-btn:hover {
background-color: #CC0000;
}
.no-favorites {
font-size: 1.2em;
color: #D95F59;
margin-top: 20px;
font-family: 'Zain', Arial, sans-serif;
font-weight: bold;
}
</style>
</head>
<body>
<div class="card-container">
<div class="card" id="vocabCard">
<div class="card-front">
<div class="audio" id="audio"></div>
<div class="kanji" id="kanji"></div>
<div class="furigana" id="furigana"></div>
<div class="meaning" id="meaning"></div>
<button class="favorite-btn" id="favoriteBtn">أضف إلى المفضلة</button>
</div>
<div class="card-back">
<div class="audio" id="favAudio"></div>
<div class="kanji" id="favKanji"></div>
<div class="furigana" id="favFurigana"></div>
<div class="meaning" id="favMeaning"></div>
<button class="remove-btn" id="removeBtn">حذف من المفضلة</button>
</div>
<div class="card-about">
<div class="about-content">
هذه الإضافة صممت لمساعدة متعلمي اللغة اليابانية لمستوى N5 باللغة العربية
</div>
</div>
</div>
</div>
<div class="btn-container">
<button id="nextBtn">التالي</button>
<button id="viewFavoritesBtn">عرض المفضلة</button>
<button id="aboutBtn">حول</button>
<button id="prevBtn">السابق</button>
</div>
<div class="no-favorites" id="noFavorites" style="display: none;">لا يوجد شيء في المفضلة</div>
<script src="popup.js"></script>
</body>
</html>