|
| 1 | +<template> |
| 2 | + <div class="mentorbook-banner"> |
| 3 | + <a href="https://mentorbook.ai/" target="_blank" class="banner-content"> |
| 4 | + <div class="brand-name">Mentorbook.AI</div> |
| 5 | + <div class="main-slogan"> |
| 6 | + {{ isCN ? '你的 AI 导师,你的学习助手' : 'Your AI Mentor, Your Learning Journey' }} |
| 7 | + </div> |
| 8 | + <div class="value-props"> |
| 9 | + {{ |
| 10 | + isCN |
| 11 | + ? '✨ 个性化课程 · 即时反馈 · 100+ 学科领域' |
| 12 | + : '✨ Personalized Courses · Instant Feedback · 100+ Subjects' |
| 13 | + }} |
| 14 | + </div> |
| 15 | + </a> |
| 16 | + <a href="https://mentorbook.ai/" target="_blank" class="start-button"> |
| 17 | + {{ isCN ? '免费开始' : 'Get Started Free' }} |
| 18 | + </a> |
| 19 | + </div> |
| 20 | +</template> |
| 21 | +<script> |
| 22 | +export default { |
| 23 | + components: { |
| 24 | + // WWAds, |
| 25 | + }, |
| 26 | + props: ['isCN', 'isMobile'], |
| 27 | + data() { |
| 28 | + return {}; |
| 29 | + }, |
| 30 | + computed: { |
| 31 | + otherAds() { |
| 32 | + return this.isCN ? this.cnAds : this.enAds; |
| 33 | + }, |
| 34 | + }, |
| 35 | +}; |
| 36 | +</script> |
| 37 | + |
| 38 | +<style lang="less" scoped> |
| 39 | +.mentorbook-banner { |
| 40 | + display: flex; |
| 41 | + width: 100%; |
| 42 | + background: linear-gradient(135deg, #0b1021 0%, #182a4a 100%); |
| 43 | + position: relative; |
| 44 | + overflow: hidden; |
| 45 | + padding: 0 16px; |
| 46 | + height: 48px; |
| 47 | + box-sizing: border-box; |
| 48 | + align-items: center; |
| 49 | + justify-content: space-between; |
| 50 | +
|
| 51 | + // Dots pattern background |
| 52 | + &::before { |
| 53 | + content: ''; |
| 54 | + position: absolute; |
| 55 | + top: 0; |
| 56 | + left: 0; |
| 57 | + right: 0; |
| 58 | + bottom: 0; |
| 59 | + background-image: radial-gradient(circle, rgba(127, 179, 255, 0.12) 2px, transparent 2px); |
| 60 | + background-size: 28px 28px; |
| 61 | + background-position: 0 0; |
| 62 | + pointer-events: none; |
| 63 | + z-index: 0; |
| 64 | + } |
| 65 | +
|
| 66 | + // Left brace |
| 67 | + &::after { |
| 68 | + content: '{'; |
| 69 | + position: absolute; |
| 70 | + left: 20px; |
| 71 | + top: 50%; |
| 72 | + transform: translateY(-50%); |
| 73 | + font-size: 32px; |
| 74 | + font-family: monospace; |
| 75 | + color: #5df2a3; |
| 76 | + opacity: 0.08; |
| 77 | + pointer-events: none; |
| 78 | + z-index: 0; |
| 79 | + } |
| 80 | +
|
| 81 | + .banner-content { |
| 82 | + position: relative; |
| 83 | + z-index: 1; |
| 84 | + flex: 1; |
| 85 | + height: 48px; |
| 86 | + display: flex; |
| 87 | + flex-direction: row; |
| 88 | + justify-content: center; |
| 89 | + align-items: center; |
| 90 | + gap: 12px; |
| 91 | + text-decoration: none; |
| 92 | + transition: opacity 0.3s; |
| 93 | +
|
| 94 | + &:hover { |
| 95 | + opacity: 0.9; |
| 96 | + } |
| 97 | + } |
| 98 | +
|
| 99 | + .start-button { |
| 100 | + position: relative; |
| 101 | + z-index: 1; |
| 102 | + display: flex; |
| 103 | + align-items: center; |
| 104 | + justify-content: center; |
| 105 | + height: 32px; |
| 106 | + padding: 0 16px; |
| 107 | + background: #5df2a3; |
| 108 | + color: #0b1021; |
| 109 | + font-family: 'Inter', system-ui, -apple-system, sans-serif; |
| 110 | + font-weight: 600; |
| 111 | + font-size: 14px; |
| 112 | + text-decoration: none; |
| 113 | + border-radius: 6px; |
| 114 | + white-space: nowrap; |
| 115 | + transition: all 0.3s; |
| 116 | + margin-left: 16px; |
| 117 | +
|
| 118 | + &:hover { |
| 119 | + background: #4dd893; |
| 120 | + transform: translateY(-1px); |
| 121 | + box-shadow: 0 4px 12px rgba(93, 242, 163, 0.3); |
| 122 | + } |
| 123 | +
|
| 124 | + &:active { |
| 125 | + transform: translateY(0); |
| 126 | + } |
| 127 | +
|
| 128 | + @media (max-width: 768px) { |
| 129 | + font-size: 12px; |
| 130 | + padding: 0 12px; |
| 131 | + height: 28px; |
| 132 | + } |
| 133 | +
|
| 134 | + @media (max-width: 480px) { |
| 135 | + font-size: 11px; |
| 136 | + padding: 0 10px; |
| 137 | + height: 26px; |
| 138 | + margin-left: 8px; |
| 139 | + } |
| 140 | + } |
| 141 | +
|
| 142 | + .brand-name { |
| 143 | + font-family: 'Inter', system-ui, -apple-system, sans-serif; |
| 144 | + font-weight: 800; |
| 145 | + font-size: 20px; |
| 146 | + color: #5df2a3; |
| 147 | + line-height: 48px; |
| 148 | + white-space: nowrap; |
| 149 | +
|
| 150 | + @media (max-width: 768px) { |
| 151 | + font-size: 18px; |
| 152 | + } |
| 153 | +
|
| 154 | + @media (max-width: 480px) { |
| 155 | + font-size: 16px; |
| 156 | + } |
| 157 | + } |
| 158 | +
|
| 159 | + .main-slogan { |
| 160 | + font-family: 'Inter', system-ui, -apple-system, sans-serif; |
| 161 | + font-weight: 600; |
| 162 | + font-size: 16px; |
| 163 | + color: #eaf2ff; |
| 164 | + line-height: 48px; |
| 165 | + white-space: nowrap; |
| 166 | +
|
| 167 | + @media (max-width: 768px) { |
| 168 | + font-size: 14px; |
| 169 | + } |
| 170 | +
|
| 171 | + @media (max-width: 480px) { |
| 172 | + display: none; |
| 173 | + } |
| 174 | + } |
| 175 | +
|
| 176 | + .value-props { |
| 177 | + font-family: 'Inter', system-ui, -apple-system, sans-serif; |
| 178 | + font-weight: 500; |
| 179 | + font-size: 14px; |
| 180 | + color: #7fb3ff; |
| 181 | + line-height: 48px; |
| 182 | + white-space: nowrap; |
| 183 | +
|
| 184 | + @media (max-width: 1024px) { |
| 185 | + display: none; |
| 186 | + } |
| 187 | + } |
| 188 | +} |
| 189 | +
|
| 190 | +.ad-link { |
| 191 | + display: block; |
| 192 | + width: 100%; |
| 193 | + text-decoration: none; |
| 194 | + transition: opacity 0.3s; |
| 195 | + margin-top: 16px; |
| 196 | +
|
| 197 | + &:hover { |
| 198 | + opacity: 0.9; |
| 199 | + } |
| 200 | +} |
| 201 | +
|
| 202 | +.ad-image { |
| 203 | + width: 100%; |
| 204 | + max-width: 1200px; |
| 205 | + height: auto; |
| 206 | + display: block; |
| 207 | + margin: 0 auto; |
| 208 | +} |
| 209 | +</style> |
0 commit comments