simplificação da pagina inicial

This commit is contained in:
Renan Bernordi 2025-01-23 17:16:23 -03:00
parent 761b2dde52
commit 544bbf7826
5 changed files with 15 additions and 115 deletions

View file

@ -148,17 +148,8 @@ $cache_folder = $cache->getCacheFileCount();
<?php endif; ?> <?php endif; ?>
</div> </div>
<!-- Exemplo de uso direto / Direct usage example --> <!-- Adicionar como aplicativo / Add as app (mobile only) -->
<div class="mt-8 text-center text-base text-gray-500"> <div class="bg-white rounded-xl shadow-lg p-8 mt-8 mb-8 md:hidden">
<p>
<img src="assets/svg/code.svg" class="inline-block w-5 h-5 mr-2" alt="Acesso direito">
<?php echo Language::get('direct_access'); ?>
<pre class="bg-gray-100 p-3 rounded-lg text-sm overflow-x-auto"><?php echo SITE_URL; ?>/p/https://exemplo.com</pre>
</p>
</div>
<!-- Adicionar como aplicativo / Add as app -->
<div class="bg-white rounded-xl shadow-lg p-8 mt-8">
<h2 class="text-xl font-semibold text-gray-800 mb-6 flex items-center"> <h2 class="text-xl font-semibold text-gray-800 mb-6 flex items-center">
<img src="assets/svg/marreta.svg" class="w-6 h-6 mr-3" alt="App"> <img src="assets/svg/marreta.svg" class="w-6 h-6 mr-3" alt="App">
<?php echo Language::get('add_as_app'); ?> <?php echo Language::get('add_as_app'); ?>
@ -178,8 +169,8 @@ $cache_folder = $cache->getCacheFileCount();
</div> </div>
</div> </div>
<!-- Seção de Bookmarklet / Bookmarklet section --> <!-- Seção de Bookmarklet / Bookmarklet section (desktop only) -->
<div class="bg-white rounded-xl shadow-lg p-8 mt-8 mb-8"> <div class="bg-white rounded-xl shadow-lg p-8 mt-8 mb-8 hidden md:block">
<h2 class="text-xl font-semibold text-gray-800 mb-6 flex items-center"> <h2 class="text-xl font-semibold text-gray-800 mb-6 flex items-center">
<img src="assets/svg/bookmark.svg" class="w-6 h-6 mr-3" alt="Favoritos"> <img src="assets/svg/bookmark.svg" class="w-6 h-6 mr-3" alt="Favoritos">
<?php echo Language::get('bookmarklet_title'); ?> <?php echo Language::get('bookmarklet_title'); ?>
@ -199,74 +190,15 @@ $cache_folder = $cache->getCacheFileCount();
</div> </div>
</div> </div>
<!-- Serviços alternativos / Alternative services --> <div class="text-gray-600 text-center text-sm">
<div class="bg-white rounded-xl shadow-lg p-8 mt-8"> <p>
<h2 class="text-xl font-semibold text-gray-800 mb-6"> <?php echo Language::get('open_source_description'); ?>
<img src="assets/svg/refresh.svg" class="inline-block w-6 h-6 mr-3" alt="Serviços alternativos"> </p>
<?php echo Language::get('alternative_services'); ?> <p class="mt-2">
</h2> <a href="https://github.com/manualdousuario/marreta/wiki/API-Rest" target="_blank" class="underline">API Rest</a> <a href="https://github.com/manualdousuario/marreta/" target="_blank" class="underline">Github</a>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6"> </p>
<a href="https://archive.today" target="_blank"
class="flex items-center p-4 rounded-lg border-2 border-gray-200 hover:border-blue-500 hover:bg-blue-50 transition-all duration-200">
<img src="assets/svg/archive.svg" class="w-8 h-8 mr-4" alt="Archive.today">
<div>
<div class="font-medium text-lg text-gray-800">archive.today</div>
</div>
</a>
<a href="https://12ft.io" target="_blank"
class="flex items-center p-4 rounded-lg border-2 border-gray-200 hover:border-green-500 hover:bg-green-50 transition-all duration-200">
<img src="assets/svg/bypass.svg" class="w-8 h-8 mr-4" alt="12ft.io">
<div>
<div class="font-medium text-lg text-gray-800">12ft.io</div>
</div>
</a>
</div>
</div> </div>
<!-- Desenvolvimento / Development -->
<div class="bg-white rounded-xl shadow-lg p-8 mt-8">
<h2 class="text-xl font-semibold text-gray-800 mb-6 flex items-center">
<img src="assets/svg/code.svg" class="w-6 h-6 mr-3" alt="API REST">
<?php echo Language::get('api_title'); ?>
</h2>
<div class="space-y-4">
<p class="text-gray-600">
<?php echo str_replace('{site_name}', SITE_NAME, Language::get('api_description')); ?>
</p>
<div class="bg-gray-50 rounded-lg p-4">
<h3 class="font-medium text-gray-800 mb-2"><?php echo Language::get('endpoint'); ?></h3>
<pre class="bg-gray-100 p-3 rounded-lg text-sm overflow-x-auto">GET <?php echo SITE_URL; ?>/api/https://exemplo.com</pre>
</div>
<div class="bg-gray-50 rounded-lg p-4">
<h3 class="font-medium text-gray-800 mb-2"><?php echo Language::get('success_response'); ?></h3>
<pre class="bg-gray-100 p-3 rounded-lg text-sm overflow-x-auto">
{
"status": 200,
"url": "<?php echo SITE_URL; ?>/p/https://exemplo.com"
}</pre>
</div>
<div class="bg-gray-50 rounded-lg p-4">
<h3 class="font-medium text-gray-800 mb-2"><?php echo Language::get('error_response'); ?></h3>
<pre class="bg-gray-100 p-3 rounded-lg text-sm overflow-x-auto">
{
"status": 400,
"error": {
"code": "INVALID_URL",
"message": "<?php echo Language::getMessage('INVALID_URL')['message']; ?>"
}
}</pre>
</div>
</div>
<h2 class="text-xl font-semibold text-gray-800 mt-6 mb-6 flex items-center">
<img src="assets/svg/code.svg" class="w-6 h-6 mr-3" alt="Open Source">
<?php echo Language::get('open_source_title'); ?>
</h2>
<div>
<p class="text-gray-600">
<?php echo Language::get('open_source_description'); ?>
</p>
</div>
</div>
</div> </div>
<!-- Scripts JavaScript --> <!-- Scripts JavaScript -->

