Skip to content

Commit

Permalink
Merge pull request #189 from francep2p/feat/festival-2/init
Browse files Browse the repository at this point in the history
feat: init festival #2
  • Loading branch information
loicttn authored Oct 29, 2024
2 parents 8990a99 + cd0e0fe commit 1a2de0a
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 15 deletions.
13 changes: 13 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,19 @@ festival_clock_minutes:
festival_clock_seconds:
other: Seconds


festival_announcement_part_1:
other: France P2P is coming back next year with the Second edition of the Paris P2P Festival from April 9th to 11th! And an online hackathon from April 4th to 11th.

festival_announcement_part_2:
other: 'We are looking for sponsors, speakers, and volunteers to help us make this event a success. If you are interested, join the discord and fill the form below!'

announcement_form_cta:
other: Participate

announcement_form_sponsor_cta:
other: Become a sponsor

festival_numbers_b1_title:
other: Days

Expand Down
12 changes: 12 additions & 0 deletions i18n/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,18 @@ festival_clock_minutes:
festival_clock_seconds:
other: Secondes

festival_announcement_part_1:
other: France P2P revient l'année prochaine avec la deuxième édition du Paris P2P Festival du 9 au 11 Avril ! Ainsi qu'un hackathon en ligne du 4 au 11.

festival_announcement_part_2:
other: 'Nous recherchons des sponsors, des speakers et des bénévoles pour nous aider à faire de cet événement un succès. Si vous êtes intéressé, rejoignez le discord et remplissez le formulaire ci-dessous:'

announcement_form_cta:
other: Participer

announcement_form_sponsor_cta:
other: Devenir sponsor

festival_numbers_b1_title:
other: Jours

Expand Down
17 changes: 2 additions & 15 deletions themes/p2pparis/layouts/_default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<h1 class="text-uppercase text-white font-weight-bold">{{ .Params.content.intro_text | markdownify }}</h1>
</div><!-- /.col -->
<div class="col-lg-8 align-self-baseline">
<a class="btn btn-primary btn-purple btn-xl js-scroll-trigger" href="https://www.meetup.com/France-P2P/events/">{{ i18n "festival_cta" | markdownify }}</a>
<!-- TODO: fix link here once we have the redirect for festival-2 on /festival -->
<a class="btn btn-primary btn-purple btn-xl js-scroll-trigger" href="/en/event/festival-2">{{ i18n "festival_cta" | markdownify }}</a>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container -->
Expand All @@ -30,20 +31,6 @@ <h2 class="mt-0">{{ .Params.content.events_title | markdownify }}</h2>
</div><!-- /.col -->
</div><!-- /.row -->
<div class="row events-loadmore-list">
<div class="col-lg-4 col-md-6 event-item">
<a class="block block-event next-event" href="/hackathon">
<div class="block-img">
<img src="/img/hackathon-preview.png">
</div><!-- /.block-img -->
<div class="block-content">
<h4 class="event-title">P2P Hackathon</h4>
<p class="event-subtitle">Hackathon for P2P builders</p>
<span class="event-info event-location"><i class="far fa-map-marker"></i>GoundControl, Paris & Online</span>
<span class="event-info event-date"><i class="far fa-calendar-alt"></i>April 29, 2022</span>
<span class="tag tag-next">NEXT</span>
</div><!-- /.block-content -->
</a><!-- /.block-event -->
</div>
{{ range $index, $item := $.Scratch.Get "upcoming_events" }}
<div class="col-lg-4 col-md-6 event-item" {{ if gt $index 2 }}style="display:none;"{{ end }}>
{{ partial "block_event" (dict "ctx" . "status" (index $statuses .File.UniqueID)) }}
Expand Down
20 changes: 20 additions & 0 deletions themes/p2pparis/layouts/event/festival-2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ partial "ldjson/event" (dict "ctx" . "id" .Params.id) }}

{{.Scratch.Set "body-class" "page-festival-1"}}
{{ partial "header" . }}

{{ partial "navbar_festival" . }}
{{ partial "masthead_festival_2" . }}
{{ partial "section_numbers" . }}
<!-- partial "section_donate" . -->
<!-- partial "section_sponsors" . -->
<!-- partial "section_schedule" . -->
<section class="page-section section-about" id="about">
{{ partial "section_about" . }}
{{ partial "section_goals" . }}
</section>
<!-- partial "section_speakers" . -->
<!-- partial "section_info_1" . -->
<!-- partial "section_plan" . -->
<!-- partial "section_links" . -->
{{ partial "footer" . }}
49 changes: 49 additions & 0 deletions themes/p2pparis/layouts/partials/masthead_festival_2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<header class="masthead">
<div class="container">
<div class="row align-items-center justify-content-center text-center">
<div class="col-lg-10">
<div id="logo" class="logo-center">
<img src="/img/paris_p2p_white.svg">
</div>
<h1 class="text-uppercase text-white font-weight-bold">{{ i18n "festival_content_intro_text" | markdownify }}</h1>
</div><!-- /.col -->
<div class="col-lg-10" >
<h2 id="it-soon" class="text-uppercase text-white font-weight-bold" style="display: none;">{{ i18n "festival_content_it_soon" }}<br/><br/></h2>
<!-- <h2 id="it-current" class="text-uppercase text-white font-weight-bold" style="display: none;">{{ i18n "festival_content_it_current" }}<br/><br/></h2> -->
<!-- <h2 id="it-finish" class="text-uppercase text-white font-weight-bold" style="display: none;">{{ i18n "festival_content_it_finish" | markdownify }}</h2> -->
</div>
<div class="col-lg-10">
<div id="clockdiv" style="display: none;">
<div>
<span class="days"></span>
<div class="smalltext">{{ i18n "festival_clock_days" }}</div>
</div>
<div>
<span class="hours"></span>
<div class="smalltext">{{ i18n "festival_clock_hours" }}</div>
</div>
<div>
<span class="minutes"></span>
<div class="smalltext">{{ i18n "festival_clock_minutes" }}</div>
</div>
<div>
<span class="seconds"></span>
<div class="smalltext">{{ i18n "festival_clock_seconds" }}</div>
</div>
</div>
</div><!-- /.col -->
</div><!-- /.row -->
<div class="row">
<div class="col-12">
<div class="text-center">
<div class="text-white font-weight-bold">{{ i18n "festival_announcement_part_1" }}</div>
<br />
<div class="text-white font-weight-bold">{{ i18n "festival_announcement_part_2" }}</div>
<br />
<a class="btn btn-purple btn-xl" href="https://airtable.com/appVBIJFBUheVWS0Q/shrQl65lAr3zl5pkW">{{ i18n "announcement_form_cta" }}</a>
<a class="btn btn-purple btn-xl" href="https://airtable.com/appVBIJFBUheVWS0Q/shrTKKi28kNaOcoby">{{ i18n "announcement_form_sponsor_cta" }}</a>
</div>
</div>
</div><!-- /.row -->
</div><!-- /.container -->
</header>

0 comments on commit 1a2de0a

Please sign in to comment.