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
2 changes: 1 addition & 1 deletion src/components/Communities.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getCollection } from 'astro:content'
import CommunitySimpleCard from './CommunitySimpleCard.astro'
import '../styles/components/Communities.css'

const communities = await getCollection('communities')
const communities = (await getCollection('communities')).filter(c => !c.data.hidden)
---

<section class="communities-section" id="comunidades">
Expand Down
9 changes: 7 additions & 2 deletions src/components/EventBanner.astro
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ function formatEventTime(startDate: Date, endDate?: Date) {
return startTimeStr
}

function isEventToday(eventDate: Date) {
return eventDate.toDateString() === new Date().toDateString()
}

const relevantEvents = events
.filter(event => {
const isToday = isEventSoonOrToday(event.data.date)
Expand All @@ -60,6 +64,7 @@ const relevantEvents = events
...event.data,
communityName: community?.name || 'Comunidad',
isInProgress: isEventInProgress(event.data.date, event.data.endDate),
isToday: isEventToday(event.data.date),
formattedTime: formatEventTime(event.data.date, event.data.endDate)
}
})
Expand All @@ -72,7 +77,7 @@ const relevantEvents = events
{relevantEvents.map((event, index) => (
<div class="event-banner-item">
<span class="event-status">
{event.isInProgress ? '🔴 EN CURSO' : '⚡ MAÑANA'}
{event.isInProgress ? '🔴 EN CURSO' : event.isToday ? '⚡ HOXE' : '⚡ MAÑANA'}
</span>
<span class="event-community">{event.communityName}</span>
<span class="event-separator">•</span>
Expand All @@ -89,7 +94,7 @@ const relevantEvents = events
{relevantEvents.map((event, index) => (
<div class="event-banner-item">
<span class="event-status">
{event.isInProgress ? '🔴 EN CURSO' : '⚡ MAÑANA'}
{event.isInProgress ? '🔴 EN CURSO' : event.isToday ? '⚡ HOXE' : '⚡ MAÑANA'}
</span>
<span class="event-community">{event.communityName}</span>
<span class="event-separator">•</span>
Expand Down
8 changes: 6 additions & 2 deletions src/components/calendar/CalendarEvent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ const buttonProps = isButton
loading="lazy"
/>
) : (
<span class="calendar-event__logo-fallback">{event.communityName.charAt(0)}</span>
<span class="calendar-event__logo-fallback">
{event.communityName.charAt(0)}
</span>
)}
<span class="calendar-event__time">{event.timeLabel}</span>
</span>
Expand All @@ -61,7 +63,9 @@ const buttonProps = isButton
loading="lazy"
/>
) : (
<span class="calendar-event__logo-fallback">{event.communityName.charAt(0)}</span>
<span class="calendar-event__logo-fallback">
{event.communityName.charAt(0)}
</span>
)}
<span class="calendar-event__time">{event.timeLabel}</span>
</span>
Expand Down
6 changes: 6 additions & 0 deletions src/content/communities/corunatech.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: CoruñaTech
description: Organización que une e impulsa as comunidades tecnolóxicas de A Coruña, promovendo a colaboración, o coñecemento aberto e o ecosistema tech local.
logo: https://github.com/CorunaTech.png
website: https://corunatech.org
tags: [comunidade, tecnoloxia, a-coruña, open-source]
hidden: true
3 changes: 2 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const communities = defineCollection({
tags: z.array(z.string()),
technologies: z.array(z.string()).optional(),
meetingFrequency: z.string().optional(),
contactEmail: z.string().email().optional()
contactEmail: z.string().email().optional(),
hidden: z.boolean().optional() // If true, not shown in the communities listing
})
})

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: "Open Space: El futuro de la IA"
description: Tarde de debate abierto sobre la IA que queremos — sus valores, sus límites y lo que construimos alrededor. Formato Open Space con participación de la Agencia Española de Supervisión de la Inteligencia Artificial (AESIA) y la comunidad tech local.
date: 2026-05-19T18:30:00+02:00
endDate: 2026-05-19T20:30:00+02:00
location: Rúa de Veeduría 2 (AESIA), A Coruña
rsvpLink: https://corunatech.github.io/open-space-aesia/
tags: [ia, open-space, aesia, debate, comunidade]
community: corunatech
2 changes: 1 addition & 1 deletion src/pages/communities/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import '../../styles/pages/CommunityDetail.css'

export async function getStaticPaths() {
const communities = await getCollection('communities')
const communities = (await getCollection('communities')).filter(c => !c.data.hidden)
return communities.map(community => {
const slug = getCommunitySlug(community.id)
return {
Expand Down
2 changes: 0 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import PageLayout from '../layouts/PageLayout.astro'
import Hero from '../components/Hero.astro'
import Communities from '../components/Communities.astro'
import SocialNetworks from '../components/SocialNetworks.astro'
import Events from '../components/Events.astro'
---

Expand All @@ -12,6 +11,5 @@ import Events from '../components/Events.astro'
>
<Hero />
<Communities />
<SocialNetworks />
<Events />
</PageLayout>
2 changes: 1 addition & 1 deletion src/utils/calendar-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const createMonthData = (
const date = new Date(year, month, dayNumber)
const dayKey = buildKey(date.getFullYear(), date.getMonth(), date.getDate())
const isCurrentMonth = dayNumber >= 1 && dayNumber <= lastDay.getDate()
const eventsForDay = isCurrentMonth ? dayEvents.get(dayKey) ?? [] : []
const eventsForDay = isCurrentMonth ? (dayEvents.get(dayKey) ?? []) : []

const groupMap = new Map<string, CalendarEventItem[]>()
eventsForDay.forEach(item => {
Expand Down