Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-nika committed Oct 28, 2024
1 parent 1b8a441 commit 54aac7f
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 56 deletions.
18 changes: 9 additions & 9 deletions _data/training-list.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
trainings:
- training: _trainings/practical-testing-with-elixir-and-phoenix.md
start: 2024-10-16T07:00:00.000+00:00
end: 2024-10-16T15:00:00.000+00:00
- training: _trainings/otp-training-for-elixir-programmers.md
start: 2024-10-16T07:00:00.000+00:00
end: 2024-10-18T15:00:00.000+00:00
- training: _trainings/otp-training-for-erlang-programmers.md
start: 2024-10-16T07:00:00.000+00:00
end: 2024-10-18T15:00:00.000+00:00
- training: _trainings/practical-testing-with-elixir-and-phoenix.md
start: 2024-10-16T09:00:00.000+00:00
end: 2024-10-16T17:00:00.000+00:00
- training: _trainings/otp-training-for-elixir-programmers.md
start: 2024-10-16T09:00:00.000+00:00
end: 2024-10-18T17:00:00.000+00:00
- training: _trainings/otp-training-for-erlang-programmers.md
start: 2024-10-16T09:00:00.000+00:00
end: 2024-10-18T17:00:00.000+00:00
8 changes: 4 additions & 4 deletions _includes/cover.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="cover" id="cover" style="background-image: url('{{site.baseurl}}/assets/images/Code BEAM EU web background.png');">


<div class="logo">
<!--
Expand All @@ -11,14 +11,14 @@
-->
</div>


<div class="col-right">
<h4 class="date" style="color: #19f5ff">
The Erlang and Elixir Conference is coming back to Berlin - save the date!<br />
<span style="color: #fff; font-size: 22px"> CONFERENCE 5-6 NOVEMBER, BERLIN & ONLINE </br>TRAINING: 4 NOV</span><br />
</h4>
<p class="text-content mb-1">
<p>Join us and be part of Code BEAM Europe 2024!
<p>Scroll down for 2024's edition details!

<!-- <br /><br />
Conference and Tutorial Highlights:
Expand Down Expand Up @@ -50,7 +50,7 @@ <h4 class="call-for-talks">
</div>
</div>
</h4><br>

<!--<h4 class="date">Call for Talks is now open - <a href="https://sessionize.com/code-beam-europe-2023/"style="color: #19f5ff">submit here</a>.</h4>-->
<!--<a class="page-scroll btn-arrow" href="#welcome">
<span class="fa fa-chevron-down"></span>
Expand Down
59 changes: 19 additions & 40 deletions _includes/training.html
Original file line number Diff line number Diff line change
@@ -1,57 +1,36 @@
<script>
function write_dates(start, end) {
s = new Date(start)
out = ""
out += s.getFullYear() + "-" + (s.getMonth() + 1).toString().padStart(2, "0") + "-" + s.getDate().toString().padStart(2, "0")
out += " " + s.getHours().toString().padStart(2, "0") + ':' + s.getMinutes().toString().padStart(2, "0")
out += "-"
e = new Date(end)
out += e.getHours().toString().padStart(2, "0") + ':' + e.getMinutes().toString().padStart(2, "0") + " " + "(" + Intl.DateTimeFormat().resolvedOptions().timeZone + ")"
document.write(out)
}
</script>
<div class="section training" id="training">
<h2 class="title">TRAINING</h2>
<h2 class="title">TRAINING & TUTORIAL</h2>
<hr />
<div class="table-container">
{% for item in site.data.training-list.trainings %}

{% assign training = site.trainings | where_exp: "training", "item.training == training.path" | first %}

{% if training != null %}
{% for item in site.data.training-list.trainings %} {% assign training =
site.trainings | where_exp: "training", "item.training == training.path"
| first %} {% if training != null %}
<div class="table-item">
<div class="item-col item-hours" onload="this.innerText = 'foo'">

{% assign start = item.start | date: '%Y-%m-%dT%H:%M:%SZ'%}
{% assign end = item.end | date: '%Y-%m-%dT%H:%M:%SZ'%}


<script>

write_dates("{{start}}", "{{end}}")

</script>
<noscript> {{start}} - {{end}} </noscript>
{% assign start_date = item.start | date: '%d' %} {% assign
end_date = item.end | date: '%d' %} {% if start_date != end_date
%} {{ start_date }}-{{ end_date }} {{ item.start | date: '%b %Y'
}} {{ item.start | date: '%-H' }}:{{ item.start | date: '%M'
}}-{{ item.end | date: '%-H' }}:{{ item.end | date: '%M' }} CEST
{% else %} {{ item.start | date: '%-d %b %Y' }} {{ item.start |
date: '%-H' }}:{{ item.start | date: '%M' }}-{{ item.end | date:
'%-H' }}:{{ item.end | date: '%M' }} CEST {% endif %}
</div>

<div class="item-col item-training">
<a href="{{training.url | relative_url }}">
<p class="item-title">{{training.title }}
</p>
<p class="item-title">{{training.title }}</p>
</a>
{% for trainer_path in training.trainers %}
{% assign participant = site.participants | where_exp: "x", "trainer_path == x.path" | first %}

{% for trainer_path in training.trainers %} {% assign
participant = site.participants | where_exp: "x", "trainer_path
== x.path" | first %}

<a href="{{ participant.url | relative_url }}">
<p class="item-trainer">Trainer:
{{ participant.name}}</p>
<p class="item-trainer">Trainer: {{ participant.name}}</p>
</a>
{% endfor %}
</div>

</div>
{% endif %}
{% endfor %}
{% endif %} {% endfor %}
</div>
</div>
</div>
13 changes: 11 additions & 2 deletions _layouts/training.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,22 @@ <h1 class="training-name">
</p>
</div>
<div class="training-info">
<p><strong>Date:</strong><br> {{schedule.start | date: '%Y-%m-%d'}} - {{schedule.end | date: '%Y-%m-%d'}}</p>
<p><strong>Date & Time:</strong><br>
{% assign start_date = schedule.start | date: '%d' %}
{% assign end_date = schedule.end | date: '%d' %}
{% if start_date == end_date %}
{{ schedule.start | date: '%d %b %Y' }}
{% else %}
{{ start_date }}-{{ end_date }} {{ schedule.start | date: '%b %Y' }}
{% endif %}
{{ schedule.start | date: '%H:%M' }}-{{ schedule.end | date: '%H:%M' }}
</p>
</div>

<div class="training-info">
<p><strong>Venue:</strong><br> {{ page.venue }}</p>
</div>

<div class="training-info">
<div class="content"><strong>Description:</strong><br> {{ page.content }}</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _sass/training.sass
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
&:nth-child(odd)
background-color: #e32dfd
&:nth-child(even)
background-color: #e86b9d
background-color: #0074a9
.item-col
align-items: center
display: flex
Expand Down

0 comments on commit 54aac7f

Please sign in to comment.