index.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?php
  2. require_once '../pcdl/html_head.php';
  3. ?>
  4. <body>
  5. <script language="javascript" src="../pcdl/index.js"></script>
  6. <style>
  7. .content_inner {
  8. display: flex;
  9. }
  10. .title_bar {
  11. justify-content: space-between;
  12. display: flex;
  13. margin: 1em 0;
  14. }
  15. .h3 {
  16. font-size: 18px;
  17. font-weight: 700;
  18. }
  19. /*
  20. .index_list_categories {
  21. padding: 1rem;
  22. }*/
  23. .index_list_content {
  24. padding: 1rem;
  25. }
  26. .index_list_categories a:hover {
  27. color: var(--tool-link-hover-color);
  28. }
  29. /*.index_list_categories a,a:link{
  30. color: var(--main-color);
  31. }*/
  32. .index_list_categories button {
  33. border: none;
  34. }
  35. .pd-10 {
  36. padding: 10px;
  37. }
  38. .collect {
  39. color: var(--link-color);
  40. font-weight: 700;
  41. }
  42. #footer_nav {
  43. display: none;
  44. }
  45. .index_article {
  46. background-color: #e0e0e0;
  47. }
  48. .index_course {
  49. background-color: #313131;
  50. }
  51. .index_course .h3 {
  52. color: white;
  53. }
  54. .article_right {
  55. width: calc(100% - 80px);
  56. }
  57. .course_right a,
  58. .article_right a {
  59. color: var(--main-color);
  60. }
  61. .title a,
  62. .course_right title {
  63. font-size: 120%;
  64. font-weight: 700;
  65. display: -webkit-box;
  66. -webkit-box-orient: vertical;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. -webkit-line-clamp: 2;
  70. }
  71. #course_list_new .card {
  72. height: 120px;
  73. padding: 0;
  74. display: grid;
  75. grid-template-columns: 120px 1fr;
  76. }
  77. .card_photo {
  78. object-fit: cover;
  79. border-radius: 20px 0 0 20px;
  80. }
  81. .course_right {
  82. padding: 10px;
  83. display: flex;
  84. flex-direction: column;
  85. width: calc(100% - 10px);
  86. }
  87. .subtitle {
  88. margin-top: auto;
  89. display: -webkit-box;
  90. -webkit-box-orient: vertical;
  91. overflow: hidden;
  92. text-overflow: ellipsis;
  93. width: 100%;
  94. -webkit-line-clamp: 2;
  95. }
  96. #pali_pedia .card {
  97. background-color: #F9F9F9;
  98. box-shadow: unset;
  99. display: grid;
  100. grid-template-columns: 2fr 1fr;
  101. grid-template-areas:
  102. "title author"
  103. "summary author";
  104. }
  105. #pali_pedia .title {
  106. grid-area: title;
  107. font-size: 120%;
  108. }
  109. #pali_pedia .summary {
  110. grid-area: summary;
  111. }
  112. #pali_pedia .author {
  113. grid-area: author;
  114. color: gray;
  115. }
  116. .author {
  117. text-overflow: ellipsis;
  118. overflow: hidden;
  119. white-space: nowrap;
  120. }
  121. </style>
  122. <style media="screen and (min-width:800px)">
  123. .index_list_content {
  124. display: flex;
  125. margin: auto;
  126. max-width: 900px;
  127. }
  128. .index_article .index_list_content {
  129. background-image: url(img/books.svg);
  130. background-repeat: no-repeat;
  131. }
  132. .index_course .index_list_content {
  133. flex-direction: row-reverse;
  134. background-image: url(img/teachers.svg);
  135. background-repeat: no-repeat;
  136. background-position-x: right;
  137. }
  138. .title_bar {
  139. flex: 4;
  140. position: relative;
  141. margin: 2em;
  142. }
  143. #article_new {
  144. flex: 9;
  145. }
  146. #course_list_new {
  147. flex: 8;
  148. }
  149. #pali_pedia .card {
  150. margin: 0;
  151. }
  152. #pali_pedia {
  153. flex: 12;
  154. display: grid;
  155. grid-template-columns: 1fr 1fr;
  156. grid-gap: 10px;
  157. }
  158. .title_bar .h3 {
  159. font-size: 250%;
  160. }
  161. .title_more {
  162. position: absolute;
  163. right: 30px;
  164. bottom: 0;
  165. }
  166. .index_pedia .index_list_content {
  167. flex-direction: column;
  168. }
  169. .index_pedia .title_bar {
  170. display: grid;
  171. justify-content: unset;
  172. text-align: center;
  173. }
  174. .index_pedia .title_more {
  175. all: unset;
  176. }
  177. </style>
  178. <!--
  179. <style media="screen and (max-width:800px)">
  180. #right_pannal {
  181. display: none;
  182. }
  183. .when_right_fixed {
  184. padding-right: 0;
  185. }
  186. .index_toolbar {
  187. position: unset;
  188. }
  189. #pali_pedia {
  190. font-size: 200%;
  191. margin-top: auto;
  192. margin-bottom: auto;
  193. padding-left: 0.5em;
  194. }
  195. .content_inner {
  196. display: block;
  197. }
  198. .article_list {}
  199. </style>-->
  200. <a name="pagetop"></a>
  201. <!-- tool bar begin-->
  202. <?php
  203. require_once("head_bar.php");
  204. ?>
  205. <!--tool bar end -->
  206. <div class="index_inner">
  207. <div class="index_list_categories index_article">
  208. <div class="index_list_content">
  209. <div class="title_bar">
  210. <span class="title h3"><?php echo $_local->gui->composition; ?></span>
  211. <span class="title_more"><a href="../collect"><?php echo $_local->gui->more; ?></a></span>
  212. </div>
  213. <div id="article_new">
  214. </div>
  215. </div>
  216. </div>
  217. <div class="index_list_categories index_course">
  218. <div class="index_list_content">
  219. <div class="title_bar">
  220. <span class="title h3"><?php echo $_local->gui->lesson; ?></span>
  221. <span class="title_more"><a href="../course"><?php echo $_local->gui->more; ?></a></span>
  222. </div>
  223. <div id="course_list_new">
  224. </div>
  225. </div>
  226. </div>
  227. <div class="index_list_categories index_pedia">
  228. <div class="index_list_content">
  229. <div class="title_bar">
  230. <span class="title h3"><?php echo $_local->gui->encyclopedia; ?></span>
  231. <span class="title_more"><a href="../wiki"><?php echo $_local->gui->more; ?></a></span>
  232. </div>
  233. <div id="pali_pedia">
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <script>
  239. $(document).ready(function() {
  240. index_onload();
  241. });
  242. </script>
  243. <?php
  244. include "../pcdl/html_foot.php";
  245. ?>