|
2 | 2 |
|
3 | 3 | $backgroundColor: #232323;
|
4 | 4 |
|
5 |
| -.root { |
| 5 | +.root, |
| 6 | +.fiberBanner { |
6 | 7 | width: 100%;
|
7 |
| - background-color: $backgroundColor; |
8 | 8 | height: 200px;
|
9 | 9 | position: relative;
|
10 |
| - background-image: url('./ckb_explorer_banner.svg'); |
11 | 10 | background-repeat: no-repeat;
|
12 | 11 | background-position: center center;
|
13 | 12 | background-size: auto 100%;
|
14 | 13 | color: white;
|
15 | 14 | display: flex;
|
16 | 15 | align-items: center;
|
17 | 16 | justify-content: center;
|
| 17 | +} |
| 18 | + |
| 19 | +.root { |
| 20 | + background-color: $backgroundColor; |
| 21 | + background-image: url('./ckb_explorer_banner.svg'); |
18 | 22 |
|
19 | 23 | @media (width <= $mobileBreakPoint) {
|
20 | 24 | background-image: url('./ckb_explorer_banner_phone.svg');
|
21 | 25 | }
|
22 | 26 | }
|
23 | 27 |
|
| 28 | +.fiberBanner { |
| 29 | + --m: 1rem; |
| 30 | + --red: #ff6565; |
| 31 | + --pink: #ff64f9; |
| 32 | + --purple: #6b5fff; |
| 33 | + --blue: #4d8aff; |
| 34 | + --green: #5bff89; |
| 35 | + --yellow: #fe5; |
| 36 | + --orange: #ff6d1b; |
| 37 | + |
| 38 | + position: relative; |
| 39 | + background-color: black; |
| 40 | + background-image: url('./fiber_network.gif'); |
| 41 | + display: flex; |
| 42 | + flex-direction: column; |
| 43 | + justify-content: center; |
| 44 | + align-items: center; |
| 45 | + |
| 46 | + .slogan { |
| 47 | + display: flex; |
| 48 | + flex-direction: column; |
| 49 | + |
| 50 | + h1, |
| 51 | + h3 { |
| 52 | + line-height: 1; |
| 53 | + color: #f3f3f3; |
| 54 | + text-align: center; |
| 55 | + } |
| 56 | + |
| 57 | + h3 { |
| 58 | + opacity: 0.8; |
| 59 | + font-weight: 300; |
| 60 | + } |
| 61 | + |
| 62 | + margin-bottom: 20px; |
| 63 | + } |
| 64 | + |
| 65 | + a { |
| 66 | + position: relative; |
| 67 | + color: #f3f3f3; |
| 68 | + font-size: var(--m); |
| 69 | + display: flex; |
| 70 | + justify-content: center; |
| 71 | + cursor: pointer; |
| 72 | + } |
| 73 | + |
| 74 | + span { |
| 75 | + box-sizing: border-box; |
| 76 | + border: calc(0.08 * var(--m)) solid transparent; |
| 77 | + border-radius: calc(0.7 * var(--m)); |
| 78 | + padding: calc(0.5 * var(--m)) calc(1 * var(--m)); |
| 79 | + background: linear-gradient(#121213, #121213), |
| 80 | + linear-gradient(#121213 50%, rgb(18 18 19 / 60%) 80%, rgb(18 18 19 / 0%)), |
| 81 | + linear-gradient( |
| 82 | + 90deg, |
| 83 | + var(--orange), |
| 84 | + var(--yellow), |
| 85 | + var(--green), |
| 86 | + var(--blue), |
| 87 | + var(--purple), |
| 88 | + var(--pink), |
| 89 | + var(--red) |
| 90 | + ); |
| 91 | + background-origin: border-box; |
| 92 | + background-clip: padding-box, border-box, border-box; |
| 93 | + background-size: 200%; |
| 94 | + animation: animate 8s infinite linear; |
| 95 | + transition-duration: 0.3s; |
| 96 | + z-index: 1; |
| 97 | + } |
| 98 | + |
| 99 | + .links { |
| 100 | + display: flex; |
| 101 | + gap: 80px; |
| 102 | + } |
| 103 | + |
| 104 | + a::before { |
| 105 | + content: ''; |
| 106 | + background: linear-gradient( |
| 107 | + 90deg, |
| 108 | + var(--orange), |
| 109 | + var(--yellow), |
| 110 | + var(--green), |
| 111 | + var(--blue), |
| 112 | + var(--purple), |
| 113 | + var(--pink), |
| 114 | + var(--red) |
| 115 | + ); |
| 116 | + height: 30%; |
| 117 | + width: 90%; |
| 118 | + position: absolute; |
| 119 | + bottom: 0; |
| 120 | + background-size: 200%; |
| 121 | + animation: animate 8s infinite linear; |
| 122 | + filter: blur(calc(0.8 * var(--m))); |
| 123 | + } |
| 124 | + |
| 125 | + a:hover span { |
| 126 | + border: calc(0.08 * var(--m)) solid transparent; |
| 127 | + transform: perspective(1000px) translateZ(50px); |
| 128 | + transform-style: preserve-3d; |
| 129 | + } |
| 130 | + |
| 131 | + a:hover::before { |
| 132 | + height: 100%; |
| 133 | + width: 120%; |
| 134 | + filter: blur(calc(1.5 * var(--m))); |
| 135 | + opacity: 0.8; |
| 136 | + } |
| 137 | + |
| 138 | + a[aria-disabled] { |
| 139 | + /* pointer-events: none; */ |
| 140 | + cursor: not-allowed; |
| 141 | + |
| 142 | + span { |
| 143 | + background: #aaa; |
| 144 | + color: #ccc; |
| 145 | + border: none; |
| 146 | + } |
| 147 | + |
| 148 | + &::before { |
| 149 | + display: none; |
| 150 | + } |
| 151 | + |
| 152 | + &:hover span { |
| 153 | + transform: none; |
| 154 | + } |
| 155 | + |
| 156 | + /* opacity: 0.6; */ |
| 157 | + } |
| 158 | + |
| 159 | + @keyframes animate { |
| 160 | + 0% { |
| 161 | + background-position: 0; |
| 162 | + } |
| 163 | + |
| 164 | + 100% { |
| 165 | + background-position: 200%; |
| 166 | + } |
| 167 | + } |
| 168 | + |
| 169 | + @media (width <= 640px) { |
| 170 | + background-image: url('./fiber_network_640.gif'); |
| 171 | + height: 150px; |
| 172 | + font-size: 0.6rem; |
| 173 | + |
| 174 | + .slogan { |
| 175 | + margin-bottom: 10px; |
| 176 | + } |
| 177 | + |
| 178 | + .links { |
| 179 | + gap: 16px; |
| 180 | + } |
| 181 | + |
| 182 | + --m: 0.6rem; |
| 183 | + } |
| 184 | +} |
| 185 | + |
24 | 186 | .halvingBannerSuccess {
|
25 | 187 | background-size: cover;
|
26 | 188 | background-position: center;
|
|
0 commit comments