Browse Source

簡化首頁資訊量

paññābhinanda 5 years ago
parent
commit
faa5da0dd5
3 changed files with 12 additions and 6 deletions
  1. 3 3
      app/course/list_new.php
  2. 2 1
      app/pcdl/index.js
  3. 7 2
      app/pcdl/index.php

+ 3 - 3
app/course/list_new.php

@@ -16,15 +16,15 @@ foreach ($Fetch as $row) {
     echo '<div class="card_photo"></div>';
     echo '<div class="course_right">';
     echo '<div class="title"><a href="../course/course.php?id=' . $row["id"] . '">' . $row["title"] . '</a></div>';
-    echo '<div class="subtitle"  style="color:gray;">' . $row["subtitle"] . '</div>';
     echo '<div class="author">' . $_local->gui->speaker . ':';
     echo '<a href="../uhome/course.php?userid=' . $row['teacher'] . '">';
     echo ucenter_getA($row["teacher"]);
     echo '</a>';
     echo '</div>';
-    echo '<div class="summary">' . $row["summary"] . '</div>';
+    echo '<div class="subtitle">' . $row["subtitle"] . '</div>';
+    /*echo '<div class="summary">' . $row["summary"] . '</div>';*/
     echo '</div>';
-    /*
+    /*按讚數及觀看數(待定)
     echo '<div class="pd-10" style="display:flex;justify-content: space-between;">';
     echo '<button><svg t="1600445373282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2368" width="32" height="32"><path fill="silver" d="M854.00064 412.66688h-275.99872v-35.99872c48-102.00064 35.99872-227.99872 0-288-12.00128-18.00192-35.99872-35.99872-54.00064-35.99872s-35.99872 6.00064-35.99872 54.00064c0 96-6.00064 137.99936-24.00256 179.99872-12.00128 29.99808-77.99808 96-156.00128 120.00256v480c12.00128 6.00064 35.99872 24.00256 54.00064 29.99808 18.00192 12.00128 48 18.00192 60.00128 18.00192h306.00192c77.99808 0 108.00128-29.99808 108.00128-66.00192 0-18.00192 0-29.99808-18.00192-35.99872V796.672c41.99936 0 83.99872-12.00128 83.99872-48 0-29.99808-12.00128-35.99872-18.00192-35.99872v-35.99872h6.00064c24.00256 0 60.00128-35.99872 60.00128-60.00128 0-18.00192-6.00064-35.99872-18.00192-41.99936-6.00064-6.00064-24.00256-6.00064-24.00256-6.00064v-35.99872s12.00128 0 24.00256-12.00128c18.00192-12.00128 18.00192-42.00448 18.00192-42.00448v-12.00128c0-29.99808-48-54.00064-96-54.00064zM67.99872 478.6688l35.99872 408.00256c6.00064 24.00256 24.00256 48 48 48h83.99872c6.00064 0 12.00128-6.00064 18.00192-12.00128s12.00128-6.00064 18.00192-12.00128V412.66688H128c-35.99872 0-60.00128 35.99872-60.00128 66.00192z" p-id="2369"></path></svg></button>';
     echo '<span id="num_like">3</span>';

+ 2 - 1
app/pcdl/index.js

@@ -34,7 +34,7 @@ function index_load_collect_new() {
                     "</a></div>";
 
 
-                html += "<div class='collect' style='color:gray'>";
+                html += "<div class='collect'>";
                 if (iterator.collect) {
                     html += "<a href='../article/?collect=" + iterator.collect.id + "'>" + iterator.collect.title + "</a>";
                 } else {
@@ -48,6 +48,7 @@ function index_load_collect_new() {
                     html += "<div>" + iterator.summary + "</div>";
                 }
 
+
                 html += "<div style='margin-top:1em;'>" + iterator.username.nickname + "</div>";
 
 

+ 7 - 2
app/pcdl/index.php

@@ -51,6 +51,11 @@ require_once '../pcdl/html_head.php';
 			padding: 10px;
 		}
 
+		.collect {
+			color: var(--link-color);
+			font-weight: 700;
+		}
+
 		#footer_nav {
 			display: none;
 		}
@@ -88,7 +93,7 @@ require_once '../pcdl/html_head.php';
 		}
 
 		#course_list_new .card {
-			height: 150px;
+			height: 120px;
 			padding: 0;
 			display: grid;
 			grid-template-columns: 120px 1fr;
@@ -107,7 +112,7 @@ require_once '../pcdl/html_head.php';
 			width: calc(100% - 10px);
 		}
 
-		.summary {
+		.subtitle {
 			margin-top: auto;
 			display: -webkit-box;
 			-webkit-box-orient: vertical;