-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from snowcamp/cfp-enhancement
extracting cfp to its own page
- Loading branch information
Showing
5 changed files
with
96 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
--- | ||
import Layout from '../layouts/Layout.astro'; | ||
import cfp from '../data/cfp.json'; | ||
import { t } from "../i18n/i18n"; | ||
import CFPDates from '../components/CFPDates.astro'; | ||
import DateTimeChangingChild from "../components/DateTimeChangingChild.astro"; | ||
const lang = (Astro.locals as any).lang; | ||
--- | ||
<Layout title="Call For Paper Snowcamp"> | ||
<main> | ||
<section> | ||
{ !cfp.published && | ||
<div id="program" class="snc-programme"> | ||
<div class="snc-inner"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<div class="snc-heading-area"> | ||
<h2 class="snc-heading"> | ||
<span class="back-heading"> | ||
<i class="fa fa-calendar" aria-hidden="true"></i> | ||
</span> | ||
<span class="heading">{t('cfp_program_translation')}</span> | ||
</h2> | ||
<CFPDates></CFPDates> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-6 col-md-6"> | ||
<div class="single"> | ||
<img src="/img/themas.webp" alt="themas"> | ||
</div> | ||
</div> | ||
<div class="col-xs-12 col-sm-6 col-md-6"> | ||
<div class="single"> | ||
<DateTimeChangingChild beginDate={Date.parse(cfp.dates.open_date.date)} endDate={Date.parse(cfp.dates.close_date.date)} refreshInterval="30000"> | ||
<span slot="before" set:html={t('cfp_open_soon_desc')}></span> | ||
<span slot="doing" set:html={t('cfp_open_desc')}></span> | ||
<span slot="after" set:html={t('cfp_closed_desc')}></span> | ||
</DateTimeChangingChild> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
{ cfp.published && | ||
<div id="program" class="snc-programme"> | ||
<div class="snc-inner"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<div class="snc-heading-area"> | ||
<h2 class="snc-heading"> | ||
<span class="back-heading"> | ||
<i class="fa fa-calendar" aria-hidden="true"></i> | ||
</span> | ||
<span class="heading">{t('schedule_title')}</span> | ||
</h2> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<p>{t('schedule_desc')} | ||
<a id="sched-embed" href={cfp.sched_url} data-sched-sidebar="no">SnowCamp {cfp.year}</a> | ||
</p> | ||
<p> | ||
<br> | ||
<a id="sched-embed" href={cfp.feedback_url} data-sched-sidebar="no">Feedback SnowCamp {cfp.year}</a> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
</section> | ||
</main> | ||
<script is:inline src="/js/homepage.js"></script> | ||
</Layout> |