diff --git a/public/img/schedule.png b/public/img/schedule.png new file mode 100644 index 0000000..33afda4 Binary files /dev/null and b/public/img/schedule.png differ diff --git a/src/components/DateTimeChangingChild.astro b/src/components/DateTimeChangingChild.astro index 267bebc..59e2697 100644 --- a/src/components/DateTimeChangingChild.astro +++ b/src/components/DateTimeChangingChild.astro @@ -5,7 +5,7 @@ const id = Math.round(Math.random() * 100000); const beforeId = 'before' + id; const doingId = 'doing' + id; const afterId = 'after' + id; -// console.log(beginDate, endDate, refreshInterval, id); +console.log(beginDate, endDate, refreshInterval, id); --- diff --git a/src/components/Menu.astro b/src/components/Menu.astro index cae58c9..c511b97 100644 --- a/src/components/Menu.astro +++ b/src/components/Menu.astro @@ -27,15 +27,13 @@ const path_fr = path.replace('/en/','/'); {t("past_editions")} - +
  • {t('store_access_meet_and_greet')}
  • - + {t('store_opens_on', (store.open_date as any)[lang])} {t('store_is_soldout')} diff --git a/src/data/cfp.json b/src/data/cfp.json index 1d284ea..a4a808a 100644 --- a/src/data/cfp.json +++ b/src/data/cfp.json @@ -7,18 +7,27 @@ "feedback_url": "", "dates": { "open_date": { - "date": "2024-09-07T00:00:00.000", + "date": "2024-09-07T00:00:00.000+02:00", "fr": "7 Septembre 2024", "en": "7th of September 2024" }, "close_date": { - "date": "2024-10-15T00:00:00.000", + "date": "2024-10-15T00:00:00.000+02:00", "fr": "15 Octobre 2024", "en": "15th of October 2024" }, "notification_date": { "fr": "Début Novembre 2024", "en": "Beginning November 2024" + }, + "schedule" : { + "date": "2024-11-15T00:00:00.000+01:00", + "fr": "15 Novembre 2024", + "en": "15th of November 2024", + "url" : { + "embedded": "https://app-demo.voxxr.in/events/snowcamp25/embedded-schedule", + "full": "https://app-demo.voxxr.in/events/snowcamp25/schedule" + } } } } diff --git a/src/data/organisation.json b/src/data/organisation.json index 7ec8056..9abd63e 100644 --- a/src/data/organisation.json +++ b/src/data/organisation.json @@ -56,11 +56,6 @@ "linkedin": "ludovicp", "github": "ludomp" }, - { - "name": "Mathieu Poissard", - "img": "mathieu.png", - "linkedin": "mathieu-poissard-769800b8" - }, { "name": "Michel Barret", "img": "michel.jpg", diff --git a/src/data/ticket.json b/src/data/ticket.json index e57bec5..0aebf34 100644 --- a/src/data/ticket.json +++ b/src/data/ticket.json @@ -7,8 +7,8 @@ "price_univ": 160, "possible_status": ["not_open", "open", "closed", "deactivated"], "status": "not_open", - "beginDate": "2024-11-18T11:00:00.000", - "endDate": "2025-01-20T00:00:00.000", + "beginDate": "2024-11-18T11:00:00.000+01:00", + "endDate": "2025-01-20T00:00:00.000+01:00", "open_date": { "default": "unknown", "fr": "18 Novembre à 11h00", diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 2a7b955..7610536 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -491,5 +491,12 @@ Candidate is coached from ideation to the final 20-minute session, that will tak

    Of course, if we notice that your submission is missing information or that your topic/abstract isn’t clear enough, we will do our best to let you know so you can make adjustments.

    However, note that this is only possible while the CFP is open and you can still modify your submission. The closer you submit your session to the CFP closing date, the fewer chances you'll have to revise your text.

    `; - return i18n; + i18n.schedule_menu ='Program'; + i18n.schedule_title ='Program'; + i18n.schedule_unavailable =`The program will be available the ${cfp.dates.schedule.en}.`; + i18n.schedule_available =`The programm is available since the ${cfp.dates.schedule.en}.`; + i18n.schedule_openfullschedule =`To see the program on a full page click on `; + i18n.schedule_change =`Until the last minute, some minor changes are possible. A speaker can be unavailable or the Snowcamp organisation team can decided to swap some talk of room due to the number of expected attendees.`; + + return i18n; } diff --git a/src/i18n/fr.ts b/src/i18n/fr.ts index 0e4ffa8..3bab677 100644 --- a/src/i18n/fr.ts +++ b/src/i18n/fr.ts @@ -511,6 +511,12 @@ contrat avec ce sponsoring pour laisser la place à un autre sponsor.`;

    Bien sûr si nous constatons qu'il manque des informations à votre soumission ou que votre sujet/abstract n'est pas assez clair nous ferons au mieux pour vous en faire part afin que vous puissiez corriger le tir.

    Cependant notez que cela ne nous est possible que pendant que le CFP est ouvert et que vous pouvez modifier votre soumission. Donc plus vous soumettez votre session proche de la date de fermeture du CFP, plus vous réduisez vos chances d'avoir droit à retravailler votre texte.

    `; + i18n.schedule_menu ='Programme'; + i18n.schedule_title ='Programme'; + i18n.schedule_unavailable =`Le programme sera disponible le ${cfp.dates.schedule.fr}.`; + i18n.schedule_available =`Le programme est disponible depuis le ${cfp.dates.schedule.fr}.`; + i18n.schedule_openfullschedule =`Pour le voir sur une page complète cliquer sur `; + i18n.schedule_change =`Jusqu'à la dernière minute un ajustement de programme est possible car un speaker peut être indisponible ou l'organisation peut décider d'inverser 2 salles par rapport à la fréquentation supposée.`; return i18n; } diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index 4229dc6..28bf5ba 100644 --- a/src/i18n/i18n.ts +++ b/src/i18n/i18n.ts @@ -11,6 +11,8 @@ export async function initConfig(lang: string) { i18nconfig.i18n = en_init(); } else if (lang === 'fr') { i18nconfig.i18n = fr_init(); + } else { + i18nconfig.i18n = en_init(); } } export function t(key: string, ...params:any[]): any { @@ -23,7 +25,6 @@ export function t(key: string, ...params:any[]): any { case 3: return value(params[0], params[1], params[2]); default: return value(params); } - return value(params); } else { return value; } diff --git a/src/layouts/Redirect.astro b/src/layouts/Redirect.astro index e122153..a0bf242 100644 --- a/src/layouts/Redirect.astro +++ b/src/layouts/Redirect.astro @@ -15,5 +15,5 @@ const content = `0; url=${target}`; -

    Redirect to {target}

    +

    Redirect to {target}

    diff --git a/src/pages/program.astro b/src/pages/cfp.astro similarity index 93% rename from src/pages/program.astro rename to src/pages/cfp.astro index e31e9bc..c4d5e8f 100644 --- a/src/pages/program.astro +++ b/src/pages/cfp.astro @@ -35,7 +35,7 @@ const lang = (Astro.locals as any).lang;
    - + diff --git a/src/pages/schedule-full.astro b/src/pages/schedule-full.astro new file mode 100644 index 0000000..72f459a --- /dev/null +++ b/src/pages/schedule-full.astro @@ -0,0 +1,5 @@ +--- +import Redirect from '../layouts/Redirect.astro'; +import cfp from '../data/cfp.json'; +--- + diff --git a/src/pages/schedule.astro b/src/pages/schedule.astro new file mode 100644 index 0000000..e82341c --- /dev/null +++ b/src/pages/schedule.astro @@ -0,0 +1,35 @@ +--- +import Layout from '../layouts/Layout.astro'; +import { t } from "../i18n/i18n"; +import cfp from '../data/cfp.json'; +import DateTimeChangingChild from "../components/DateTimeChangingChild.astro"; + +--- + +
    +
    + +
    + {t('schedule_unavailable')} +
    + +
    +

    {t('schedule_available')} +
    {t('schedule_openfullschedule')} +
    +

    +

    {t('schedule_change')}

    +
    + +
    +
    +
    +
    +
    + diff --git a/src/pages/scheduling.astro b/src/pages/scheduling.astro deleted file mode 100644 index 185b75b..0000000 --- a/src/pages/scheduling.astro +++ /dev/null @@ -1,5 +0,0 @@ ---- -import Redirect from '../layouts/Redirect.astro'; - ---- -