Skip to content

Commit

Permalink
Merge pull request #10 from snowcamp/snowcamp2025
Browse files Browse the repository at this point in the history
  • Loading branch information
schassande authored Mar 19, 2024
2 parents 1dbc80c + ebee864 commit 9383659
Show file tree
Hide file tree
Showing 8 changed files with 313 additions and 275 deletions.
22 changes: 11 additions & 11 deletions src/data/cfp.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@

{
"possible_status": [ "not_open", "opens_soon", "open", "closed", "published"],
"status": "published",
"url": "https://conference-hall.io/public/event/Bq5k5rbMXGynAls6PjRB",
"year": 2024,
"sched_url": "https://snowcamp2024.sched.com/",
"feedback_url": "https://openfeedback.io/o7zyKdkdRulRnrtU3DZo",
"status": "opens_soon",
"url": "",
"year": 2025,
"sched_url": "",
"feedback_url": "",
"dates": {
"open_date": {
"date": "01/09/2023",
"fr": "1er Septembre 2023",
"en": "1st of September 2023"
"date": "01/09/2024",
"fr": "1er Septembre 2024",
"en": "1st of September 2024"
},
"close_date": {
"date": "15/10/2023",
"fr": "15 Octobre 2023",
"en": "15th of October 2023"
"date": "15/10/2024",
"fr": "15 Octobre 2024",
"en": "15th of October 2024"
},
"notification_date": {
"fr": "Début Novembre 2023",
Expand Down
30 changes: 30 additions & 0 deletions src/data/create_previous_edition.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import * as fs from 'fs';

// This program collect data of the current conference edition and build a unique json file as previous_version

// load data from the current file
const edition = JSON.parse(fs.readFileSync('src/data/edition.json', 'utf8'));
const cfp = JSON.parse(fs.readFileSync('src/data/cfp.json', 'utf8'));
const sponsors = JSON.parse(fs.readFileSync('src/data/sponsors.json', 'utf8'));

// build the data for the previous edition
const previous = {
sched_url: cfp.sched_url,
flickr_embed_url: "https://flickrembed.com/cms_embed.php?source=flickr&layout=responsive&input=www.flickr.com/photos/162459903@N02/albums/72177720305519001&sort=0&by=album&theme=default&scale=fill&speed=3000&limit=10&skin=default&autoplay=true",
punch_line: {
fr: "Une super conf IT a Grenoble",
en: "A top IT conference at Grenoble"
},
summary: {
fr: "Retrouvez le programme de SnowCamp %s <a href=\"%s\" target=\"_blank\">ici</a> ! Vous pouvez aussi retrouver les liens vers les slides des conférences dans <a href=\""+cfp.sched_url+"\">Sched</a>, et les retours des participants <a href=\""+cfp.feedback_url+"\">là</a>",
en: "The agenda for SnowCamp %s is available <a href=\"%s\" target=\"_blank\">here</a>! You can also find the links to the sessions material in <a href=\""+cfp.sched_url+"\">Sched</a>, and the participants feedback <a href=\""+cfp.feedback_url+"\">there</a>."
},
sponsors : {
etoile: sponsors.etoile,
flocon: sponsors.flocon
}
};

// create the file
const fileName = 'src/data/previous_editions_'+edition.year+'.json';
fs.writeFileSync(fileName, JSON.stringify(previous, null, 2), 'utf8');
10 changes: 5 additions & 5 deletions src/data/edition.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"year": 2024,
"count_down": "2024/01/31",
"previous_edition_year": 2023,
"year": 2025,
"count_down": "2025/01/22",
"previous_edition_year": 2024,
"dates": {
"fr": "31 janvier - 02 fevrier",
"en": "31st of Jan - 2nd of Feb"
"fr": "22 janvier - 25 janvier",
"en": "22nd of Jan - 25th of Jan"
}
}
246 changes: 246 additions & 0 deletions src/data/previous_editions_2024.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/data/site.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"baseURL": "https://snowcamp.io/",
"language": "fr",
"title": "Snowcamp 2024",
"year": "2024",
"title": "Snowcamp 2025",
"year": "2025",
"googleAnalytics": ""
}
258 changes: 9 additions & 249 deletions src/data/sponsors.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/data/ticket.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"store": {
"url": "https://www.billetweb.fr/shop.php?event=snowcamp-2024",
"url": "https://www.billetweb.fr/shop.php?event=snowcamp-2025",
"early": {
"title": "Early Birds",
"price_conf": 42,
Expand All @@ -9,20 +9,20 @@
"status": "deactivated",
"open_date": {
"default": "unknown",
"fr": "16 Octobre à 11h",
"en": "16th of October at 11am"
"fr": "",
"en": ""
}
},
"classic": {
"title": "Standard",
"price_conf": 65,
"price_univ": 155,
"price_conf": 75,
"price_univ": 160,
"possible_status": ["not_open", "open", "closed", "deactivated"],
"status": "closed",
"status": "not_open",
"open_date": {
"default": "unknown",
"fr": "20 Novembre à 11h00",
"en": "20th of November at 11am (Paris)"
"fr": "18 Novembre à 11h00",
"en": "18th of November at 11am (Paris)"
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/previous-editions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Layout from '../layouts/Layout.astro';
import { t } from "../i18n/i18n";
import PreviousSponsorsLogosSection from '../components/PreviousSponsorsLogosSection.astro';
import sponsors2024 from '../data/previous_editions_2024.json';
import sponsors2023 from '../data/previous_editions_2023.json';
import sponsors2022 from '../data/previous_editions_2022.json';
import sponsors2020 from '../data/previous_editions_2020.json';
Expand All @@ -11,6 +12,7 @@ import sponsors2017 from '../data/previous_editions_2017.json';
import sponsors2016 from '../data/previous_editions_2016.json';
---
<Layout title={t('past_editions')}>
<PreviousSponsorsLogosSection year={2024} previousSponsors={sponsors2024}></PreviousSponsorsLogosSection>
<PreviousSponsorsLogosSection year={2023} previousSponsors={sponsors2023}></PreviousSponsorsLogosSection>
<PreviousSponsorsLogosSection year={2022} previousSponsors={sponsors2022}></PreviousSponsorsLogosSection>
<PreviousSponsorsLogosSection year={2020} previousSponsors={sponsors2020}></PreviousSponsorsLogosSection>
Expand Down

0 comments on commit 9383659

Please sign in to comment.