You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.3 KiB

2 years ago
  1. <template>
  2. <section class="xl:tw-max-w-[1246px] xl:tw-mx-auto col-span-4-bg tw-px-[30px] xl:tw-px-[60px] tw-py-[50px] md:tw-py-[70px]">
  3. <div class="tw-flex tw-justify-center tw-w-full tw-leading-10 tw-pb-[50px]">
  4. <img class="tw-h-[32px] tw-w-[32px] md:tw-h-[42px] xl:tw-h-[48px] md:tw-w-[42px] xl:tw-w-[48px]" :src="require('~/assets/img/edit.png')">
  5. <div class="tw-text-xl md:tw-text-3xl xl:tw-text-4xl tw-text-center tw-pt-[3px] tw-font-black xl:tw-font-black md:tw-font-black">{{ $t("Blog") }}</div>
  6. </div>
  7. <div class="tw-grid tw-grid-cols-1 tw-gap-[30px] md:tw-gap-[40px] xl:tw-grid-cols-2 xl:tw-mx-auto">
  8. <div class="tw-flex tw-justify-center">
  9. <div class="tw-flex tw-justify-center tw-w-1/3 md:tw-w-3/7 xl:tw-w-4/5">
  10. <img class="tw-self-center" src="~/assets/img/strategy.png">
  11. </div>
  12. </div>
  13. <div>
  14. <div v-for="(item,index) in strategyList" :key="index" class="tw-py-[15px] tw-w-full tw-border-0 tw-border-b-2 tw-border-neutrals-300 tw-border-dashed">
  15. <a :href="item.url" target="_blank" class="tw-relative tw-w-full tw-h-full tw-text-left tw-content-center">
  16. <h3
  17. class="t14 tw-line-clamp-2 tw-text-ellipsis tw-overflow-hidden md:t16 xl:t18 md:tw-line-clamp-none md:tw-h-full md:tw-mt-0 xl:tw-line-clamp-2 tw-font-black xl:tw-font-black md:tw-font-black">
  18. {{ item.title }}
  19. </h3>
  20. <div class="t10 md:t12 xl:t14 tw-text-neutrals-400 md:tw-block tw-my-[15px]">
  21. {{ item.date}}
  22. </div>
  23. <p class="tw-line-clamp-2 tw-text-ellipsis tw-overflow-hidden t12 md:t14 xl:t16 tw-text-neutrals-600">
  24. {{ item.content}}
  25. </p>
  26. </a>
  27. </div>
  28. </div>
  29. </div>
  30. </section>
  31. </template>
  32. <script>
  33. export default {
  34. props: {
  35. strategyList: {
  36. type: Array,
  37. },
  38. title: {
  39. type: String,
  40. },
  41. },
  42. created() {
  43. if (this.$props.strategyList.length > 3) {
  44. this.$props.strategyList = this.$props.strategyList.slice(0, 3);
  45. }
  46. },
  47. };
  48. </script>
  49. <style lang="scss" scoped>
  50. .col-span-4-bg{
  51. background-image: radial-gradient(circle at 118% 118%, rgba(250, 174, 105, 0.15), rgba(250, 174, 105, 0.01) 89%);
  52. }
  53. </style>