Skip to content

Commit 6afda1b

Browse files
committed
Merge pull request 'beta' (#13) from beta into main
Reviewed-on: https://commitcloud.net/RonDevHub/MailShield/pulls/13
2 parents 1e23eda + ade294a commit 6afda1b

6 files changed

Lines changed: 85 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Changelog
22

33
### Fixed
4-
- The CAPTCHA integration has been updated and can no longer be bypassed.
5-
- The light/dark mode toggle has been redesigned and is now located in the page header, so there are no visual disruptions on the mobile site
64

75
### Added
8-
- SQLite (default, zero config), PostgreSQL (recommended for production) Switch via environment variables.
9-
- Easily switch from an SQLite database to PostgreSQL (migration can now be performed using JSON)
10-
- French and Italian languages added
6+
- A “How It Works” section has been added, and the translation has been included in the languages that have already been translated

src/lang/de.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,13 @@
4646
'kofi' => 'ko-fi.com',
4747
'bmac' => 'Buy me a Coffee',
4848
'crypto' => 'Crypto Workspace',
49+
'how_it_works_title' => 'So funktioniert es',
50+
'how_it_works_subtitle' => 'Schütze Deine E-Mails in 3 einfachen Schritten',
51+
'step1_title' => 'E-Mail-Adresse eingeben',
52+
'step1_desc' => 'Gib Deine E-Mail-Adresse in das obige Formular ein',
53+
'step2_title' => 'Link zum Schutz',
54+
'step2_desc' => 'Wir erstellen einen eindeutigen, geschützten Link für dich',
55+
'step3_title' => 'Sicher teilen',
56+
'step3_desc' => 'Nur Menschen können deine echte E-Mail-Adresse herausfinden.',
4957
'copy' => 'Erstellt mit ❤️ und ☕️ von'
5058
];

src/lang/en.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,13 @@
4646
'kofi' => 'ko-fi.com',
4747
'bmac' => 'Buy me a Coffee',
4848
'crypto' => 'Crypto Workspace',
49+
'how_it_works_title' => 'How It Works',
50+
'how_it_works_subtitle' => 'Protect your email in 3 simple steps',
51+
'step1_title' => 'Enter Email',
52+
'step1_desc' => 'Type your email address in the form above',
53+
'step2_title' => 'Get Protected Link',
54+
'step2_desc' => 'We generate a unique, protected link for you',
55+
'step3_title' => 'Share Safely',
56+
'step3_desc' => 'Only humans can reveal your real email',
4957
'copy' => 'Created with ❤️ and ☕️ by'
5058
];

src/lang/fr.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,13 @@
4646
'kofi' => 'ko-fi.com',
4747
'bmac' => 'Buy me a Coffee',
4848
'crypto' => 'Espace Crypto',
49+
'how_it_works_title' => 'Comment ça marche',
50+
'how_it_works_subtitle' => 'Protégez votre e-mail en 3 étapes simples',
51+
'step1_title' => 'Saisir l’e-mail',
52+
'step1_desc' => 'Entrez votre adresse e-mail dans le formulaire ci-dessus',
53+
'step2_title' => 'Obtenir le lien protégé',
54+
'step2_desc' => 'Nous générons un lien unique et protégé pour vous',
55+
'step3_title' => 'Partager en toute sécurité',
56+
'step3_desc' => 'Seuls les humains peuvent révéler votre véritable e-mail',
4957
'copy' => 'Créé avec ❤️ et ☕️ par'
5058
];

src/lang/it.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,13 @@
4646
'kofi' => 'ko-fi.com',
4747
'bmac' => 'Offrimi un caffè',
4848
'crypto' => 'Crypto Workspace',
49+
'how_it_works_title' => 'Come funziona',
50+
'how_it_works_subtitle' => 'Proteggi la tua email in 3 semplici passaggi',
51+
'step1_title' => 'Inserisci l’email',
52+
'step1_desc' => 'Digita il tuo indirizzo email nel modulo sopra',
53+
'step2_title' => 'Ottieni il link protetto',
54+
'step2_desc' => 'Generiamo per te un link unico e protetto',
55+
'step3_title' => 'Condividi in sicurezza',
56+
'step3_desc' => 'Solo gli esseri umani possono rivelare la tua vera email',
4957
'copy' => 'Creato con ❤️ e ☕️ da'
5058
];

