@@ -8,6 +8,15 @@ import {version} from '../../../../package.json'
88
99const {lang } = useData ()
1010
11+ const actionDescText = computed (() => {
12+ switch (lang .value ) {
13+ case ' zh' :
14+ return ' 🔥由雨云提供CDN赞助'
15+ default :
16+ return ' 🔥 CDN Sponsorship Provided by Yuyun'
17+ }
18+ })
19+
1120const downloadText = computed (() => {
1221 switch (lang .value ) {
1322 case ' zh' :
@@ -199,46 +208,63 @@ const downloadMenu = computed(() => {
199208 </script >
200209
201210<template >
202- <div class =" actions" >
203- <div class =" action" >
204- <a class =" action-button brand dropdown-button" >{{ downloadText }}</a >
205- <ul class =" dropdown-menu" >
206- <li v-for =" (m, i) in downloadMenu" :key =" i" style =" font-size : 14px " >
207- <component :is =" m.icon" />
208- <a :data-umami-event =" m.event"
209- :data-umami-event-arch =" m.eventArch"
210- :data-umami-event-lang =" m.eventLang"
211- :data-umami-event-platform =" m.eventPlatform"
212- :data-umami-event-type =" m.eventType"
213- :href =" m.link"
214- target =" _blank" >{{ m.text }}</a >
215- </li >
216- </ul >
217- </div >
218- <div class =" action" >
219- <a class =" action-button alt"
220- href =" https://github.com/tiny-craft/tiny-rdm" rel =" noreferrer"
221- target =" _blank" >
222- {{ viewText }}
223- </a >
211+ <div class =" action-wrap" >
212+ <div class =" actions" >
213+ <div class =" action" >
214+ <a class =" action-button brand dropdown-button" >{{ downloadText }}</a >
215+ <ul class =" dropdown-menu" >
216+ <li v-for =" (m, i) in downloadMenu" :key =" i" style =" font-size : 14px " >
217+ <component :is =" m.icon" />
218+ <a :data-umami-event =" m.event"
219+ :data-umami-event-arch =" m.eventArch"
220+ :data-umami-event-lang =" m.eventLang"
221+ :data-umami-event-platform =" m.eventPlatform"
222+ :data-umami-event-type =" m.eventType"
223+ :href =" m.link"
224+ target =" _blank" >{{ m.text }}</a >
225+ </li >
226+ </ul >
227+ </div >
228+ <div class =" action" >
229+ <a class =" action-button alt"
230+ href =" https://github.com/tiny-craft/tiny-rdm" rel =" noreferrer"
231+ target =" _blank" >
232+ {{ viewText }}
233+ </a >
234+ </div >
235+ </div >
236+ <a v-if =" actionDescText" class =" action-desc" href =" https://www.rainyun.com/lykin_?s=app" target =" _blank" >
237+ {{ actionDescText }}
238+ </a >
224239 </div >
225- </div >
226240</template >
227241
228242<style scoped>
229- .actions {
243+ .action-wrap {
230244 display : flex ;
231- flex-wrap : wrap ;
245+ flex-direction : column ;
232246 margin : -6px ;
233247 padding-top : 24px ;
234248 justify-content : center ;
235249}
236250
251+ .actions {
252+ display : flex ;
253+ flex-wrap : wrap ;
254+ }
255+
237256.action {
238257 flex-shrink : 0 ;
239258 padding : 6px ;
240259}
241260
261+ .action-desc {
262+ margin-left : 16px ;
263+ color : var (--vp-button-alt-text );
264+ font-size : 13px ;
265+ text-decoration : underline ;
266+ }
267+
242268@media (min-width : 640px ) {
243269 .actions {
244270 padding-top : 32px ;
0 commit comments