refactor: update UI components and page layouts
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Adriano Belisario
2026-05-03 18:18:31 +00:00
parent ee884ccdf2
commit 52f75f0b3d
8 changed files with 56 additions and 94 deletions

View File

@@ -10,8 +10,8 @@ interface ShareButtonProps {
}
export default function ShareButton({
title = 'Check out this wishlist!',
text = 'I thought you might be interested in this wishlist.',
title = 'Veja a lista do chá de bebê!',
text = 'Dê uma olhada na lista de presentes do chá de bebê.',
url,
className = ''
}: ShareButtonProps) {
@@ -27,10 +27,10 @@ export default function ShareButton({
// Fallback: copy to clipboard
try {
await navigator.clipboard.writeText(shareUrl);
alert('Link copied to clipboard!');
alert('Link copiado!');
} catch (err) {
console.error('Failed to copy:', err);
alert('Unable to share or copy link');
alert('Não foi possível compartilhar');
}
return;
}
@@ -58,7 +58,7 @@ export default function ShareButton({
<button
onClick={handleShare}
className={`inline-flex items-center px-6 py-3 border-2 border-indigo-600 dark:border-indigo-500 text-base font-semibold rounded-lg text-indigo-600 dark:text-indigo-400 bg-white dark:bg-gray-800 hover:bg-indigo-50 dark:hover:bg-gray-700 transition-all cursor-pointer ${className}`}
title="Share this page"
title="Compartilhar"
>
<svg
className="w-5 h-5 mr-2"
@@ -73,7 +73,7 @@ export default function ShareButton({
d="M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"
/>
</svg>
Share
Compartilhar
</button>
);
}