feat: implement multilingual SEO support and enhance map UI with data synchronization updates
This commit is contained in:
+24
-19
@@ -53,26 +53,31 @@ const Sidebar = ({ language, onOpenSettings, isMobileMenuOpen, onCloseMobileMenu
|
||||
<div className="nav-links">
|
||||
{/* Favourites */}
|
||||
<div className={`nav-item ${isFavoritesPage ? 'active' : ''}`} onClick={() => handleNavigate('/favorites')} style={{ position: 'relative' }}>
|
||||
<FiStar fill={favorites.length > 0 ? '#f59e0b' : 'none'} color={favorites.length > 0 ? '#f59e0b' : 'currentColor'} />
|
||||
<div style={{ position: 'relative', display: 'flex' }}>
|
||||
<FiStar fill={favorites.length > 0 ? '#f59e0b' : 'none'} color={favorites.length > 0 ? '#f59e0b' : 'currentColor'} />
|
||||
{favorites.length > 0 && (
|
||||
<span style={{
|
||||
position: 'absolute',
|
||||
top: '-8px',
|
||||
right: '-12px',
|
||||
backgroundColor: '#f59e0b',
|
||||
color: '#000',
|
||||
borderRadius: '999px',
|
||||
fontSize: '0.65rem',
|
||||
fontWeight: 'bold',
|
||||
minWidth: '16px',
|
||||
height: '16px',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
padding: '0 4px',
|
||||
border: '2px solid var(--bg-card)'
|
||||
}}>
|
||||
{favorites.length}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<span className="sidebar-text">{dict.favorites}</span>
|
||||
{favorites.length > 0 && (
|
||||
<span style={{
|
||||
marginLeft: 'auto',
|
||||
backgroundColor: '#f59e0b',
|
||||
color: '#000',
|
||||
borderRadius: '999px',
|
||||
fontSize: '0.7rem',
|
||||
fontWeight: 'bold',
|
||||
minWidth: '18px',
|
||||
height: '18px',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
padding: '0 5px',
|
||||
}}>
|
||||
{favorites.length}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Lakes & Reservoirs */}
|
||||
|
||||
Reference in New Issue
Block a user