|
4 | 4 | left: 0; |
5 | 5 | width: 100%; |
6 | 6 | z-index: 1000; |
7 | | - padding: 0.75rem 2rem 0; |
| 7 | + padding: 0.75rem 0 0; |
8 | 8 | backdrop-filter: none; |
9 | 9 | -webkit-backdrop-filter: none; |
10 | 10 | transition: background 0.3s ease, backdrop-filter 0.3s ease; |
|
14 | 14 | -webkit-backdrop-filter: blur(12px) saturate(180%); |
15 | 15 | } |
16 | 16 | .container { |
17 | | - display: flex; |
18 | | - justify-content: space-between; |
| 17 | + display: grid; |
| 18 | + grid-template-columns: 1fr auto 1fr; |
19 | 19 | align-items: center; |
20 | | - max-width: 1200px; |
21 | | - margin: 0 auto; |
| 20 | + width: 100%; |
| 21 | + max-width: none; |
| 22 | + padding: 0 40px; |
| 23 | + box-sizing: border-box; |
| 24 | + } |
| 25 | + .action-button { |
| 26 | + display: flex; |
| 27 | + gap: 20px; |
| 28 | + justify-content: flex-start; // Keeps these on the far left |
22 | 29 | } |
23 | 30 |
|
24 | 31 | .logo { |
25 | 32 | display: flex; |
26 | | - align-items: center; |
| 33 | + justify-content: center; // Forces logo to the exact center of its column |
| 34 | + grid-column: 2; |
27 | 35 |
|
28 | 36 | .logo-img { |
29 | 37 | height: 40px; |
30 | 38 | width: auto; |
31 | 39 | } |
32 | 40 | } |
33 | | - |
34 | | - .main-nav ul { |
35 | | - display: flex; |
36 | | - list-style: none; |
37 | | - gap: 2rem; |
38 | | - margin: 0; |
39 | | - padding: .875rem 1.5rem; |
40 | | - border-radius: .75rem; |
41 | | - height: 20px; |
42 | | - align-items: center; // Ensures text is centered vertically |
43 | | - box-shadow: inset 0 1px 1px #00b399, inset 0 -1px 1px #00b39f; |
44 | | - background-color: #050505; // Dark background to make Keppel pop |
45 | | - position: relative; |
46 | | - overflow: hidden; |
47 | | - |
48 | | - .nav-link { |
49 | | - position: relative; |
50 | | - display: flex; |
51 | | - align-items: center; |
52 | | - justify-content: center; |
53 | | - height: 100%; |
54 | | - |
55 | | - a { |
56 | | - color: #ffffff; |
57 | | - text-decoration: none; |
58 | | - font-size: 0.95rem; |
59 | | - transition: color 0.3s ease; |
60 | | - position: relative; |
61 | | - overflow: hidden; |
62 | | - } |
63 | | - |
64 | | - // The Keppel Bloom Effect |
65 | | - &::after { |
66 | | - content: ""; |
67 | | - position: absolute; |
68 | | - bottom: -40px; // Start below the link |
69 | | - left: 50%; |
70 | | - transform: translateX(-50%); |
71 | | - width: 110px; // Slightly wider than the text |
72 | | - height: 40px; |
73 | | - background: radial-gradient( |
74 | | - ellipse at center, |
75 | | - rgba(255, 255, 255, 0.8) 0%, |
76 | | - rgba(58, 176, 158, 0.6) 40%, |
77 | | - transparent 75% |
78 | | - ); |
79 | | - filter: blur(6px); |
80 | | - opacity: 0; |
81 | | - transition: opacity 0.3s ease, bottom 0.3s ease; |
82 | | - pointer-events: none; |
83 | | - } |
84 | | - |
85 | | - // Trigger effect on hover |
86 | | - &:hover { |
87 | | - a { |
88 | | - color: #5CE6D1; // Brighter Keppel for the text |
89 | | - } |
90 | | - &::after { |
91 | | - opacity: 1; |
92 | | - bottom: -38px; // Move up into the frame |
93 | | - } |
94 | | - } |
95 | | - } |
96 | 41 | } |
97 | 42 |
|
98 | | - |
| 43 | +.nav-button-wrapper { |
| 44 | + display: flex; |
| 45 | + justify-content: flex-end; // Keeps this on the far right |
| 46 | + grid-column: 3; |
99 | 47 | } |
100 | 48 |
|
101 | 49 | .button { |
|
146 | 94 | bottom: -28px; /* Moves the light up into view */ |
147 | 95 | } |
148 | 96 |
|
| 97 | +.secondary-button { |
| 98 | + color: white; |
| 99 | + text-transform: capitalize; |
| 100 | + font-size: 0.8rem; |
| 101 | + border-radius: .75rem; |
| 102 | + flex-flow: row; |
| 103 | + flex: none; |
| 104 | + justify-content: center; |
| 105 | + align-items: center; |
| 106 | + height: 10px; |
| 107 | + margin-bottom: 0; |
| 108 | + padding: .75rem 0.75rem; |
| 109 | + text-decoration: none; |
| 110 | + display: flex; |
| 111 | + position: relative; |
| 112 | + overflow: hidden; |
| 113 | + box-shadow: inset 0 1px 1px #00b399, inset 0 -1px 1px #ffffff; |
| 114 | + transition: box-shadow 0.3s ease; |
| 115 | + } |
| 116 | +.secondary-button::after { |
| 117 | + content: ""; |
| 118 | + position: absolute; |
| 119 | + bottom: -25px; /* Start below the secondary-button */ |
| 120 | + left: 50%; |
| 121 | + transform: translateX(-50%); |
| 122 | + width: 120%; /* Wide flare */ |
| 123 | + height: 40px; |
| 124 | + /* Keppel Gradient: White core to Keppel outer */ |
| 125 | + background: radial-gradient( |
| 126 | + ellipse at center, |
| 127 | + #ffffff 0%, |
| 128 | + #3AB09E 35%, |
| 129 | + rgba(58, 176, 158, 0) 70% |
| 130 | + ); |
| 131 | + filter: blur(8px); |
| 132 | + opacity: 0; |
| 133 | + transition: opacity 0.4s ease, bottom 0.4s ease; |
| 134 | + pointer-events: none; |
| 135 | +} |
| 136 | + |
| 137 | +/* Trigger on Hover */ |
| 138 | +.secondary-button:hover::after { |
| 139 | + opacity: 1; |
| 140 | + bottom: -28px; /* Moves the light up into view */ |
| 141 | +} |
0 commit comments