View file

@ -4,18 +4,10 @@ return [
'walls_destroyed' => 'Paywall überwunden', 'walls_destroyed' => 'Paywall überwunden',
'url_placeholder' => 'Adresse eingegeben (z.B., https://example.com)', 'url_placeholder' => 'Adresse eingegeben (z.B., https://example.com)',
'analyze_button' => 'Analysiere', 'analyze_button' => 'Analysiere',
'direct_access' => 'Direkter Zugang:',
'bookmarklet_title' => 'Zu Lesezeichen hinzufügen', 'bookmarklet_title' => 'Zu Lesezeichen hinzufügen',
'bookmarklet_description' => 'Ziehe Sie die Schaltfläche unten in Ihre Lesezeichenleiste, um schnell auf {site_name} zuzugreifen:', 'bookmarklet_description' => 'Ziehe Sie die Schaltfläche unten in Ihre Lesezeichenleiste, um schnell auf {site_name} zuzugreifen:',
'open_in' => 'Öffne {site_name}', 'open_in' => 'Öffne {site_name}',
'alternative_services' => 'Alternative Services', 'open_source_description' => 'Das ist ein <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">Open Source</a> Projekt das mit ❤️ erstellt wurde!',
'api_title' => 'REST API',
'api_description' => '{site_name} bietet eine REST-API für die Integration mit anderen Systemen:',
'endpoint' => 'Endpunkt:',
'success_response' => 'Erfolgreiche Rückmeldung:',
'error_response' => 'Fehlerhafte Rückmeldung:',
'open_source_title' => 'Open Source Projekt',
'open_source_description' => 'Das ist ein <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">Open Source</a> Projekt das mit ❤️ erstellt wurde!<br />Sie können einen Beitrag leisten, Probleme melden oder Vorschläge machen über <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">GitHub</a>.',
'adblocker_warning' => 'Bei Konflikten zwischen {site_name} und Werbeblockern kann ein weißer Bildschirm angezeigt werden. Verwenden Sie den Inkognito-Modus oder deaktivieren Sie die Erweiterung.', 'adblocker_warning' => 'Bei Konflikten zwischen {site_name} und Werbeblockern kann ein weißer Bildschirm angezeigt werden. Verwenden Sie den Inkognito-Modus oder deaktivieren Sie die Erweiterung.',
'add_as_app' => 'Als app hinzufügen', 'add_as_app' => 'Als app hinzufügen',
'add_as_app_description' => 'Installieren Sie {site_name} als App auf Android mit Chrome, um schnell Links zu teilen:', 'add_as_app_description' => 'Installieren Sie {site_name} als App auf Android mit Chrome, um schnell Links zu teilen:',

View file

@ -4,18 +4,10 @@ return [
'walls_destroyed' => 'walls destroyed!', 'walls_destroyed' => 'walls destroyed!',
'url_placeholder' => 'Enter URL (e.g., https://example.com)', 'url_placeholder' => 'Enter URL (e.g., https://example.com)',
'analyze_button' => 'Analyze', 'analyze_button' => 'Analyze',
'direct_access' => 'Direct access:',
'bookmarklet_title' => 'Add to Bookmarks', 'bookmarklet_title' => 'Add to Bookmarks',
'bookmarklet_description' => 'Drag the button below to your bookmarks bar to quickly access {site_name} on any page:', 'bookmarklet_description' => 'Drag the button below to your bookmarks bar to quickly access {site_name} on any page:',
'open_in' => 'Open in {site_name}', 'open_in' => 'Open in {site_name}',
'alternative_services' => 'Alternative Services', 'open_source_description' => 'This is an <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">open source</a> project made with ❤️!',
'api_title' => 'REST API',
'api_description' => '{site_name} provides a REST API for integration with other systems:',
'endpoint' => 'Endpoint:',
'success_response' => 'Success response:',
'error_response' => 'Error response:',
'open_source_title' => 'Open Source Project',
'open_source_description' => 'This is an <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">open source</a> project made with ❤️!<br />You can contribute, report issues, or make suggestions through <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">GitHub</a>.',
'adblocker_warning' => 'Conflicts between {site_name} and ad blockers may cause a white screen. Use incognito mode or disable the extension.', 'adblocker_warning' => 'Conflicts between {site_name} and ad blockers may cause a white screen. Use incognito mode or disable the extension.',
'add_as_app' => 'Add as app', 'add_as_app' => 'Add as app',
'add_as_app_description' => 'Install {site_name} as an app on Android with Chrome to quickly share links:', 'add_as_app_description' => 'Install {site_name} as an app on Android with Chrome to quickly share links:',

View file

@ -4,18 +4,10 @@ return [
'walls_destroyed' => '¡paredes destruidas!', 'walls_destroyed' => '¡paredes destruidas!',
'url_placeholder' => 'Ingrese URL (ej: https://ejemplo.com)', 'url_placeholder' => 'Ingrese URL (ej: https://ejemplo.com)',
'analyze_button' => 'Analizar', 'analyze_button' => 'Analizar',
'direct_access' => 'Acceso directo:',
'bookmarklet_title' => 'Agregar a Favoritos', 'bookmarklet_title' => 'Agregar a Favoritos',
'bookmarklet_description' => 'Arrastra el botón a tu barra de favoritos para acceder rápidamente a {site_name} en cualquier página:', 'bookmarklet_description' => 'Arrastra el botón a tu barra de favoritos para acceder rápidamente a {site_name} en cualquier página:',
'open_in' => 'Abrir en {site_name}', 'open_in' => 'Abrir en {site_name}',
'alternative_services' => 'Servicios Alternativos', 'open_source_description' => '¡Este es un proyecto de <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">código abierto</a> hecho con ❤️!',
'api_title' => 'API REST',
'api_description' => '{site_name} proporciona una API REST para integración con otros sistemas:',
'endpoint' => 'Endpoint:',
'success_response' => 'Respuesta exitosa:',
'error_response' => 'Respuesta de error:',
'open_source_title' => 'Proyecto de Código Abierto',
'open_source_description' => '¡Este es un proyecto de <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">código abierto</a> hecho con ❤️!<br />Puedes contribuir, reportar problemas o hacer sugerencias a través de <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">GitHub</a>.',
'adblocker_warning' => 'Los conflictos entre {site_name} y los bloqueadores de anuncios pueden causar una pantalla en blanco. Use el modo incógnito o desactive la extensión.', 'adblocker_warning' => 'Los conflictos entre {site_name} y los bloqueadores de anuncios pueden causar una pantalla en blanco. Use el modo incógnito o desactive la extensión.',
'add_as_app' => 'Agregar como aplicación', 'add_as_app' => 'Agregar como aplicación',
'add_as_app_description' => 'Instala {site_name} como una aplicación en Android con Chrome para compartir enlaces rápidamente:', 'add_as_app_description' => 'Instala {site_name} como una aplicación en Android con Chrome para compartir enlaces rápidamente:',

View file

@ -4,18 +4,10 @@ return [
'walls_destroyed' => 'paredes derrubadas!', 'walls_destroyed' => 'paredes derrubadas!',
'url_placeholder' => 'Digite a URL (ex: https://exemplo.com)', 'url_placeholder' => 'Digite a URL (ex: https://exemplo.com)',
'analyze_button' => 'Analisar', 'analyze_button' => 'Analisar',
'direct_access' => 'Acesso direto:',
'bookmarklet_title' => 'Adicione aos Favoritos', 'bookmarklet_title' => 'Adicione aos Favoritos',
'bookmarklet_description' => 'Arraste o botão abaixo para sua barra de favoritos para acessar o {site_name} rapidamente em qualquer página:', 'bookmarklet_description' => 'Arraste o botão abaixo para sua barra de favoritos para acessar o {site_name} rapidamente em qualquer página:',
'open_in' => 'Abrir no {site_name}', 'open_in' => 'Abrir no {site_name}',
'alternative_services' => 'Serviços alternativos', 'open_source_description' => 'Este é um projeto de <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">código aberto</a> feito com ❤️!',
'api_title' => 'API REST',
'api_description' => 'O {site_name} disponibiliza uma API REST para integração com outros sistemas:',
'endpoint' => 'Endpoint:',
'success_response' => 'Resposta de sucesso:',
'error_response' => 'Resposta de erro:',
'open_source_title' => 'Projeto Open Source',
'open_source_description' => 'Este é um projeto de <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">código aberto</a> feito com ❤️!<br />Você pode contribuir, reportar problemas ou fazer sugestões através do <a href="https://github.com/manualdousuario/marreta/" class="underline" target="_blank">GitHub</a>.',
'adblocker_warning' => 'Conflitos entre o {site_name} e bloqueadores de anúncios podem causar tela branca. Use o modo anônimo ou desative a extensão.', 'adblocker_warning' => 'Conflitos entre o {site_name} e bloqueadores de anúncios podem causar tela branca. Use o modo anônimo ou desative a extensão.',
'add_as_app' => 'Adicionar como aplicativo', 'add_as_app' => 'Adicionar como aplicativo',
'add_as_app_description' => 'Instale o {site_name} como um aplicativo no Android com Chrome para compartilhar links rapidamente:', 'add_as_app_description' => 'Instale o {site_name} como um aplicativo no Android com Chrome para compartilhar links rapidamente:',