changes basic ui
This commit is contained in:
parent
ca9ca8b573
commit
e4b0a3511d
BIN
00-intro.mp4
BIN
00-intro.mp4
Binary file not shown.
BIN
01-analogies.mp4
BIN
01-analogies.mp4
Binary file not shown.
Binary file not shown.
BIN
03-faq.mp4
BIN
03-faq.mp4
Binary file not shown.
94
index.html
94
index.html
|
@ -1,35 +1,87 @@
|
|||
<html><head><title>Educational Bitcoin videos</title></head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
<title>Educational Bitcoin videos</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
Bitcoin educational videos
|
||||
</h1>
|
||||
|
||||
<p>
|
||||
<video width="1280" height="720" controls>
|
||||
<h3 class="heading">Bitcoin educational videos </h3>
|
||||
<div class="container">
|
||||
<div class="main-video">
|
||||
<div class="video">
|
||||
<video controls autoplay>
|
||||
<source src="00-intro.mp4" type="video/mp4">
|
||||
<track default src="00-intro.vtt" kind="captions" srclang="en" label="English">
|
||||
</video>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<video width="1280" height="720" controls>
|
||||
</video>
|
||||
<h3 class="title">01. Intro</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="video-list">
|
||||
<div class="vid active">
|
||||
<video controls muted autoplay>
|
||||
<source src="00-intro.mp4" type="video/mp4">
|
||||
<track default src="00-intro.vtt" kind="captions" srclang="en" label="English">
|
||||
|
||||
</video>
|
||||
<h3 class="title">01. Intro</h3>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="vid">
|
||||
<video controls muted autoplay>
|
||||
<source src="01-analogies.mp4" type="video/mp4">
|
||||
<track default src="01-analogies.vtt" kind="captions" srclang="en" label="English">
|
||||
</video>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<video width="1280" height="720" controls>
|
||||
</video>
|
||||
<h3 class="title">02. Analogies</h3>
|
||||
</div>
|
||||
<div class="vid">
|
||||
<video controls muted autoplay>
|
||||
<source src="02-principles.mp4" type="video/mp4">
|
||||
<track default src="02-principles.vtt" kind="captions" srclang="en" label="English">
|
||||
</video>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<video width="1280" height="720" controls>
|
||||
</video>
|
||||
<h3 class="title">03. Principles</h3>
|
||||
</div>
|
||||
<div class="vid">
|
||||
<video controls muted autoplay>
|
||||
<source src="03-faq.mp4" type="video/mp4">
|
||||
<track default src="03-faq.vtt" kind="captions" srclang="en" label="English">
|
||||
</video>
|
||||
</p>
|
||||
|
||||
</video>
|
||||
<h3 class="title">04. FAQ</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"/> -->
|
||||
<script>
|
||||
let listVideo= document.querySelectorAll('.video-list .vid');
|
||||
let mainVideo= document.querySelector('.main-video video')
|
||||
let title = document.querySelector('.main-video .title')
|
||||
listVideo.forEach(video =>{
|
||||
video.onclick = () =>{
|
||||
listVideo.forEach(vid => vid.classList.remove('active'));
|
||||
video.classList.add('active');
|
||||
console.log("video",video)
|
||||
let src = document.getElementsByClassName('active').item('video').children[0].currentSrc;
|
||||
// let src = $('.active').children[0].currentSrc;
|
||||
if(video.classList.contains('active')){
|
||||
// let src = video
|
||||
console.log("here is the src",src)
|
||||
mainVideo.src = src;
|
||||
let text = video.children[1].innerHTML;
|
||||
title.innerHTML = text;
|
||||
};
|
||||
};
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
144
style.css
Normal file
144
style.css
Normal file
|
@ -0,0 +1,144 @@
|
|||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
text-transform: capitalize;
|
||||
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
||||
font-weight: normal;
|
||||
}
|
||||
body{
|
||||
background: transparent;
|
||||
}
|
||||
.heading{
|
||||
color: #fff;
|
||||
font-size: 40px;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.container{
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr;
|
||||
gap: 15px;
|
||||
align-items: flex-start;
|
||||
padding: 5px 5%;
|
||||
}
|
||||
.container .main-video{
|
||||
background: white;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
}
|
||||
.container .main-video video{
|
||||
width: 100%;
|
||||
border-radius: 5px;
|
||||
|
||||
}
|
||||
.container .main-video video .title{
|
||||
color: grey;
|
||||
font-size: 23px;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.container .video-list{
|
||||
background: white;
|
||||
border-radius: 5px;
|
||||
height: 520px;
|
||||
overflow-y: scroll;
|
||||
|
||||
|
||||
}
|
||||
.container .video-list .vid video{
|
||||
width: 100%;
|
||||
border-radius: 5px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.container .main-video .title{
|
||||
color: grey;
|
||||
font-size: 23px;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.container .video-list{
|
||||
background: white;
|
||||
border-radius: 5px;
|
||||
height: 520px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.container .video-list::-webkit-scrollbar{
|
||||
width: 7px;
|
||||
}
|
||||
.container .video-list::-webkit-scrollbar-track{
|
||||
background: white;
|
||||
border-radius: 50px;
|
||||
|
||||
}
|
||||
|
||||
.container .video-list::-webkit-scrollbar-thumb{
|
||||
background: grey;
|
||||
border-radius: 50px;
|
||||
|
||||
}
|
||||
.container .video-list .vid video{
|
||||
width: 100px;
|
||||
border-radius: 5px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.container .video-list .vid{
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
background: white;
|
||||
border-radius: 5px;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(0, 0, 0, .1);
|
||||
cursor: pointer;
|
||||
flex-direction: column;
|
||||
}
|
||||
.container .video-list .vid:hover{
|
||||
background: white;
|
||||
}
|
||||
|
||||
.container .video-list .vid.active{
|
||||
background: #ccc;
|
||||
}
|
||||
.container .video-list .vid.active.title{
|
||||
color: white;
|
||||
}
|
||||
|
||||
.container .video-list .vid .title{
|
||||
color: grey;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.container .video-list .vid video {
|
||||
width: 100%;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
@media(max-width:994px){
|
||||
.container{
|
||||
|
||||
grid-template-columns: 1.5fr 1fr;
|
||||
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
}
|
||||
@media(max-width:778px){
|
||||
.container{
|
||||
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user