Skip to content

Commit 2e7900f

Browse files
committed
changed video
1 parent 509fcb2 commit 2e7900f

2 files changed

Lines changed: 41 additions & 63 deletions

File tree

‎front/static/index.html‎

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
<!-- / instructions / -->
4242
<div class="top-container border-bottom">
4343
<div class="instructions-container">
44+
<div class="cta-button-container">
45+
<button class="cta-button" onclick="location.href='app.html'">
46+
Get started
47+
<svg class="cta-button__icon">
48+
<use xlink:href="assets/sprite.svg#arrow-icon"></use>
49+
</svg>
50+
</button>
51+
</div>
4452
<article class="instructions">
4553
<h2 class="instructions__title">
4654
Code paster is a free online app
@@ -54,6 +62,7 @@ <h3 class="instructions__subtitle">What can I use it for?</h3>
5462
makes Code Paster a great and simple application to be used in any
5563
kind of online activity which requires text to be shared.
5664
</p>
65+
5766
<h3 class="instructions__subtitle">How does it work?</h3>
5867
<ol class="instructions__list">
5968
<li class="instructions__text">
@@ -72,37 +81,16 @@ <h3 class="instructions__subtitle">How does it work?</h3>
7281
in the room will be able to see whatever you have writen in it
7382
</li>
7483
</ol>
75-
</article>
76-
<div class="cta-button-container">
77-
<!-- <button class="cta-button" onclick="location.href='app.html'">
78-
Get started
79-
<svg class="cta-button__icon">
80-
<use xlink:href="assets/sprite.svg#arrow-icon"></use>
81-
</svg>
82-
</button> -->
83-
84-
<video
84+
<div class="video-container">
85+
<video
8586
class="video"
8687
src="http://v2v.cc/~j/theora_testsuite/320x240.ogg"
8788
controls
88-
></video>
89-
</div>
89+
/></video>
90+
</div>
91+
</article>
9092
</div>
9193
</div>
92-
<!-- / video / -->
93-
<section class="box-content border-bottom">
94-
<div class="video-section-container">
95-
<h2 class="heading">Video tutorial</h2>
96-
<div class="video-container">
97-
<iframe
98-
src="https://www.youtube.com/embed/4sswp02n0Yg"
99-
frameborder="0"
100-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
101-
allowfullscreen
102-
></iframe>
103-
</div>
104-
</div>
105-
</section>
10694

10795
<!-- / credits / -->
10896
<div class="box-content border-bottom" id="credits">

‎front/static/styles.css‎

Lines changed: 27 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -345,19 +345,13 @@ ul {
345345
justify-content: space-between;
346346
width: 70%;
347347
margin: 0 auto;
348-
border: 1px solid red;
349-
}
350-
351-
.video {
352-
width: 90%;
353-
margin: 2% auto;
354-
max-height: 220px;
355-
background-color: #151611;
348+
/* padding: 2% 0; */
356349
}
357350

358351
.instructions {
359352
width: 65%;
360353
margin-left: auto;
354+
display: block;
361355
padding: 3rem;
362356
border: 2px solid var(--color-grey-medium);
363357
}
@@ -379,6 +373,31 @@ ul {
379373
margin-bottom: 1rem;
380374
}
381375

376+
.video-container {
377+
display: inline-flex;
378+
justify-content: center;
379+
align-content: center;
380+
width: 100%;
381+
margin-top: 4%;
382+
padding: 0;
383+
}
384+
385+
.video {
386+
width: 95%;
387+
max-height: 220px;
388+
padding: 0;
389+
background-color: #151611;
390+
border-radius: 5px;
391+
}
392+
393+
@media (min-width: 1024px) {
394+
.video {
395+
max-width: 400px;
396+
397+
max-height: 300px;
398+
}
399+
}
400+
382401
@media only screen and (max-width: 1250px) {
383402
.instructions-container {
384403
width: 70%;
@@ -430,35 +449,6 @@ ul {
430449
}
431450
}
432451

433-
/* - - - - - video - - - - - */
434-
.video-section-container {
435-
width: 70%;
436-
}
437-
438-
.video-container {
439-
position: relative;
440-
padding-bottom: 56.25%;
441-
padding-top: 30px;
442-
height: 0;
443-
overflow: hidden;
444-
}
445-
446-
.video-container iframe,
447-
.video-container object,
448-
.video-container embed {
449-
position: absolute;
450-
top: 0;
451-
left: 0;
452-
width: 100%;
453-
height: 100%;
454-
}
455-
456-
@media only screen and (max-width: 770px) {
457-
.video-section-container {
458-
width: 100%;
459-
}
460-
}
461-
462452
/* - - - - - credits - - - - - */
463453
.card {
464454
display: flex;

0 commit comments

Comments
 (0)