product.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <div class="context">
  3. <div class="container">
  4. <h2>
  5. <img src="/images/PDFReaderPro/logo.png" alt="PDFReaderPro">
  6. PDF Reader Pro
  7. </h2>
  8. <div class="title">满足你所有的PDF文件处理需求!</div>
  9. <div class="get-btn">
  10. <a target="_blank" :href="platform.isWindows ? $config.PDFReaderPro + '/zh-cn/windows/download' : $config.PDFReaderPro + '/zh-cn/downloading'" class="free">
  11. <WinBlack v-if="platform.isWindows" />
  12. <MacBlack v-else />
  13. 免费下载
  14. </a>
  15. <a target="_blank" :href="platform.isWindows ? $config.PDFReaderPro + '/zh-cn/windows/store' : $config.PDFReaderPro + '/zh-cn/store'" class="buy">立即购买</a>
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import MacBlack from '~/assets/images/PDFReaderPro/macBlack.svg?inline'
  22. import WinBlack from '~/assets/images/PDFReaderPro/winBlack.svg?inline'
  23. export default {
  24. components: {
  25. MacBlack,
  26. WinBlack
  27. },
  28. props: ['platform']
  29. }
  30. </script>
  31. <style scoped lang="scss">
  32. .context {
  33. background: url('/images/PDFReaderPro/product_banner.png') top left/cover no-repeat;
  34. padding: 60px 0;
  35. h2 {
  36. display: flex;
  37. align-items: center;
  38. justify-content: center;
  39. font-family: Helvetica;
  40. font-size: 44px;
  41. font-weight: 700;
  42. line-height: 64px;
  43. color: #FFFFFF;
  44. img {
  45. width: 48px;
  46. margin-right: 16px;
  47. }
  48. }
  49. .title {
  50. margin-top: 12px;
  51. font-size: 32px;
  52. font-weight: 700;
  53. line-height: 48px;
  54. text-align: center;
  55. color: #FFFFFF;
  56. }
  57. .get-btn {
  58. margin-top: 30px;
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. a {
  63. width: 180px;
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. border-radius: 4px;
  68. font-size: 18px;
  69. font-weight: 700;
  70. transition: all ease-out .2s;
  71. &:hover {
  72. transform: translateY(-6px);
  73. }
  74. }
  75. a + a {
  76. margin-left: 16px;
  77. }
  78. .free {
  79. line-height: 48px;
  80. background: #fff;
  81. color: #193469;
  82. &:hover {
  83. background: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),linear-gradient(0deg, #FFFFFF, #FFFFFF);
  84. }
  85. svg {
  86. margin-right: 4px;
  87. }
  88. }
  89. .buy {
  90. line-height: 46px;
  91. border: 1px solid #FFFFFFB2;
  92. color: #FFFFFF;
  93. &:hover {
  94. background: linear-gradient(0deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
  95. }
  96. }
  97. }
  98. }
  99. @media screen and (max-width: 959px) {
  100. .context {
  101. padding: 40px 0;
  102. h2 {
  103. font-size: 32px;
  104. line-height: 48px;
  105. img {
  106. width: 32px;
  107. }
  108. }
  109. .title {
  110. font-size: 24px;
  111. line-height: 32px;
  112. }
  113. .get-btn {
  114. margin-top: 20px;
  115. flex-direction: column;
  116. a + a {
  117. margin-left: 0px;
  118. margin-top: 16px;
  119. }
  120. }
  121. }
  122. }
  123. </style>