-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathindex.html
225 lines (193 loc) · 10.7 KB
/
index.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- favicon here -->
<link rel="icon" type="image/x-icon" href="./assets/images/favicon/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="./assets/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="./assets/images/favicon/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="192x192" href="./assets/images/favicon/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="./assets/images/favicon/android-chrome-512x512.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&icon_names=favorite" />
<!-- favicon end here -->
<link rel="stylesheet" href="./assets/css/style.css" />
<link rel="stylesheet" href="./assets/css/styleBelow500.css" />
<title>QuoteVerse</title>
<meta name="title" content="QuoteVerse - Explore Inspirational Quotes, Poems, and Verses" />
<meta name="description"
content="Discover a world of inspiration at QuoteVerse! Dive into a collection of meaningful quotes, soul-stirring poems, and thought-provoking verses." />
<meta name="keywords"
content="Inspirational Quotes, Motivational Verses, Thoughtful Poems, Meaningful Sayings, Wisdom Quotes, Positive Affirmations, Empowering Words, Life Lessons, Poetry Collection, Daily Inspiration, Uplifting Quotes, Emotional Verses, Heartfelt Poetry, Encouraging Sayings, Spiritual Quotes, Quote Library, Inspiring Poets, Famous Authors, Creative Expression, Words of Encouragement" />
<meta name="robots" content="index,follow" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="English" />
<meta name="revisit-after" content="1 day" />
<meta name="author" content="Shariar Hasan" />
<!-- Open Graph Meta Tags -->
<meta property="og:title" content="QuoteVerse - Explore Inspirational Quotes, Poems, and Verses" />
<meta property="og:description"
content="QuoteVerse is a platform dedicated to sharing inspirational and motivational quotes to inspire and uplift your spirit. Explore a wide collection of quotes on various topics and share your favorites with the world." />
<meta property="og:image" content="https://i.ibb.co/LvkdXrP/Quote-Verse-Cover.png" />
<meta property="og:url" content="https://quote-verse.netlify.app/" />
<meta property="og:type" content="website" />
<!-- Twitter Card Meta Tags (for Twitter sharing) -->
<meta name="twitter:card"
content="QuoteVerse is a platform dedicated to sharing inspirational and motivational quotes to inspire and uplift your spirit. Explore a wide collection of quotes on various topics and share your favorites with the world." />
<meta name="twitter:title" content="QuoteVerse - Explore Inspirational Quotes, Poems, and Verses" />
<meta name="twitter:description"
content="QuoteVerse is a platform dedicated to sharing inspirational and motivational quotes to inspire and uplift your spirit. Explore a wide collection of quotes on various topics and share your favorites with the world." />
<meta name="twitter:image" content="https://i.ibb.co/LvkdXrP/Quote-Verse-Cover.png" />
<meta name="twitter:site" content="@iShariarHasan" />
</head>
<body>
<main class="w-full h-screen">
<!-- Language Selection Dropdown -->
<div class="language-selector">
<select id="languageSwitcher">
<option value="en" selected>English</option>
<option value="hi">Hindi</option>
<option value="ta">Tamil</option>
<option value="kn">Kannada</option>
<option value="ml">Malayalam</option>
<option value="mr">Marathi</option>
<option value="bn">Bengali</option>
<option value="ar">Arabic</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
<option value="zh">Chinese (Simplified)</option>
<option value="de">German</option>
<option value="fr">French</option>
<option value="pt">Portuguese</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
</select>
</div>
<div class="container">
<!-- Quote Section -->
<section>
<div class="quote" title="Click to copy quote to clipboard">
<h1 class="quote-text" id="quoteTextTag" >
<!-- Quote will appear here -->
</h1>
<h5 class="quote-author" id="quoteAuthorTag">
<!-- Quote Author will appear here -->
</h5>
<span id="copy_tooltip"></span>
</div>
<span class="material-symbols-outlined heart-icon">
favorite
</span>
<canvas id="quoteCanvas" class="quote-img" style="visibility: hidden; display: none;">Canvas is not supported by
your web browser</canvas>
</section>
<!-- Control Section Section -->
<section class="controllerSection">
<div class="controller">
<!-- Share Button -->
<div class="shareAndcontribute">
<div class="shareWith text-right">
<button data-i18n="share" id="share-button" class="hoverToShare">
Share <i class="fa fa-share" aria-hidden="true"></i>
</button>
<div class="popup" id="share-popup" style="display: none;">
<ul>
<li><a href="#" class="share-link" data-platform="facebook" title="Share on Facebook"><i class="fab fa-facebook fa-3x"></i>facebook</a></li>
<li><a href="#" class="share-link" data-platform="telegram" title="Share on Telegram"><i class="fab fa-telegram fa-3x"></i>telegram</a></li>
<li><a href="#" class="share-link" data-platform="twitter" title="Share on Twitter"><i class="fab fa-twitter fa-3x"></i>twitter</a></li>
<li><a href="#" class="share-link" data-platform="linkedin" title="Share on LinkedIn"><i class="fab fa-linkedin fa-3x"></i>linkedin</a></li>
<li><a href="#" class="share-link" data-platform="weixin" title="Share on Zalo"><i class="fab fa-weixin fa-3x"></i>copy</a></li>
</ul>
</div>
</div>
<div class="added-by-box animate text-left" id="addedByTag"></div>
</div>
<div class="controller-wrapper w-full">
<div class="controller-group w-full">
<button class="btn-generator w-full" id="generateQuoteBtn" data-i18n="generate">
Generate <i class="fa-solid fa-rotate"></i>
</button>
<select name="selectedCategoryTag" id="selectedCategoryTag" class="capitalise w-full"></select>
</div>
<div class="w-full text-center">
<span class="contribute1" id="contributor">
<a class="contributor" data-i18n="see_all_contributors" href="./Contributors/contributors.html">
See all Contributors
<i class="fa fa-arrow-right px-3" aria-hidden="true"></i>
</a>
</span>
<span class="contribute2" id="contributeButton">
<a href="https://github.com/Shariar-Hasan/QuoteVerse" data-i18n="click_to_contribute" target="_blank" rel="noopener noreferrer">
<i class="fab fa-github px-3" aria-hidden="true"></i>Click
to contribute</a>
</span>
</div>
</div>
</div>
</section>
<div id="theme_changer_button" class="theme_changer_button">
<span class="button-text" data-i18n="color">Color</span>
<input type="color" id="color_picker" value="#ededed">
</div>
</main>
<!-- Other existing script tags -->
<script src="./node_modules/i18next/i18next.js"></script>
<script src="./node_modules/i18next-http-backend/i18nextHttpBackend.js"></script>
<script src="./node_modules/i18next-browser-languagedetector/i18nextBrowserLanguageDetector.js"></script>
<script src="./node_modules/jquery/dist/jquery.js"></script>
<script src="./node_modules/jquery-i18next/jquery-i18next.js"></script>
<script type="module" src="./assets/js/lang.js"></script>
<script src="./Quotes.js"></script>
<script src="./assets/js/others.js"></script>
<script src="./assets/js/main.js"></script>
<script>
const shareButton = document.getElementById('share-button');
const sharePopup = document.getElementById('share-popup');
shareButton.addEventListener('click', (event) => {
event.stopPropagation();
sharePopup.style.display = sharePopup.style.display === 'none' || sharePopup.style.display === '' ? 'block' : 'none';
});
document.addEventListener('click', (event) => {
if (!shareButton.contains(event.target) && !sharePopup.contains(event.target)) {
sharePopup.style.display = 'none';
}
});
function encodeQuote(quote, author) {
return encodeURIComponent(`"${quote}" - ${author}`);
}
document.querySelectorAll('.popup a').forEach(link => {
link.addEventListener('click', (event) => {
event.preventDefault();
const platform = event.currentTarget.getAttribute('title').split(' ')[2].toLowerCase();
const quoteText = document.getElementById('quoteTextTag').innerText;
const quoteAuthor = document.getElementById('quoteAuthorTag').innerText;
const encodedQuote = encodeQuote(quoteText, quoteAuthor);
const shareUrl = `https://quote-verse.netlify.app/`;
switch (platform) {
case 'facebook':
window.open(`https://www.facebook.com/sharer/sharer.php?u=${shareUrl}`, '_blank');
break;
case 'telegram':
window.open(`https://t.me/share/url?url=${shareUrl}&text=${encodedQuote}`, '_blank');
break;
case 'twitter':
window.open(`https://twitter.com/intent/tweet?text=${encodedQuote}&url=${shareUrl}`, '_blank');
break;
case 'linkedin':
window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${shareUrl}&title=${encodedQuote}`, '_blank');
break;
default:
console.log('Unknown platform');
}
sharePopup.style.display = 'none';
});
});
</script>
<!-- Font Awesome Icons -->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
</body>
</html>