news_list.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <html data-bs-theme="light" lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  6. <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
  8. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
  9. <!-- <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/bs-theme-overrides.css">
  10. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Hero-Carousel-images.css">
  11. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Navbar-Right-Links-icons.css">
  12. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/smjy-header.css">
  13. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/sticky-dark-top-nav-with-dropdown.css"> -->
  14. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/styles.css">
  15. <link rel="stylesheet" type="text/css" href="{dreamer-cms:template /}assets/css/animate.min.css">
  16. <style>
  17. /* .card{
  18. --bs-card-color: rgb(137, 137, 137);
  19. } */
  20. .card-title{
  21. --bs-card-title-color: rgb(137, 137, 137);
  22. font-weight: bold;
  23. }
  24. @media (min-width:768px) {
  25. .new-img-box{
  26. width: 60%!important;
  27. flex-shrink: 0;
  28. height: 100%;
  29. position: relative;
  30. }
  31. .new-img-box .news-img{
  32. width: 100%;
  33. height: auto;
  34. position: absolute;
  35. top: 50%;
  36. left: 50%;
  37. transform: translate(-50%, -50%);
  38. }
  39. .card{
  40. height: 350px!important;
  41. --bs-card-bg: rgb(247,247,247)!important;
  42. }
  43. }
  44. @media (max-width:769px) {
  45. .new-img-box{
  46. height: 300px;
  47. width: 100%!important;
  48. position: relative;
  49. }
  50. .new-img-box .news-img{
  51. width: auto;
  52. height: 100%;
  53. position: absolute;
  54. top: 50%;
  55. left: 50%;
  56. transform: translate(-50%, -50%);
  57. }
  58. .content-text{
  59. display: none!important;
  60. }
  61. h4{
  62. font-size: calc(1rem + .3vw)!important;
  63. }
  64. }
  65. </style>
  66. </head>
  67. <body>
  68. {dreamer-cms:include file='loading.html'/}
  69. {dreamer-cms:include file='header.html'/}
  70. <main>
  71. <section>
  72. <div class="">
  73. <div class="pt-2 pt-md-3 pt-xl-4">
  74. {dreamer-cms:type typeid="927c5jck"}
  75. <img class="auto-img"
  76. alt="[field:typenamecn/]"
  77. src="{dreamer-cms:template /}assets/img/none.png"
  78. data-aos="zoom-in-right" data-aos-duration="800" data-aos-once="true"
  79. data-src="[field:typeimg/]" />
  80. {/dreamer-cms:type}
  81. </div>
  82. </div>
  83. </section>
  84. <div class="px-2 py-4 py-xl-5">
  85. <div class="row gx-0 gy-4 row-cols-1 new-row">
  86. {dreamer-cms:list typeid="927c5jck" pagenum="0" flag="p"}
  87. <div class="col">
  88. <div class="card flex-column flex-md-row flex-lg-row flex-xl-row"
  89. style="border: none;--bs-card-color:rgb(137,137,137);--bs-border-radius:0">
  90. <div class="new-img-box" style="overflow: hidden;">
  91. <img class="card-img-top d-block fit-cover news-img"
  92. src="{dreamer-cms:template /}assets/img/none.png"
  93. alt="[field:title/]"
  94. data-aos="zoom-in" data-aos-duration="800" data-aos-once="true"
  95. data-src="[field:litpic/]"
  96. loading="lazy"/>
  97. </div>
  98. <div class="card-body p-2 p-md-4" style="display: flex;flex-direction: column;justify-content: space-between;">
  99. <div>
  100. <h4 class="card-title">[field:title/]</h4>
  101. <p class="card-text" style="margin-bottom: 5px;font-size: 13px;">[field:updatetime function="format('yyyy-MM-dd')"/]</p>
  102. <p class="card-text mb-0 link-default content-text" style="overflow: hidden;text-overflow: ellipsis;-webkit-line-clamp: 2;word-wrap: break-word;display: -webkit-box;-webkit-box-orient: vertical;line-height: 20px;">
  103. [field:remark/]
  104. </p>
  105. </div>
  106. <div>
  107. <a class="card-link mb-0 link-default" href="[field:arcurl/]" style="font-size: 13px;">阅读更多&gt;</a>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. {/dreamer-cms:list}
  113. </div>
  114. </div>
  115. </main>
  116. {dreamer-cms:include file='footer.html'/}
  117. <script src="{dreamer-cms:template /}assets/js/jquery.min.js"></script>
  118. <script type="text/javascript" src="{dreamer-cms:template /}assets/js/wow.min.js"></script>
  119. <script src="{dreamer-cms:template /}assets/js/main.js"></script>
  120. <script src="{dreamer-cms:template /}assets/bootstrap/js/bootstrap.min.js"></script>
  121. <script src="{dreamer-cms:template /}assets/js/aos.min.js"></script>
  122. <script src="{dreamer-cms:template /}assets/js/bs-init.js"></script>
  123. <script src="{dreamer-cms:template /}assets/js/image.js"></script>
  124. </body>
  125. </html>