add collapsible descriptions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
rra 2021-05-27 11:02:49 +02:00
parent b3bc742d67
commit 94dcef6f21

View File

@ -9,7 +9,7 @@
<meta name="description" content="this page is generated on the basis of a peertube instance">
<meta property="og:title" content="lumbung.space video archive prototype">
<meta property="og:description" content="this page is generated on the basis of a peertube instance">
<meta property="og:image" content="https://tv.undersco.re/lazy-static/previews/67a0384c-bd98-4366-a742-dd41045ac56a.jpg">
<meta property="og:image" content="https://tv.lumbung.space/lazy-static/previews/295dcb6d-7409-4bf7-8c3c-97b67b3775bc.jpg">
<meta property="og:image:alt" content="Image description">
<meta property="og:locale" content="en_GB">
<meta property="og:type" content="website">
@ -23,18 +23,22 @@
<link rel="manifest" href="/my.webmanifest">
<meta name="theme-color" content="#FF00FF">
<style type="text/css">
@font-face{
font-family: "Space Grotesk";
src:url('SpaceGrotesk[wght].woff2')
}
body {font-size:1.3rem;font-family: sans-serif;}
.wrapper {
max-width: 60%;
width: 50%;
margin: auto;
}
.video-box {
display: block;
width:100%;
border:2px solid #0e0e22;
margin-bottom: 2em;
width:47%;
max-width:560px;
margin:auto;
box-shadow:1em 1em 0 #d2d1c8;
margin-bottom: 2em;
}
.video-box img {
max-width: 100%;
@ -43,18 +47,27 @@
line-height: 0;
}
.metadata{
display: flex;
flex-direction: column;
background-color: #fff09d;
font-size:0.9rem;
}
.title{
margin-top:0;
border-top: 2px solid #0e0e22;
background-color: #fff09d;
padding:0.5em;
font-weight:700;
font-size:1.3rem;
}
.footer{
margin-top:0;
border-top: 2px solid #0e0e22;
background-color: #fff09d;
font-size:0.9rem;
display: flex;
justify-content: space-between;
}
.channel{
@ -76,6 +89,41 @@
padding-bottom: 0.2em;
}
.description{
padding: 1em;
display: block;
/*transition: height 0.5s linear;*/
overflow: hidden;
border-top: 2px solid #0e0e22;
}
.collapsed {
border-top: 0px;
/*transform:scaleY(0);*/
height: 0;
padding:0;
}
.descr_button {
cursor: pointer;
flex-grow: 1;
text-align: center;
}
.descr_button a {
color:inherit;
text-decoration: inherit;
}
.descr_button a:before {
content:'↕';
vertical-align: sub;
}
.descr_button:hover {
box-shadow: inset 2px 2px 0px #95948c;
}
.play-icon {
width: 0;
height: 0;
@ -136,6 +184,12 @@
}
.video-thumbnail:hover .play-overlay .play-icon {
transform:translate(-50%,-50%) scale(1)
}
/* @media screen and (min-width: 480px) {
* {
background: silver
}*/
</style>
</head>
@ -147,137 +201,205 @@
<div class='video-box'>
<div class='media'>
<a class='video-thumbnail' href="https://tv.undersco.re/videos/watch/67a0384c-bd98-4366-a742-dd41045ac56a">
<img src="https://tv.undersco.re/lazy-static/previews/67a0384c-bd98-4366-a742-dd41045ac56a.jpg">
<!-- <video data-src="https://tv.undersco.re/videos/embed/67a0384c-bd98-4366-a742-dd41045ac56a"></video> -->
<a class='video-thumbnail' href="https://tv.lumbung.space/videos/watch/75fbc455-2491-4df2-994c-92062801ecf3">
<img src="https://tv.lumbung.space/lazy-static/previews/295dcb6d-7409-4bf7-8c3c-97b67b3775bc.jpg">
<!-- <iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" src="https://tv.lumbung.space/videos/embed/75fbc455-2491-4df2-994c-92062801ecf3" frameborder="0" allowfullscreen></iframe> -->
<div class="video-thumbnail-duration-overlay">
1:25:29
0:47:37
</div>
<div class="play-overlay">
<div class="play-icon"></div>
</div>
</a>
</div>
<div class='title'>
Futures Literacy for the Regenerative Economy — Oliver Bream McIntosh & FuPro Collective | RF2020
</div>
<div class='metadata'>
<div class='title'>Sonic Liberation Front - 24/05/21</div>
<span class="description collapsed" id='vid-40'> Mirror from Radio Alhara<br />
https://yamakan.place/palestine/<br />
<br />
Recording on 24/5/21 from 15:00 - 15:45 Betlehem time.<br />
<br />
Radio Alhara is a radio station based in Bethlehem, Ramallah and Amman. Launched during a global lockdown crisis in March 2020,...</span>
<div class='footer'>
<span class='channel'><a href='https://tv.undersco.re/video-channels/reclaimfutures'> ReclaimFutures</a></span>
<span class='date'> <a href='https://tv.undersco.re/videos/watch/67a0384c-bd98-4366-a742-dd41045ac56a'> 2021-02-21</a></span>
<span class='channel'><a href='https://tv.lumbung.space/video-channels/sonicliberation'> Sonic Liberation Front</a></span>
<span class='descr_button' id='toggle-button' onclick="toggleDescription('#vid-40')"> <a href='#'> </a></span>
<span class='date'> <a href='https://tv.lumbung.space/videos/watch/75fbc455-2491-4df2-994c-92062801ecf3'> 2021-05-24</a></span>
</div>
</div>
</div>
<div class='video-box'>
<div class='media'>
<a class='video-thumbnail' href="https://tv.undersco.re/videos/watch/5b48b648-090e-4a16-9615-353820a363b9">
<img src="https://tv.undersco.re/lazy-static/previews/5b48b648-090e-4a16-9615-353820a363b9.jpg">
<!-- <video data-src="https://tv.undersco.re/videos/embed/5b48b648-090e-4a16-9615-353820a363b9"></video> -->
<a class='video-thumbnail' href="https://tv.lumbung.space/videos/watch/698d6eb1-c76a-4b0a-ae32-e11692b356fb">
<img src="https://tv.lumbung.space/lazy-static/previews/464da572-89da-46ae-90c8-82dae3cea325.jpg">
<!-- <iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" src="https://tv.lumbung.space/videos/embed/698d6eb1-c76a-4b0a-ae32-e11692b356fb" frameborder="0" allowfullscreen></iframe> -->
<div class="video-thumbnail-duration-overlay">
0:16:59
4:30:16
</div>
<div class="play-overlay">
<div class="play-icon"></div>
</div>
</a>
</div>
<div class='title'>
Through the Algorithmic Lens —Irini Papadimitriou | RF2020
</div>
<div class='metadata'>
<div class='title'>Sonic Liberation Front - 23/05/2021</div>
<span class="description collapsed" id='vid-35'> Mirror from Radio Alhara<br />
https://yamakan.place/palestine/<br />
<br />
Recording on 22/5/21 from 17:30 - 22:15 Betlehem time.<br />
<br />
Radio Alhara is a radio station based in Bethlehem, Ramallah and Amman. Launched during a global lockdown crisis in March 2020,...</span>
<div class='footer'>
<span class='channel'><a href='https://tv.undersco.re/video-channels/reclaimfutures'> ReclaimFutures</a></span>
<span class='date'> <a href='https://tv.undersco.re/videos/watch/5b48b648-090e-4a16-9615-353820a363b9'> 2021-02-21</a></span>
<span class='channel'><a href='https://tv.lumbung.space/video-channels/sonicliberation'> Sonic Liberation Front</a></span>
<span class='descr_button' id='toggle-button' onclick="toggleDescription('#vid-35')"> <a href='#'> </a></span>
<span class='date'> <a href='https://tv.lumbung.space/videos/watch/698d6eb1-c76a-4b0a-ae32-e11692b356fb'> 2021-05-23</a></span>
</div>
</div>
</div>
<div class='video-box'>
<div class='media'>
<a class='video-thumbnail' href="https://tv.undersco.re/videos/watch/34a443cf-f110-4de1-9867-3834adff47f4">
<img src="https://tv.undersco.re/lazy-static/previews/34a443cf-f110-4de1-9867-3834adff47f4.jpg">
<!-- <video data-src="https://tv.undersco.re/videos/embed/34a443cf-f110-4de1-9867-3834adff47f4"></video> -->
<a class='video-thumbnail' href="https://tv.lumbung.space/videos/watch/752f7991-995d-4a2f-a1a4-41cc5688b078">
<img src="https://tv.lumbung.space/lazy-static/previews/ce21bca7-c866-4093-b3d6-06e155291dfa.jpg">
<!-- <iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" src="https://tv.lumbung.space/videos/embed/752f7991-995d-4a2f-a1a4-41cc5688b078" frameborder="0" allowfullscreen></iframe> -->
<div class="video-thumbnail-duration-overlay">
2:59:28
0:56:42
</div>
<div class="play-overlay">
<div class="play-icon"></div>
</div>
</a>
</div>
<div class='title'>
Peek- creating games for understanding futures — Evan Raskob | RF2020
</div>
<div class='metadata'>
<div class='title'>MAJÁLIS - A Lumbung tagok bemutatása | Politikai ágencia</div>
<span class="description collapsed" id='vid-39'> POLITICAL AGENCY<br />
The discussion will explore the possibilities for arts funding and political agency from the perspective of grassroots collectives.<br />
<br />
A conversation with the participation of Question of Funding (Palestine), hosted by OFF-Biennale...</span>
<div class='footer'>
<span class='channel'><a href='https://tv.undersco.re/video-channels/reclaimfutures'> ReclaimFutures</a></span>
<span class='date'> <a href='https://tv.undersco.re/videos/watch/34a443cf-f110-4de1-9867-3834adff47f4'> 2021-02-21</a></span>
<span class='channel'><a href='https://tv.lumbung.space/video-channels/majelis'> Majelis</a></span>
<span class='descr_button' id='toggle-button' onclick="toggleDescription('#vid-39')"> <a href='#'> </a></span>
<span class='date'> <a href='https://tv.lumbung.space/videos/watch/752f7991-995d-4a2f-a1a4-41cc5688b078'> 2021-05-23</a></span>
</div>
</div>
</div>
<div class='video-box'>
<div class='media'>
<a class='video-thumbnail' href="https://tv.undersco.re/videos/watch/51107f34-b18b-47b7-a4ca-704ff2348f71">
<img src="https://tv.undersco.re/lazy-static/previews/51107f34-b18b-47b7-a4ca-704ff2348f71.jpg">
<!-- <video data-src="https://tv.undersco.re/videos/embed/51107f34-b18b-47b7-a4ca-704ff2348f71"></video> -->
<a class='video-thumbnail' href="https://tv.lumbung.space/videos/watch/4eff6150-b688-4c42-958f-6e206319554d">
<img src="https://tv.lumbung.space/lazy-static/previews/9ce1f7f8-13cb-436b-8313-01d020bc8d1c.jpg">
<!-- <iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" src="https://tv.lumbung.space/videos/embed/4eff6150-b688-4c42-958f-6e206319554d" frameborder="0" allowfullscreen></iframe> -->
<div class="video-thumbnail-duration-overlay">
0:19:25
5:07:46
</div>
<div class="play-overlay">
<div class="play-icon"></div>
</div>
</a>
</div>
<div class='title'>
From cradle-to-grave: Tech wont save us — Benjamin Gaulon | RF2020
</div>
<div class='metadata'>
<div class='title'>Sonic Liberation Front / Frente de Liberación Sonoro - 22/5/2021</div>
<span class="description collapsed" id='vid-30'> Mirror from Radio Alhara<br />
https://yamakan.place/palestine/<br />
<br />
Recording on 22/5/21 from 19:00 - 24:00 Betlehem time.<br />
<br />
Radio Alhara is a radio station based in Bethlehem, Ramallah and Amman. Launched during a global lockdown crisis in March 2020,...</span>
<div class='footer'>
<span class='channel'><a href='https://tv.undersco.re/video-channels/reclaimfutures'> ReclaimFutures</a></span>
<span class='date'> <a href='https://tv.undersco.re/videos/watch/51107f34-b18b-47b7-a4ca-704ff2348f71'> 2021-02-21</a></span>
<span class='channel'><a href='https://tv.lumbung.space/video-channels/sonicliberation'> Sonic Liberation Front</a></span>
<span class='descr_button' id='toggle-button' onclick="toggleDescription('#vid-30')"> <a href='#'> </a></span>
<span class='date'> <a href='https://tv.lumbung.space/videos/watch/4eff6150-b688-4c42-958f-6e206319554d'> 2021-05-22</a></span>
</div>
</div>
</div>
<div class='video-box'>
<div class='media'>
<a class='video-thumbnail' href="https://tv.undersco.re/videos/watch/3e9dae3a-1d6b-43b9-9a5b-b0faa65e41a6">
<img src="https://tv.undersco.re/lazy-static/previews/3e9dae3a-1d6b-43b9-9a5b-b0faa65e41a6.jpg">
<!-- <video data-src="https://tv.undersco.re/videos/embed/3e9dae3a-1d6b-43b9-9a5b-b0faa65e41a6"></video> -->
<a class='video-thumbnail' href="https://tv.lumbung.space/videos/watch/73d9f872-ea75-490c-a1be-60a398bac45e">
<img src="https://tv.lumbung.space/lazy-static/previews/6df9f482-ac52-45aa-a46b-5265df4439ee.jpg">
<!-- <iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" src="https://tv.lumbung.space/videos/embed/73d9f872-ea75-490c-a1be-60a398bac45e" frameborder="0" allowfullscreen></iframe> -->
<div class="video-thumbnail-duration-overlay">
0:44:17
6:28:45
</div>
<div class="play-overlay">
<div class="play-icon"></div>
</div>
</a>
</div>
<div class='title'>
PGPoetry workshop — Yoav Lifshitz | RF2020
</div>
<div class='metadata'>
<div class='title'>Sonic Liberation Front - 21/5/21</div>
<span class="description collapsed" id='vid-20'> Mirror from Radio Alhara<br />
https://yamakan.place/palestine/<br />
<br />
Recording on 21/5/21 from 14:00 - 19:00 Betlehem time. <br />
<br />
Radio Alhara is a radio station based in Bethlehem, Ramallah and Amman. Launched during a global lockdown crisis in March 2020...</span>
<div class='footer'>
<span class='channel'><a href='https://tv.undersco.re/video-channels/reclaimfutures'> ReclaimFutures</a></span>
<span class='date'> <a href='https://tv.undersco.re/videos/watch/3e9dae3a-1d6b-43b9-9a5b-b0faa65e41a6'> 2021-02-21</a></span>
<span class='channel'><a href='https://tv.lumbung.space/video-channels/sonicliberation'> Sonic Liberation Front</a></span>
<span class='descr_button' id='toggle-button' onclick="toggleDescription('#vid-20')"> <a href='#'> </a></span>
<span class='date'> <a href='https://tv.lumbung.space/videos/watch/73d9f872-ea75-490c-a1be-60a398bac45e'> 2021-05-21</a></span>
</div>
</div>
</div>
<div class='video-box'>
<div class='media'>
<a class='video-thumbnail' href="https://tv.undersco.re/videos/watch/23d2acf3-4dc8-4ad4-b8b1-a32025725317">
<img src="https://tv.undersco.re/lazy-static/previews/23d2acf3-4dc8-4ad4-b8b1-a32025725317.jpg">
<!-- <video data-src="https://tv.undersco.re/videos/embed/23d2acf3-4dc8-4ad4-b8b1-a32025725317"></video> -->
<a class='video-thumbnail' href="https://tv.lumbung.space/videos/watch/b4aafef4-892f-4036-a4bc-2e09027e2b4b">
<img src="https://tv.lumbung.space/lazy-static/previews/330965b6-f172-47bc-a914-d7d790858352.jpg">
<!-- <iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" src="https://tv.lumbung.space/videos/embed/b4aafef4-892f-4036-a4bc-2e09027e2b4b" frameborder="0" allowfullscreen></iframe> -->
<div class="video-thumbnail-duration-overlay">
1:50:55
LIVE
</div>
<div class="play-overlay">
<div class="play-icon"></div>
</div>
</a>
</div>
<div class='title'>
Avatars in Zoom for All — Eyal Gruss | RF2020
</div>
<div class='metadata'>
<div class='title'>Sonic Liberation Front</div>
<span class="description collapsed" id='vid-21'> Ongoing mirror of Radio Alhara<br />
<br />
https://yamakan.place/palestine/<br />
<br />
Radio Alhara is a radio station based in Bethlehem, Ramallah and Amman. Launched during a global lockdown crisis in March 2020, it encompasses the idea of a public space. The ra...</span>
<div class='footer'>
<span class='channel'><a href='https://tv.undersco.re/video-channels/reclaimfutures'> ReclaimFutures</a></span>
<span class='date'> <a href='https://tv.undersco.re/videos/watch/23d2acf3-4dc8-4ad4-b8b1-a32025725317'> 2021-02-21</a></span>
<span class='channel'><a href='https://tv.lumbung.space/video-channels/sonicliberation'> Sonic Liberation Front</a></span>
<span class='descr_button' id='toggle-button' onclick="toggleDescription('#vid-21')"> <a href='#'> </a></span>
<span class='date'> <a href='https://tv.lumbung.space/videos/watch/b4aafef4-892f-4036-a4bc-2e09027e2b4b'> 2021-05-21</a></span>
</div>
</div>
</div>
</div>
</body>
<script>
function toggleDescription(id){
document.querySelector(id).classList.toggle("collapsed");
}
</script>
</html>