-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo_card.pug
34 lines (34 loc) · 1.14 KB
/
video_card.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// mixin to construct a card with a video
mixin video_card(title, description, video_file, url_code, url_colab, id)
.row.align-items-center.row-cols-1
.col-lg-12.col-xxl-12.mb-5
.card.border-1.shadow-lg(id=id)
.card-body.text-center.p-4.p-lg-2.pt-2.pt-lg-2
.row.justify-content-center.p-2
.col.text-start
a.btn.btn-outline-primary(href=url_code, role="button")
|
i.bi.bi-file-earmark-code
|
| Source Code
.col
h2.fs-4.fw-bold #{ title }
.col.text-end
a.btn.btn-outline-primary(href=url_colab, role="button")
|
i.bi.bi-journal-code
|
| Interactive Notebook
.row
p !{ description }
.row
.embed-responsive
video.embed-responsive-item(
controls,
autoplay,
loop,
muted,
width="100%",
max-height="100%"
)
source(src='assets/' + video_file, type="video/mp4")