lingua 100% correta
This commit is contained in:
18
src/App.jsx
18
src/App.jsx
@@ -1037,10 +1037,10 @@ export default function App() {
|
||||
<Badge variant="warning">{weatherData ? weatherData.name : t('todayIn')}</Badge>
|
||||
</div>
|
||||
<h3 className="text-5xl font-black tracking-tighter mb-4" style={{ color: 'white' }}>
|
||||
{weatherData ? `${weatherData.currentTemp}°C Atual • Média ${weatherData.avgTemp}°C` : t('weatherUpdate')}
|
||||
{weatherData ? t('weatherCurrentAvg').replace('{current}', weatherData.currentTemp).replace('{avg}', weatherData.avgTemp) : t('weatherUpdate')}
|
||||
</h3>
|
||||
<p className="text-lg font-medium max-w-lg leading-relaxed" style={{ color: 'rgba(255,255,255,0.8)' }}>
|
||||
{weatherData ? `O dia de hoje tem máximas de ${weatherData.maxTemp}°C e mínimas de ${weatherData.minTemp}°C. ${t('weatherMsg')}` : t('weatherMsg')}
|
||||
{weatherData ? `${t('weatherForecastDesc').replace('{max}', weatherData.maxTemp).replace('{min}', weatherData.minTemp)} ${t('weatherMsg')}` : t('weatherMsg')}
|
||||
</p>
|
||||
</div>
|
||||
<div className="mt-10 flex gap-4 items-center">
|
||||
@@ -1071,7 +1071,7 @@ export default function App() {
|
||||
</div>
|
||||
</div>
|
||||
)) : (
|
||||
<p className="text-xs opacity-50 italic">Adicione cores aos seus itens.</p>
|
||||
<p className="text-xs opacity-50 italic">{t('addColorsToItems')}</p>
|
||||
)}
|
||||
</div>
|
||||
</Card>
|
||||
@@ -1638,7 +1638,7 @@ export default function App() {
|
||||
))}
|
||||
</div>
|
||||
<input type="hidden" name="color" value={itemColors.join(', ')} />
|
||||
{itemColors.length === 0 && <p className="text-[10px] text-red-500 uppercase tracking-widest font-black mt-2">Selecione pelo menos uma cor</p>}
|
||||
{itemColors.length === 0 && <p className="text-[10px] text-red-500 uppercase tracking-widest font-black mt-2">{t('selectOneColor')}</p>}
|
||||
</div>
|
||||
<div className="space-y-4">
|
||||
<label className="text-[10px] font-black uppercase opacity-40 tracking-widest ml-1 text-inherit flex items-center gap-2"><ImageIcon size={12}/> {t('imageUrl')} ou Upload</label>
|
||||
@@ -1653,12 +1653,12 @@ export default function App() {
|
||||
/>
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="h-px bg-gray-200 dark:bg-gray-700 flex-1"></div>
|
||||
<span className="text-[10px] font-black uppercase tracking-widest opacity-30">OU</span>
|
||||
<span className="text-[10px] font-black uppercase tracking-widest opacity-30">{t('or')}</span>
|
||||
<div className="h-px bg-gray-200 dark:bg-gray-700 flex-1"></div>
|
||||
</div>
|
||||
<label className={`flex items-center justify-center gap-3 p-5 rounded-2xl cursor-pointer transition-all font-black text-[10px] uppercase tracking-widest border-2 border-dashed ${darkMode ? 'bg-gray-800 border-gray-700 hover:border-primary-500 hover:text-primary-400' : 'bg-gray-50 border-gray-200 hover:border-primary-400 hover:text-primary-600'}`}>
|
||||
<ImageIcon size={16} />
|
||||
<span>Upload da Galeria / Ficheiros</span>
|
||||
<span>{t('uploadGallery')}</span>
|
||||
<input type="file" accept="image/*" className="hidden" onChange={handleItemImageUpload} />
|
||||
</label>
|
||||
</div>
|
||||
@@ -1889,16 +1889,16 @@ export default function App() {
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<label className="flex items-center gap-3 p-4 rounded-xl border border-gray-100 dark:border-gray-800 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors">
|
||||
<input type="radio" name="type" value="Ideia/Sugestão" defaultChecked className="text-primary-600 focus:ring-primary-500" />
|
||||
<span className="font-bold text-sm text-inherit">Ideia / Sugestão</span>
|
||||
<span className="font-bold text-sm text-inherit">{t('ideaSuggestion')}</span>
|
||||
</label>
|
||||
<label className="flex items-center gap-3 p-4 rounded-xl border border-gray-100 dark:border-gray-800 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors">
|
||||
<input type="radio" name="type" value="Bug/Erro" className="text-primary-600 focus:ring-primary-500" />
|
||||
<span className="font-bold text-sm text-inherit">Bug / Erro</span>
|
||||
<span className="font-bold text-sm text-inherit">{t('bugError')}</span>
|
||||
</label>
|
||||
</div>
|
||||
<textarea name="message" required placeholder={t('writeMessage')} rows={4} className={`w-full p-4 rounded-xl border-none outline-none focus:ring-2 focus:ring-primary-500 font-bold resize-none ${darkMode ? 'bg-gray-800 text-white' : 'bg-gray-50'}`}></textarea>
|
||||
<button type="submit" className="w-full py-4 bg-primary-600 text-white rounded-xl font-black uppercase text-[10px] tracking-widest shadow-xl shadow-primary-600/30 hover:scale-[1.01] transition-all">
|
||||
Enviar Mensagem
|
||||
{t('sendMessage')}
|
||||
</button>
|
||||
</form>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user