src/public/index.php

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ class="group relative p-2 ml-1 bg-white/50 dark:bg-gray-800/50 backdrop-blur-sm
170170
</h1>
171171
<p class="text-gray-500 dark:text-gray-400"><?= $lang['subtitle'] ?></p>
172172

173-
<p class="mt-3 text-xs text-gray-500 dark:text-gray-400 flex items-center justify-center gap-4">
174-
<span class="flex items-center gap-1">
173+
<div class="mt-6 flex flex-wrap items-center justify-center gap-x-6 gap-y-3 text-[10px] uppercase tracking-widest font-bold text-gray-400 dark:text-gray-500">
174+
<span class="flex items-center gap-2 px-3 py-1.5 bg-gray-100/50 dark:bg-gray-800/40 rounded-full border border-gray-200/20 dark:border-gray-700/20 transition-colors hover:text-blue-500">
175175
<svg xmlns="http://www.w3.org/2000/svg" class="w-3 h-3" viewBox="0 0 384 512">
176176
<defs>
177177
<linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="0%">
@@ -183,7 +183,8 @@ class="group relative p-2 ml-1 bg-white/50 dark:bg-gray-800/50 backdrop-blur-sm
183183
</svg>
184184
<?= $lang['no_tracking'] ?>
185185
</span>
186-
<span class="flex items-center gap-1">
186+
187+
<span class="flex items-center gap-2 px-3 py-1.5 bg-gray-100/50 dark:bg-gray-800/40 rounded-full border border-gray-200/20 dark:border-gray-700/20 transition-colors hover:text-blue-500">
187188
<svg xmlns="http://www.w3.org/2000/svg" class="w-3 h-3" viewBox="0 0 576 512">
188189
<defs>
189190
<linearGradient id="g2" x1="0%" y1="0%" x2="100%" y2="0%">
@@ -195,7 +196,8 @@ class="group relative p-2 ml-1 bg-white/50 dark:bg-gray-800/50 backdrop-blur-sm
195196
</svg>
196197
<?= $lang['no_ads'] ?>
197198
</span>
198-
<span class="flex items-center gap-1">
199+
200+
<span class="flex items-center gap-2 px-3 py-1.5 bg-gray-100/50 dark:bg-gray-800/40 rounded-full border border-gray-200/20 dark:border-gray-700/20 transition-colors hover:text-blue-500">
199201
<svg xmlns="http://www.w3.org/2000/svg" class="w-3 h-3" viewBox="0 0 576 512">
200202
<defs>
201203
<linearGradient id="g3" x1="0%" y1="0%" x2="100%" y2="0%">
@@ -207,7 +209,7 @@ class="group relative p-2 ml-1 bg-white/50 dark:bg-gray-800/50 backdrop-blur-sm
207209
</svg>
208210
<?= $lang['free'] ?>
209211
</span>
210-
</p>
212+
</div>
211213

212214
<div class="mt-8 flex justify-center gap-12">
213215
<div class="text-center">
@@ -288,6 +290,49 @@ class="w-full bg-blue-600 text-white font-bold py-3 rounded-xl transition-all fl
288290
<?php endif; ?>
289291
</main>
290292

