Skip to content

Commit 77a4de8

Browse files
committed
Update UI
1 parent 5801520 commit 77a4de8

3 files changed

Lines changed: 27 additions & 6 deletions

File tree

src/css/home.styl

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@require './common.styl'
2+
23
.container
34
display flex
45
flex-wrap wrap
@@ -38,7 +39,7 @@ ul
3839
vertical-align middle
3940
margin 0 8px 8px 0
4041
img
41-
max-height 32px
42+
max-height 40px
4243
height auto
4344

4445
.langs
@@ -78,8 +79,8 @@ ul
7879

7980
.download-btn
8081
display inline-block
81-
background #fff
82-
color #333
82+
background linear-gradient(45deg, #007bff 0%, #28a745 100%)
83+
color #fff
8384
text-decoration none
8485
padding 15px 30px
8586
border 2px solid #333
@@ -91,7 +92,7 @@ ul
9192
&:hover
9293
background #333
9394
color #fff
94-
95+
9596
.btn-content
9697
display block
9798
text-align center
@@ -109,6 +110,26 @@ ul
109110
font-size 0.9em
110111
color #666
111112

113+
// Morph animation styles for download button
114+
.morph-shape
115+
background linear-gradient(45deg, #007bff 0%, #28a745 100%)
116+
animation morph 8s ease-in-out infinite
117+
border-radius 60% 40% 30% 70% / 60% 30% 70% 40%
118+
transition all 1s ease-in-out
119+
z-index 5
120+
position relative
121+
122+
@keyframes morph
123+
0%
124+
border-radius 60% 40% 30% 70% / 60% 30% 70% 40%
125+
background linear-gradient(45deg, #007bff 0%, #28a745 100%)
126+
50%
127+
border-radius 30% 60% 70% 40% / 50% 60% 30% 60%
128+
background linear-gradient(45deg, #6c757d 0%, #28a745 100%)
129+
100%
130+
border-radius 60% 40% 30% 70% / 60% 30% 70% 40%
131+
background linear-gradient(45deg, #007bff 0%, #28a745 100%)
132+
112133
.download-options
113134
.download-tabs
114135
.tab-buttons

src/views/parts/download.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109

110110
// Update when page loads
111111
document.addEventListener('DOMContentLoaded', updateDownloadButton);
112-
112+
113113
.download-button-container
114114
a#primary-download-btn.download-btn.primary(href="#" style="display:none")
115115
.btn-content

src/views/parts/title.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
h1
1+
h1.morph-shape
22
span.hide electerm
33
img(src='https://electerm.html5beta.com/electerm.png', alt='electerm')
44
.pd2y

0 commit comments

Comments
 (0)