home-sponsors.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <script lang="ts" setup>
  2. import { goldSponsors, platinumSponsors } from '../../../config/sponsors'
  3. import SponsorsButton from '../sponsors/sponsors-button.vue'
  4. import SponsorList from './sponsor-list.vue'
  5. </script>
  6. <template>
  7. <div class="sponsors-container" m="auto">
  8. <SponsorList :sponsors="platinumSponsors" sponsor-type="platinumSponsor" />
  9. <SponsorList :sponsors="goldSponsors" sponsor-type="goldSponsor" />
  10. <sponsors-button round />
  11. </div>
  12. </template>
  13. <style lang="scss">
  14. .home-page {
  15. .sponsors-container {
  16. margin-top: 72px;
  17. .join {
  18. text-align: center;
  19. margin: 0 0 52px 0;
  20. }
  21. }
  22. .sponsor-list {
  23. --min-width: 100%;
  24. grid-template-columns: repeat(auto-fit, minmax(var(--min-width), 320px));
  25. justify-content: center;
  26. &.platinum {
  27. --min-width: 220px;
  28. }
  29. &.gold {
  30. --min-width: 140px;
  31. @media (max-width: 720px) {
  32. --min-width: 160px;
  33. }
  34. }
  35. }
  36. .sponsor {
  37. margin: 0 20px 10px;
  38. height: calc(var(--min-width) / 2);
  39. align-items: center;
  40. // for dark mode
  41. // background-color: var(--bg-color-soft);
  42. .name {
  43. font-weight: bold;
  44. color: var(--text-color);
  45. font-size: 14px;
  46. }
  47. img {
  48. margin-right: 16px;
  49. }
  50. div {
  51. display: flex;
  52. flex-direction: column;
  53. justify-content: center;
  54. }
  55. p {
  56. margin: 0;
  57. line-height: 1.8;
  58. color: var(--text-color-light);
  59. font-size: 12px;
  60. }
  61. }
  62. }
  63. </style>