293+
<section class="mt-20 mb-12">
294+
<div class="text-center mb-12">
295+
<h2 class="text-3xl font-extrabold text-gray-900 dark:text-white mb-2">
296+
<?= $lang['how_it_works_title'] ?? 'How It Works' ?>
297+
</h2>
298+
<p class="text-gray-500 dark:text-gray-400">
299+
<?= $lang['how_it_works_subtitle'] ?? 'Protect your email in 3 simple steps' ?>
300+
</p>
301+
</div>
302+
303+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 text-center">
304+
<div class="flex flex-col items-center">
305+
<div class="w-16 h-16 bg-blue-500/10 rounded-2xl flex items-center justify-center mb-6 border border-blue-500/20 shadow-lg shadow-blue-500/5 transition-transform hover:scale-110 duration-300">
306+
<span class="text-2xl font-black text-blue-500">1</span>
307+
</div>
308+
<h3 class="text-lg font-bold mb-2"><?= $lang['step1_title'] ?? 'Enter Email' ?></h3>
309+
<p class="text-sm text-gray-500 dark:text-gray-400 leading-relaxed px-4">
310+
<?= $lang['step1_desc'] ?? 'Type your email address in the form above' ?>
311+
</p>
312+
</div>
313+
314+
<div class="flex flex-col items-center">
315+
<div class="w-16 h-16 bg-teal-500/10 rounded-2xl flex items-center justify-center mb-6 border border-teal-500/20 shadow-lg shadow-teal-500/5 transition-transform hover:scale-110 duration-300">
316+
<span class="text-2xl font-black text-teal-500">2</span>
317+
</div>
318+
<h3 class="text-lg font-bold mb-2"><?= $lang['step2_title'] ?? 'Get Protected Link' ?></h3>
319+
<p class="text-sm text-gray-500 dark:text-gray-400 leading-relaxed px-4">
320+
<?= $lang['step2_desc'] ?? 'We generate a unique, protected link for you' ?>
321+
</p>
322+
</div>
323+
324+
<div class="flex flex-col items-center">
325+
<div class="w-16 h-16 bg-purple-500/10 rounded-2xl flex items-center justify-center mb-6 border border-purple-500/20 shadow-lg shadow-purple-500/5 transition-transform hover:scale-110 duration-300">
326+
<span class="text-2xl font-black text-purple-500">3</span>
327+
</div>
328+
<h3 class="text-lg font-bold mb-2"><?= $lang['step3_title'] ?? 'Share Safely' ?></h3>
329+
<p class="text-sm text-gray-500 dark:text-gray-400 leading-relaxed px-4">
330+
<?= $lang['step3_desc'] ?? 'Only humans can reveal your real email' ?>
331+
</p>
332+
</div>
333+
</div>
334+
</section>
335+
291336
<footer class="mt-16 mb-8 text-center space-y-6">
292337
<a href="/support" class="inline-flex items-center gap-2 text-[11px] font-bold tracking-[0.2em] uppercase opacity-30 hover:opacity-100 transition-all duration-300 group">
293338
<span class="p-1.5 rounded-lg bg-gray-200 dark:bg-gray-800 group-hover:bg-red-500/10 group-hover:text-red-500 transition-colors shadow-sm">
@@ -308,7 +353,7 @@ class="w-full bg-blue-600 text-white font-bold py-3 rounded-xl transition-all fl
308353
<?= $lang['copy'] ?>
309354
<a href="https://github.com/RonDevHub/MailShield"
310355
target="_blank"
311-
class="relative group inline-block font-black text-gray-900 dark:text-gray-100 transition-all duration-300 hover:scale-105">
356+
class="relative group inline-block bg-clip-text text-semibold text-transparent bg-gradient-to-r from-blue-500 to-teal-400 transition-all duration-300 hover:scale-105">
312357
<span>RonDevHub</span>
313358
<span class="absolute -bottom-1 left-0 w-0 h-0.5 bg-gradient-to-r from-blue-500 to-teal-400 transition-all duration-300 group-hover:w-full"></span>
314359
<span class="absolute inset-0 bg-blue-500/0 group-hover:bg-blue-500/5 blur-xl transition-all duration-500 -z-10 rounded-full"></span>
@@ -354,4 +399,5 @@ function onCaptchaVerified(token) {
354399
})
355400
</script>
356401
</body>
402+
357403
</html>

0 commit comments

Comments
 (0)