|
10 | 10 | permalink: /speaking/youtube/
|
11 | 11 | ---
|
12 | 12 |
|
13 |
| -<script src="https://cdn.tailwindcss.com"></script> |
14 |
| - |
15 | 13 | <div class="pb-2 hero">
|
16 | 14 | <div class="wrapper">
|
17 | 15 | <h1 class="text-center pageheading">{{ title }}</h1>
|
18 | 16 | </div>
|
19 | 17 | </div>
|
20 | 18 |
|
21 | 19 | <div class="pt-6 block-container">
|
22 |
| - <div class="wrapper"> |
| 20 | + <div class="wrapper grid grid-cols-1 gap-4"> |
23 | 21 |
|
24 | 22 | {% for day in collections.sessionsByDateAndTime %}
|
25 | 23 | {% if forloop.index0 > 0 %}
|
26 | 24 | {% for slot in day[1] %}
|
27 | 25 | {% for session in slot.sessions %}
|
28 | 26 | {% if session.presenter_slugs %}
|
29 |
| - <div class="event-byline mt-2 mb-2"> |
30 |
| - <h4>{{ day[0] | formatDateTime: "LLL d " }}{{ slot.start | formatDateTime: "h:mm aaa" }} EDT - {{ session.title }}</h4> |
31 |
| - |
32 |
| - <div> |
33 |
| - <a href="{{ post.video_url }}">On YouTube</a> |
34 |
| - </div> |
35 |
| - |
36 |
| - <textarea rows="10" id="copy-{{ session.fileSlug }}"> |
37 |
| - {% include "youtube-copy-and-paste.html", session:session %} |
38 |
| - </textarea> |
| 27 | + <div class="event-byline grid grid-cols-1 gap-2"> |
| 28 | + <div class="flex items-center justify-between gap-2 mx-2"> |
| 29 | + <h4 class="flex-grow mr-2"> |
| 30 | + <span>{{ day[0] | formatDateTime: "LLL d " }}{{ slot.start | formatDateTime: "h:mm aaa" }} EDT -</span> |
| 31 | + <span id="copy-{{ session.title|slugify }}-title">{{ session.title }}</span> |
| 32 | + </h4> |
| 33 | + {% if post.video_url %} |
| 34 | + <div class="btn bg-blue-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 whitespace-nowrap" > |
| 35 | + <a href="{{ post.video_url }}">View on YouTube</a> |
| 36 | + </div> |
| 37 | + {% endif %} |
| 38 | + <button class="btn bg-blue-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 whitespace-nowrap" data-clipboard-action="copy" data-clipboard-target="#copy-{{ session.title|slugify }}-title"> |
| 39 | + Copy to clipboard |
| 40 | + </button> |
| 41 | + </div> |
39 | 42 |
|
40 |
| - <button class="btn bg-blue-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1" data-clipboard-action="copy" data-clipboard-target="#copy-{{ session.fileSlug }}"> |
41 |
| - Copy to clipboard |
42 |
| - </button> |
| 43 | + <div class="relative"> |
| 44 | +<textarea rows="10" id="copy-{{ session.title|slugify }}" class="w-full pr-32"> |
| 45 | +{% include "youtube-copy-and-paste.html", session:session %} |
| 46 | +</textarea> |
| 47 | + <button class="btn bg-blue-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 absolute top-2 right-2" data-clipboard-action="copy" data-clipboard-target="#copy-{{ session.title|slugify }}"> |
| 48 | + Copy to clipboard |
| 49 | + </button> |
| 50 | + </div> |
43 | 51 | </div>
|
44 | 52 | <hr>
|
45 | 53 | {% endif %}
|
|
0 commit comments