Skip to content

Commit 076098d

Browse files
committed
feat: enhance navbar buttons with premium design and visual effects
- Replace cheap-looking gradients with sophisticated multi-layer designs - Add GitHub button with authentic dark theme colors and subtle highlights - Create JSREI button with elegant purple-to-pink gradient - Implement advanced visual effects: * Multi-layered box shadows for depth * Inset highlights for premium glass effect * Smooth cubic-bezier transitions * Hover overlays with opacity animations - Add text shadows and icon drop shadows for better visual hierarchy - Increase padding and border radius for more modern appearance - Use authentic GitHub brand colors for better recognition The buttons now have a premium, professional appearance that matches high-end design standards and eliminates the 'cheap' aesthetic.
1 parent 36ec9ca commit 076098d

File tree

1 file changed

+72
-14
lines changed

1 file changed

+72
-14
lines changed

website/index.html

Lines changed: 72 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -709,13 +709,15 @@
709709
display: flex;
710710
align-items: center;
711711
gap: 8px;
712-
padding: 8px 16px;
713-
border-radius: 8px;
712+
padding: 10px 18px;
713+
border-radius: 12px;
714714
text-decoration: none;
715715
color: #4a5568;
716716
font-weight: 500;
717-
transition: all 0.3s ease;
717+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
718718
border: 1px solid transparent;
719+
position: relative;
720+
overflow: hidden;
719721
}
720722

721723
.navbar-link:hover {
@@ -725,33 +727,89 @@
725727
}
726728

727729
.navbar-link.github {
728-
background: linear-gradient(135deg, #24292e, #444d56);
729-
color: white;
730-
border-color: #24292e;
730+
background: linear-gradient(135deg, #0d1117 0%, #21262d 50%, #30363d 100%);
731+
color: #f0f6fc;
732+
border: 1px solid rgba(240, 246, 252, 0.1);
733+
box-shadow:
734+
0 1px 3px rgba(0, 0, 0, 0.12),
735+
0 1px 2px rgba(0, 0, 0, 0.24),
736+
inset 0 1px 0 rgba(255, 255, 255, 0.1);
737+
}
738+
739+
.navbar-link.github::before {
740+
content: '';
741+
position: absolute;
742+
top: 0;
743+
left: 0;
744+
right: 0;
745+
bottom: 0;
746+
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
747+
opacity: 0;
748+
transition: opacity 0.3s ease;
731749
}
732750

733751
.navbar-link.github:hover {
734-
background: linear-gradient(135deg, #1a1e22, #2f363d);
735-
transform: translateY(-1px);
736-
box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
752+
background: linear-gradient(135deg, #161b22 0%, #30363d 50%, #484f58 100%);
753+
transform: translateY(-2px);
754+
box-shadow:
755+
0 4px 12px rgba(0, 0, 0, 0.15),
756+
0 2px 4px rgba(0, 0, 0, 0.12),
757+
inset 0 1px 0 rgba(255, 255, 255, 0.2);
758+
border-color: rgba(240, 246, 252, 0.2);
759+
}
760+
761+
.navbar-link.github:hover::before {
762+
opacity: 1;
737763
}
738764

739765
.navbar-link.jsrei {
740-
background: linear-gradient(135deg, #4299e1, #667eea);
766+
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
741767
color: white;
742-
border-color: #4299e1;
768+
border: 1px solid rgba(255, 255, 255, 0.2);
769+
box-shadow:
770+
0 1px 3px rgba(102, 126, 234, 0.3),
771+
0 1px 2px rgba(102, 126, 234, 0.2),
772+
inset 0 1px 0 rgba(255, 255, 255, 0.2);
773+
position: relative;
774+
}
775+
776+
.navbar-link.jsrei::before {
777+
content: '';
778+
position: absolute;
779+
top: 0;
780+
left: 0;
781+
right: 0;
782+
bottom: 0;
783+
background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
784+
opacity: 0;
785+
transition: opacity 0.3s ease;
743786
}
744787

745788
.navbar-link.jsrei:hover {
746-
background: linear-gradient(135deg, #3182ce, #5a67d8);
747-
transform: translateY(-1px);
748-
box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
789+
background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #ec4899 100%);
790+
transform: translateY(-2px);
791+
box-shadow:
792+
0 4px 15px rgba(102, 126, 234, 0.4),
793+
0 2px 8px rgba(102, 126, 234, 0.3),
794+
inset 0 1px 0 rgba(255, 255, 255, 0.3);
795+
border-color: rgba(255, 255, 255, 0.3);
796+
}
797+
798+
.navbar-link.jsrei:hover::before {
799+
opacity: 1;
749800
}
750801

751802
.navbar-link svg {
752803
width: 18px;
753804
height: 18px;
754805
fill: currentColor;
806+
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
807+
}
808+
809+
.navbar-link span {
810+
font-weight: 600;
811+
letter-spacing: 0.025em;
812+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
755813
}
756814

757815
/* 为页面内容添加顶部间距 */

0 commit comments

Comments
 (0)