From 4f26e066a3151f3ff8b3502b425cad7c568e3bf7 Mon Sep 17 00:00:00 2001 From: Sebastien Chassande Date: Fri, 15 Nov 2024 07:03:10 +0100 Subject: [PATCH] - mise en place de l'affichage du planning de la conference. - correction du bug de la time zone --- public/img/schedule.png | Bin 0 -> 9035 bytes src/components/DateTimeChangingChild.astro | 2 +- src/components/Menu.astro | 8 ++--- src/components/StorePackage.astro | 2 +- src/data/cfp.json | 13 ++++++-- src/data/organisation.json | 5 --- src/data/ticket.json | 4 +-- src/i18n/en.ts | 9 +++++- src/i18n/fr.ts | 6 ++++ src/i18n/i18n.ts | 3 +- src/layouts/Redirect.astro | 2 +- src/pages/{program.astro => cfp.astro} | 2 +- src/pages/schedule-full.astro | 5 +++ src/pages/schedule.astro | 35 +++++++++++++++++++++ src/pages/scheduling.astro | 5 --- 15 files changed, 76 insertions(+), 25 deletions(-) create mode 100644 public/img/schedule.png rename src/pages/{program.astro => cfp.astro} (93%) create mode 100644 src/pages/schedule-full.astro create mode 100644 src/pages/schedule.astro delete mode 100644 src/pages/scheduling.astro diff --git a/public/img/schedule.png b/public/img/schedule.png new file mode 100644 index 0000000000000000000000000000000000000000..33afda49f4c6fa2bc8c958b2f0add78a3057d7d0 GIT binary patch literal 9035 zcmeHtXH-*Nx2{q|L_|SAL3#iIX;KrZQW81@5TptS5m0!gYG@LC=`B=|&_fF#qC}by zd1)#gf=H8I5CT)#2mDc<5ou@6h_D;zYFk~qzR}LyID-iLPTf4XvpVe`d_PxZ zVjC6AVEaL|C0Y=aBg$%d4vr~Jznx={tvHyjXtbl)&yXJT@SGS+5v!-AUD{RHT^>O( zF{NwvFSzCAuK9j{)}HXV_rr&(mNlQ%!`ULO0>!!qq01t9%SYiFur!dt|A}9w@G2&i z_;lPMoxU=PeZ=BV!eHpJaPfz{K6lW-ptXh+G#~5w(l>76{N5QhM5C0rk9QqqqN>5S zKyTzq*wTk7{b;W3Dh_I9s*IS;s#P4Tm9efa-K5ox3i$3rRBif#l*IC2D@m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933-&w@y$RbxE9zmBEf45ai>pflm0I}6aEL1 z?|)NaP`^F{C%JG#&Ql&GS`=i!ex2)-)Iin8f((S)>40IKuS{r=K`IyqP$j9b1K=9l zr_n69h6?i9)J_8pi)|JG9Et6X>(4J5r0G`SGz|gZU(4M|JD)~jX;$^*-`}$HskZ=4 z28{c{2Jm*j3>^rs_|lP7U9MwAzX z@VWUr><%c90sR}{h@-Tf!6rGtLUAF}!|hE$1Nd3t@_lT^ZAUK33lHxt5$i5XSeoKz z$-RLT)+26!<)l}BGFg9hDHu4iIMXXZIQW{xyGlB%opP;eb$_)Fm@^OT`QSgcJNs(@ zWvjaRafi$QDkPk^m12X`8oCZk1XM1LU#)*7Mbw97~!BVB*Y`t*LCMX9IkcSA|S`JZ}h5 zxMp61G@5N$GXi)2fD>t63_aS7Vspx{o7V1>1Bm@x+-vc2>0D>zuP{nsA=J_D$8%?q zKjN@7VhSpvnOeH~1DbLH`F(|D;NbGo=}J0(*_;V&e=blQ!>InNXlIa0y%+&>F-P+p zY!xUu5siJLcDRA*-k8DHo&6BEcI<9Eq4#}Bl48=3eM9$FLOKAN63F? z4!s1(-feSvxjf!>xQw`gO<@RIiQgH>sNhJU3L=@zu?9LIb}ABlNki3X8gRpr0Gwy?!K6v*C*QNuAOoa4&MOi#d*A+b>)b+ulOG>F zNWSn_<9?Ap9P531OfxvU6=C%J!B|B`bT*V}TD%Emo(T&RGe?G753^d;<&5(cYT0a5%3j6afDO7cK3)WQP zyq?5g`(mY&$^%P7!n{OnvA9d(u9|US;JVxlftpEb`@9$Fhe@t-zwm$itCDk{PMBtf YleJoguDu05k~w3bXR7<=?gP~S0yh~76951J literal 0 HcmV?d00001 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'; - ---- -