Преглед изворни кода

تغییر نمایش ویجت کروسل آخرین رویداد برای نمایش تصاویر دارای نوشته

hgh пре 1 година
родитељ
комит
48a4f97ca8
2 измењених фајлова са 32 додато и 33 уклоњено
  1. 31 31
      src/components/EventItem.vue
  2. 1 2
      src/components/Widgets/Event/LastEvents/LastEvents.vue

+ 31 - 31
src/components/EventItem.vue

@@ -53,15 +53,17 @@
            @click="goToPage">
     </q-card-section>
     <div class="infos">
-      <div class="title ellipsis-2-lines">
+      <div class="title">
         <router-link :to="{name: 'Public.ShowEventInfo', params: {id: event.id}}">
           {{event.title}}
         </router-link>
       </div>
-      <div class="date">
-        <q-icon name="calendar_month"
-                size="20px" />
-        {{ miladiToShamsi() }}
+      <div class="attribute">
+        <div class="attribute-item">
+          <q-icon name="calendar_month"
+                  size="20px" />
+          {{ miladiToShamsi() }}
+        </div>
       </div>
     </div>
     <q-card-actions class="action-section">
@@ -188,7 +190,10 @@ export default defineComponent({
     }
   }
   .thumbnail {
-    padding: 0;
+    padding-top: 17px;
+    padding-left: 22px;
+    padding-right: 22px;
+    padding-bottom: 26px;
     .RegisteredSign {
       display: none;
     }
@@ -197,32 +202,27 @@ export default defineComponent({
       height: auto;
     }
   }
-  .infos {
-    position: absolute;
-    left: 0;
-    bottom: 60px;
-    width: 100%;
-    z-index: 2;
-    .title {
-      padding: 0 15px;
-      text-align: left;
-      margin-bottom: 49px;
-      a {
-        color: white;
-        font-size: 16px;
-        font-weight: bold;
+  .title {
+    text-align: left;
+    padding-top: 0;
+    padding-left: 46px;
+    padding-right: 46px;
+    padding-bottom: 33px;
+  }
+  .attribute {
+    padding-top: 0;
+    padding-left: 46px;
+    padding-right: 46px;
+    padding-bottom: 44px;
+    .attribute-item {
+      margin-bottom: 21px;
+      display: flex;
+      flex-flow: row;
+      .attribute-logo {
+        margin-right: 15px;
       }
-    }
-    .date {
-      padding: 0 15px;
-      text-align: left;
-      margin-bottom: 24px;
-      color: white;
-      font-size: 16px;
-      font-weight: normal;
-      .q-icon {
-        color: #EAC38A;
-        margin-right: 12.5px;
+      &:last-child {
+        margin-bottom: 0;
       }
     }
   }

+ 1 - 2
src/components/Widgets/Event/LastEvents/LastEvents.vue

@@ -3,8 +3,7 @@
     <div class="eventCarousel-title">
       <div>
         <q-banner class="banner">
-          آخرین
-          رویدادها
+          آخرین رویدادها
         </q-banner>
       </div>
       <div>