이승윤

style: home page 스타일 추가

1 <% include ./includes/header.ejs %> 1 <% include ./includes/header.ejs %>
2 - <div style="background-color:#e3f2fd;"> 2 + <div style="background-color:lavenderblush;">
3 <% var count = 0; %> 3 <% var count = 0; %>
4 + <center>
4 <% for (var i in video) { %> 5 <% for (var i in video) { %>
5 <div style ="color:gray; font-weight:bold; font-size:2.0em; margin-left: 30px; padding-top: 30px"> 6 <div style ="color:gray; font-weight:bold; font-size:2.0em; margin-left: 30px; padding-top: 30px">
7 + <div style="width: 100%;
8 + max-width: 7rem;
9 + height: 0.25rem;
10 + background-color: #2c3e50;
11 + border-radius: 1rem;
12 + border-color: #2c3e50 !important;"></div>
6 <%=video[i].category.title%> 13 <%=video[i].category.title%>
14 + <div style="width: 100%;
15 + max-width: 7rem;
16 + height: 0.25rem;
17 + background-color: #2c3e50;
18 + border-radius: 1rem;
19 + border-color: #2c3e50 !important;"></div>
7 </div> 20 </div>
8 <% for (var j in video[i].videos) { %> 21 <% for (var j in video[i].videos) { %>
9 - <div id="<%=count%>" vid="<%=video[i].videos[j].video_id%>" style="margin: 30px;"> 22 + <div class="card" style="width: 55rem; margin-bottom: 15px; margin-top: 15px;">
23 + <div class="card-top" id="<%=count%>" vid="<%=video[i].videos[j].video_id%>" style="margin: 30px;">
24 + </div>
25 + <div class="card-body">
26 + <h5 class="card-title"><%=video[i].videos[j].title%></h5>
27 + <p class="card-text">해당 영상에 대한 메모를 여기에 출력.
28 + </p>
29 + </div>
10 </div> 30 </div>
11 <%count++;}; %> 31 <%count++;}; %>
12 <%};%> 32 <%};%>
33 + </center>
13 </div> 34 </div>
14 35
15 <style type="text/css"> 36 <style type="text/css">
...@@ -46,8 +67,8 @@ ...@@ -46,8 +67,8 @@
46 function onYouTubeIframeAPIReady() { 67 function onYouTubeIframeAPIReady() {
47 for (var i = 0; i < videoIds.length; i++) { 68 for (var i = 0; i < videoIds.length; i++) {
48 player = new YT.Player(players[i], { 69 player = new YT.Player(players[i], {
49 - height: '360', 70 + height: '450',
50 - width: '640', 71 + width: '800',
51 videoId: videoIds[i], 72 videoId: videoIds[i],
52 }); 73 });
53 } 74 }
......