Move all files to sculpin/
This commit is contained in:
parent
c5d71803a5
commit
0f61b4e9ee
1514 changed files with 0 additions and 0 deletions
46
sculpin/source/_includes/presentation/events-new.html.twig
Normal file
46
sculpin/source/_includes/presentation/events-new.html.twig
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<section>
|
||||
<h2>Events</h2>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<th>Event name</th>
|
||||
<th>Date</th>
|
||||
<th>Location</th>
|
||||
<th>Links</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for event in events|sort((a, b) => b.date <=> a.date) %}
|
||||
<tr>
|
||||
<td>{{ event.name }}</td>
|
||||
<td><time datetime="{{ event.date|date('Y-m-d') }}">{{ event.date|date('jS F Y') }}</time></td>
|
||||
<td>
|
||||
{% if event.online %}
|
||||
Online
|
||||
{% elseif event.location %}
|
||||
{{ event.location }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if event.urls %}
|
||||
<ul>
|
||||
{% for key, link in event.urls if link %}
|
||||
<li>
|
||||
<a class="text-sm" href="{{ link }}" title="{% spaceless %}
|
||||
{{ key == 'code' ? 'View the example code from %s.'|format(event.name) }}
|
||||
{{ key == 'demo' ? 'View the demo from %s.'|format(event.name) }}
|
||||
{{ key == 'slides' ? 'View the slides from %s.'|format(event.name) }}
|
||||
{{ key == 'video' ? 'Watch the video recording from %s.'|format(event.name) }}
|
||||
{{ key == 'website' ? 'View the website for %s.'|format(event.name) }}
|
||||
{% endspaceless %}">
|
||||
{{- key|capitalize -}}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
25
sculpin/source/_includes/presentation/events.html.twig
Normal file
25
sculpin/source/_includes/presentation/events.html.twig
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{% if events %}
|
||||
<section>
|
||||
<h2>Events</h2>
|
||||
|
||||
<ul>
|
||||
{% for event in events|sort((a, b) => b.date <=> a.date) %}
|
||||
<li>
|
||||
{% if event.url %}
|
||||
<a href="{{ event.url }}">{{ event.name }}</a>
|
||||
{% else %}
|
||||
{{ event.name }}
|
||||
{% endif %}
|
||||
|
||||
{% if event.location and not event.online %}
|
||||
in {{ event.location }}
|
||||
{% endif %}
|
||||
|
||||
- {{ event.date|date('F jS, Y') }}
|
||||
|
||||
{{ event.online ? '(online)' }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
15
sculpin/source/_includes/presentation/slides.html.twig
Normal file
15
sculpin/source/_includes/presentation/slides.html.twig
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{% if speakerdeck.id %}
|
||||
<section>
|
||||
<h2>Slides</h2>
|
||||
|
||||
<div>
|
||||
<noscript>**Please enable JavaScript to view slides.**</noscript>
|
||||
<script
|
||||
class="speakerdeck-embed"
|
||||
data-id="{{ speakerdeck.id }}"
|
||||
data-ratio="{{ speakerdeck.ratio ?? '1.29456384323641' }}"
|
||||
src="//speakerdeck.com/assets/embed.js"
|
||||
></script>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
20
sculpin/source/_includes/presentation/video.html.twig
Normal file
20
sculpin/source/_includes/presentation/video.html.twig
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{% if video.id %}
|
||||
<section>
|
||||
<h2>Video</h2>
|
||||
|
||||
<div>
|
||||
{% if video.type == 'vimeo' %}
|
||||
<div>
|
||||
<iframe
|
||||
allowfullscreen
|
||||
class="w-full border border-gray-500 aspect-[16/9]"
|
||||
frameborder="0"
|
||||
src="https://player.vimeo.com/video/{{ video.id }}"
|
||||
></iframe>
|
||||
</div>
|
||||
{% elseif video.type == 'youtube' %}
|
||||
{% include 'youtube-video.html.twig' with { id: video.id } %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue