Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion frontend/src/components/ChannelsBanner.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import React from 'react'
import { useTranslation } from 'react-i18next'

const focusFooterEmail = (e) => {
e.preventDefault()
const form = document.getElementById('footer-subscribe')
if (!form) return
form.scrollIntoView({ behavior: 'smooth', block: 'center' })
setTimeout(() => form.querySelector('input[type="email"]')?.focus(), 350)
}

const CHANNELS = (t) => [
{
icon: 'fas fa-envelope',
Expand All @@ -11,6 +19,7 @@ const CHANNELS = (t) => [
action: t('channelsBanner.email.action'),
href: '#footer-subscribe',
external: false,
onClick: focusFooterEmail,
},
{
icon: 'fab fa-telegram',
Expand Down Expand Up @@ -62,14 +71,15 @@ const ChannelsBanner = () => {
)
}

const ChannelCard = ({ icon, color, colorHex, label, desc, action, href, external }) => {
const ChannelCard = ({ icon, color, colorHex, label, desc, action, href, external, onClick }) => {
const [hovered, setHovered] = React.useState(false)

return (
<a
href={href}
target={external ? '_blank' : undefined}
rel={external ? 'noopener noreferrer' : undefined}
onClick={onClick}
style={{
display: 'flex',
alignItems: 'center',
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/EventListing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const EventListing = ({
<i className="fas fa-bookmark"></i>
{t('eventListing.favoritesOnly')}
</label>
<div className="filter-date-range">
<div className="filter-date-range" style={{ marginLeft: 'auto' }}>
<input
type="date"
className="filter-select filter-date-input"
Expand All @@ -245,7 +245,7 @@ const EventListing = ({
<button
className="filter-toggle"
onClick={clearFilters}
style={{ marginLeft: 'auto', color: 'var(--danger)', borderColor: 'rgba(239,68,68,0.3)' }}
style={{ color: 'var(--danger)', borderColor: 'rgba(239,68,68,0.3)' }}
>
<i className="fas fa-times"></i>
{t('eventListing.clear')}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ h1, h2, h3, h4, h5, h6 {
.filter-row {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
flex-wrap: nowrap;
align-items: center;
}

Expand Down
Loading