Skip to content

Commit ce0b7fa

Browse files
committed
UI update
1 parent 40aa294 commit ce0b7fa

3 files changed

Lines changed: 556 additions & 53 deletions

File tree

bin/data.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,34 @@ function createReleaseData () {
8282
!cname.includes('.appx') &&
8383
!cname.includes('loose')
8484
) {
85+
// Add descriptions for Windows files
86+
if (cname.includes('installer') && cname.endsWith('.exe')) {
87+
nr.desc = 'Windows installer (recommended)'
88+
} else if (cname.endsWith('.exe') && !cname.includes('installer')) {
89+
nr.desc = 'Portable executable'
90+
} else if (cname.endsWith('.zip')) {
91+
nr.desc = 'Portable zip archive'
92+
} else if (cname.endsWith('.msi')) {
93+
nr.desc = 'Windows installer package'
94+
} else if (cname.includes('portable') && cname.endsWith('.tar.gz')) {
95+
nr.desc = 'Portable archive'
96+
} else if (cname.includes('win7')) {
97+
nr.desc = 'Legacy Windows 7 compatible'
98+
} else if (cname.endsWith('.tar.gz')) {
99+
nr.desc = 'Just extract and run'
100+
}
85101
prev.windows.releaseNote = releaseNote
86102
prev.windows.releaseDate = dt
87103
prev.windows.items.push(nr)
88104
} else if (cname.endsWith('.dmg')) {
105+
// Add descriptions for macOS files
106+
if (cname.includes('arm64') || cname.includes('apple-silicon')) {
107+
nr.desc = 'for Apple Silicon Macs (M1/M2/M3)'
108+
} else if (cname.includes('x64') || cname.includes('intel')) {
109+
nr.desc = 'for Intel Macs'
110+
} else {
111+
nr.desc = 'macOS disk image'
112+
}
89113
prev.mac.releaseNote = releaseNote
90114
prev.mac.releaseDate = dt
91115
prev.mac.items.push(nr)

src/css/home.styl

Lines changed: 289 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,292 @@ ul
3636
a
3737
text-decoration none
3838
.toggle-btn
39-
text-decoration none
39+
text-decoration none
40+
41+
// New download section styles
42+
.download-main
43+
margin-bottom 40px
44+
45+
.download-hero
46+
text-align center
47+
padding 30px 20px
48+
background #f8f9fa
49+
border 1px solid #e9ecef
50+
border-radius 8px
51+
margin-bottom 30px
52+
53+
.version-info
54+
margin-bottom 25px
55+
56+
.version-number
57+
font-size 2em
58+
font-weight bold
59+
margin-bottom 8px
60+
color #333
61+
62+
.release-date
63+
font-size 1em
64+
color #666
65+
66+
.primary-download
67+
.download-button-container
68+
margin-bottom 15px
69+
70+
.download-btn
71+
display inline-block
72+
background #fff
73+
color #333
74+
text-decoration none
75+
padding 15px 30px
76+
border 2px solid #333
77+
border-radius 4px
78+
font-size 1.1em
79+
font-weight normal
80+
transition all 0.2s ease
81+
82+
&:hover
83+
background #333
84+
color #fff
85+
86+
.btn-content
87+
display block
88+
text-align center
89+
90+
.btn-text
91+
.btn-title
92+
font-size 1em
93+
margin-bottom 4px
94+
95+
.btn-subtitle
96+
font-size 0.85em
97+
opacity 0.7
98+
99+
.download-note
100+
font-size 0.9em
101+
color #666
102+
103+
.download-options
104+
.download-tabs
105+
.tab-buttons
106+
display flex
107+
justify-content center
108+
margin-bottom 20px
109+
border-bottom 2px solid #e9ecef
110+
111+
.tab-btn
112+
background none
113+
border none
114+
padding 12px 24px
115+
font-size 1em
116+
cursor pointer
117+
border-bottom 2px solid transparent
118+
transition all 0.2s ease
119+
color #666
120+
121+
&:hover
122+
background rgba(0,0,0,0.05)
123+
color #333
124+
125+
&.active
126+
border-bottom-color #333
127+
color #333
128+
font-weight bold
129+
130+
.tab-content
131+
.tab-panel
132+
display none
133+
134+
&.active
135+
display block
136+
137+
.os-downloads
138+
h3
139+
margin-bottom 20px
140+
font-size 1.3em
141+
color #333
142+
143+
.download-grid
144+
display grid
145+
gap 15px
146+
147+
.download-item
148+
display flex
149+
justify-content space-between
150+
align-items center
151+
padding 15px
152+
border 1px solid #e9ecef
153+
border-radius 8px
154+
background white
155+
transition all 0.3s ease
156+
157+
&:hover
158+
box-shadow 0 2px 10px rgba(0,0,0,0.1)
159+
160+
.download-info
161+
flex 1
162+
163+
.download-name
164+
font-weight bold
165+
margin-bottom 5px
166+
167+
.tag
168+
background #6c757d
169+
color white
170+
padding 2px 6px
171+
border-radius 3px
172+
font-size 0.8em
173+
margin-right 8px
174+
175+
.name
176+
font-size 1em
177+
178+
.download-desc
179+
color #666
180+
font-size 0.9em
181+
182+
.download-links
183+
display flex
184+
gap 10px
185+
186+
.download-link
187+
padding 6px 12px
188+
text-decoration none
189+
border-radius 3px
190+
font-size 0.85em
191+
transition all 0.2s ease
192+
border 1px solid #dee2e6
193+
194+
&.primary
195+
background #333
196+
color white
197+
border-color #333
198+
199+
&:hover
200+
background #555
201+
202+
&:not(.primary)
203+
color #666
204+
205+
&:hover
206+
background #f8f9fa
207+
border-color #999
208+
209+
.more-options
210+
text-align center
211+
212+
h3
213+
margin-bottom 15px
214+
215+
p
216+
margin-bottom 20px
217+
color #666
218+
219+
.external-links
220+
display flex
221+
flex-direction column
222+
gap 10px
223+
align-items center
224+
225+
.external-link
226+
display flex
227+
align-items center
228+
gap 10px
229+
padding 12px 20px
230+
text-decoration none
231+
color #495057
232+
border 1px solid #dee2e6
233+
border-radius 6px
234+
transition all 0.3s ease
235+
min-width 250px
236+
237+
&:hover
238+
background #f8f9fa
239+
border-color #adb5bd
240+
241+
.icon
242+
font-size 1.2em
243+
244+
.changelog-section
245+
margin-top 60px
246+
padding-top 40px
247+
border-top 2px solid #e9ecef
248+
249+
h2
250+
margin-bottom 20px
251+
252+
.changelog-content
253+
background #f8f9fa
254+
padding 20px
255+
border-radius 8px
256+
257+
.changelog-version
258+
margin-bottom 20px
259+
260+
b
261+
font-size 1.2em
262+
margin-right 15px
263+
264+
.release-date
265+
color #666
266+
267+
.changelog-notes
268+
.changelog-separator
269+
padding 10px 0
270+
color #666
271+
border-top 1px solid #dee2e6
272+
margin 10px 0
273+
274+
.changelog-item
275+
padding 5px 0
276+
line-height 1.5
277+
278+
.changelog-header
279+
padding 15px 0 5px 0
280+
font-weight bold
281+
font-size 1.1em
282+
283+
.community-section
284+
margin-top 40px
285+
text-align center
286+
287+
h2
288+
margin-bottom 20px
289+
290+
.community-content
291+
.wechat-qr
292+
max-width 200px
293+
border-radius 8px
294+
box-shadow 0 4px 15px rgba(0,0,0,0.1)
295+
margin-bottom 15px
296+
297+
p
298+
color #666
299+
font-size 0.95em
300+
301+
// Responsive design
302+
@media (max-width: 768px)
303+
.download-hero
304+
padding 25px 15px
305+
306+
.version-number
307+
font-size 1.8em
308+
309+
.download-btn
310+
padding 12px 25px
311+
font-size 1em
312+
313+
.tab-buttons
314+
flex-wrap wrap
315+
316+
.tab-btn
317+
flex 1
318+
min-width 80px
319+
320+
.download-item
321+
flex-direction column
322+
align-items flex-start
323+
gap 15px
324+
325+
.download-links
326+
width 100%
327+
justify-content space-between

0 commit comments

Comments
 (0)