@@ -24,6 +24,13 @@ function handleMenuClick(key: string) {
2424 navigateTo (localePath (` /activate/${key } ` ))
2525 drawerVisible .value = false
2626}
27+
28+ const rainyunAdUrlBase64 =
29+ ' aHR0cHM6Ly93d3cucmFpbnl1bi5jb20vbW1fP3M9a21zLXRvb2xz'
30+
31+ function handleRainyunAdClick() {
32+ window .open (atob (rainyunAdUrlBase64 ), ' _blank' , ' noopener,noreferrer' )
33+ }
2734 </script >
2835
2936<template >
@@ -73,6 +80,22 @@ function handleMenuClick(key: string) {
7380 </AMenuItem >
7481 </ASubMenu >
7582 </AMenu >
83+
84+ <div
85+ class =" hover:bg-[var(--color-fill-2)]/50 group relative mt-4 flex rounded-lg bg-[var(--color-bg-2)] p-2 ring-1 ring-[var(--color-border)] transition"
86+ >
87+ <button
88+ type =" button"
89+ class =" flex w-full flex-col items-start gap-y-2 text-left"
90+ @click =" handleRainyunAdClick"
91+ >
92+ <img
93+ src =" /images/rainyun_1.png"
94+ alt =" RainYun"
95+ class =" h-auto w-full rounded-md object-cover"
96+ />
97+ </button >
98+ </div >
7699 </ADrawer >
77100
78101 <!-- Mobile: page content -->
@@ -85,45 +108,65 @@ function handleMenuClick(key: string) {
85108 :width =" 240"
86109 class =" hidden rounded md:block [& >.arco-layout-sider-children]:rounded"
87110 >
88- <AMenu
89- :selected-keys =" path"
90- :default-open-keys =" ['system', 'software']"
91- class =" h-full select-none [& >.arco-menu-inner]:p-2 [& _.arco-menu-icon>i]:inline-block"
92- >
93- <ASubMenu key =" system" >
94- <template #icon >
95- <Icon name =" icons:system" />
96- </template >
97- <template #title >{{ t('label.system') }}</template >
98- <AMenuItem key =" windows" @click =" handleMenuClick('windows')" >
111+ <div class =" flex h-full flex-col" >
112+ <AMenu
113+ :selected-keys =" path"
114+ :default-open-keys =" ['system', 'software']"
115+ class =" flex-1 select-none [& >.arco-menu-inner]:p-2 [& _.arco-menu-icon>i]:inline-block"
116+ >
117+ <ASubMenu key =" system" >
99118 <template #icon >
100- <Icon name =" icons:windows " />
119+ <Icon name =" icons:system " />
101120 </template >
102- <span >Windows</ span >
103- </ AMenuItem >
104- < AMenuItem
105- key = " windows-server "
106- @click = " handleMenuClick('windows-server') "
107- >
108- <template # icon >
109- < Icon name = " icons:windows-server " />
110- </ template >
111- < span >Windows Server</ span >
112- </ AMenuItem >
113- </ ASubMenu >
114- < ASubMenu key = " software " >
115- < template # icon >
116- < Icon name = " icons:software " / >
117- </ template >
118- <template # title >{{ t('label.software') }}</ template >
119- <AMenuItem key =" office " @click = " handleMenuClick('office') " >
121+ <template # title >{{ t('label.system') }}</ template >
122+ < AMenuItem key = " windows " @click = " handleMenuClick('windows') " >
123+ < template # icon >
124+ < Icon name = " icons: windows" />
125+ </ template >
126+ < span >Windows</ span >
127+ </ AMenuItem >
128+ < AMenuItem
129+ key = " windows-server "
130+ @click = " handleMenuClick('windows-server') "
131+ >
132+ < template # icon >
133+ < Icon name = " icons:windows-server " / >
134+ </ template >
135+ < span >Windows Server</ span >
136+ </ AMenuItem >
137+ </ ASubMenu >
138+ <ASubMenu key =" software " >
120139 <template #icon >
121- <Icon name =" icons:office " />
140+ <Icon name =" icons:software " />
122141 </template >
123- <span >Office</span >
124- </AMenuItem >
125- </ASubMenu >
126- </AMenu >
142+ <template #title >{{ t('label.software') }}</template >
143+ <AMenuItem key =" office" @click =" handleMenuClick('office')" >
144+ <template #icon >
145+ <Icon name =" icons:office" />
146+ </template >
147+ <span >Office</span >
148+ </AMenuItem >
149+ </ASubMenu >
150+ </AMenu >
151+
152+ <div class =" p-2 pt-0" >
153+ <div
154+ class =" hover:bg-[var(--color-fill-2)]/50 group relative flex rounded-lg bg-[var(--color-bg-2)] p-2 ring-1 ring-[var(--color-border)] transition"
155+ >
156+ <button
157+ type =" button"
158+ class =" flex w-full flex-col items-start gap-y-2 text-left"
159+ @click =" handleRainyunAdClick"
160+ >
161+ <img
162+ src =" /images/rainyun_1.png"
163+ alt =" RainYun"
164+ class =" h-auto w-full rounded-md object-cover"
165+ />
166+ </button >
167+ </div >
168+ </div >
169+ </div >
127170 </ALayoutSider >
128171 <ALayoutContent class =" hidden flex-col gap-4 md:flex" >
129172 <NuxtPage />
0 commit comments