|
| 1 | +{{ define "apiBanner" }} |
| 2 | + <section class="api-banner position-relative w-100 d-flex flex-nowrap flex-column align-items-center my-3"> |
| 3 | + <div class="api-banner__bg-image position-absolute w-100 h-100"></div> |
| 4 | + |
| 5 | + <div class="api-banner__text-container d-flex flex-column flex-sm-row align-items-md-center"> |
| 6 | + <div class="api-banner__text"> |
| 7 | + <h1>Power Your ETH Validator Insights with Beaconcha.in APIs</h1> |
| 8 | + <p>Unlock real-time data on validators and network health. Beaconcha.in APIs are designed for everyone, from staking providers, developers and risk managers to blockchain researchers.</p> |
| 9 | + </div> |
| 10 | + <ul class="api-banner__feature-list fa-ul position-relative d-flex flex-column m-0 py-4 pr-2"> |
| 11 | + <li> |
| 12 | + <span class="fa-li"><i class="fas fa-check"></i></span> |
| 13 | + <span class="font-weight-bold">Monitor your validators' performance:</span> clear, reliable data you can trust to maximize your staking rewards and manage your risks. |
| 14 | + </li> |
| 15 | + <li> |
| 16 | + <span class="fa-li"><i class="fas fa-check"></i></span> |
| 17 | + <span class="font-weight-bold">Access consensus layer data instantly:</span> real-time updates, a consistent format, and zero setup—so you can focus on growing your business. |
| 18 | + </li> |
| 19 | + <li> |
| 20 | + <span class="fa-li"><i class="fas fa-check"></i></span> |
| 21 | + <span class="font-weight-bold">Analyze validator rewards and queues:</span> Fine-tune your staking strategy with real-time insights. |
| 22 | + </li> |
| 23 | + </ul> |
| 24 | + </div> |
| 25 | + |
| 26 | + <div class="api-banner__buttons d-flex flex-column w-100 align-items-center flex-sm-row"> |
| 27 | + <a class="btn btn-primary w-100 text-white" href="/user/settings#api"> Get API Key<i style="transform: rotate(45deg);" class="fas fa-arrow-up ml-2"></i> </a> |
| 28 | + <a href="https://beaconcha.in/api/v1/docs"> View API Docs<i style="transform: rotate(45deg);" class="fas fa-arrow-up ml-2"></i> </a> |
| 29 | + </div> |
| 30 | + </section> |
| 31 | +{{ end }} |
| 32 | + |
| 33 | + |
| 34 | +<a class="my-1" href="https://shop.beaconcha.in"><i class="fas fa-shopping-cart mr-2"></i>Swag Shop</a> |
| 35 | + |
| 36 | +{{ define "css" }} |
| 37 | + <style> |
| 38 | + .api-banner { |
| 39 | + padding: 1rem 0; |
| 40 | + gap: 1.5rem; |
| 41 | + } |
| 42 | + |
| 43 | + .api-banner__text-container { |
| 44 | + text-wrap: pretty; |
| 45 | + gap: 0.5rem; |
| 46 | + } |
| 47 | + |
| 48 | + .api-banner__buttons { |
| 49 | + gap: 1rem; |
| 50 | + } |
| 51 | + |
| 52 | + .api-banner__feature-list { |
| 53 | + gap: 0.5rem; |
| 54 | + padding-left: 3rem; |
| 55 | + height: fit-content; |
| 56 | + |
| 57 | + &::before { |
| 58 | + content: ""; |
| 59 | + position: absolute; |
| 60 | + width: 100%; |
| 61 | + height: 100%; |
| 62 | + top: 0; |
| 63 | + left: 0; |
| 64 | + z-index: -1; |
| 65 | + background-color: var(--bg-color); |
| 66 | + opacity: 0.9; |
| 67 | + border: 1px solid var(--card-border-color); |
| 68 | + border-radius: 0.5rem; |
| 69 | + } |
| 70 | + } |
| 71 | + |
| 72 | + [data-theme="dark"] .api-banner__feature-list { |
| 73 | + &::before { |
| 74 | + opacity: 0.8; |
| 75 | + } |
| 76 | + } |
| 77 | + |
| 78 | + .api-banner__bg-image { |
| 79 | + inset: 0; |
| 80 | + z-index: -1; |
| 81 | + opacity: 0.3; |
| 82 | + background: linear-gradient(to top, var(--bg-color) 0%, transparent 15%), url("img/keyvisual.webp") bottom center / cover no-repeat; |
| 83 | + } |
| 84 | + |
| 85 | + [data-theme="dark"] .api-banner__bg-image { |
| 86 | + opacity: 0.25; |
| 87 | + } |
| 88 | + |
| 89 | + @media (min-width: 640px) { |
| 90 | + .api-banner { |
| 91 | + padding: 5rem 1rem; |
| 92 | + } |
| 93 | + |
| 94 | + .api-banner__text-container { |
| 95 | + width: 100%; |
| 96 | + gap: 1.5rem; |
| 97 | + } |
| 98 | + |
| 99 | + .api-banner__buttons a { |
| 100 | + width: auto !important; |
| 101 | + } |
| 102 | + } |
| 103 | + |
| 104 | + @media (min-width: 820px) { |
| 105 | + .api-banner { |
| 106 | + padding: 6rem 2rem; |
| 107 | + } |
| 108 | + |
| 109 | + [data-theme="dark"] .api-banner__bg-image { |
| 110 | + opacity: 0.3; |
| 111 | + } |
| 112 | + |
| 113 | + .api-banner__text, |
| 114 | + .api-banner__feature-list { |
| 115 | + width: 50%; |
| 116 | + justify-content: center; |
| 117 | + } |
| 118 | + |
| 119 | + .api-banner__bg-image { |
| 120 | + opacity: 0.7; |
| 121 | + } |
| 122 | + } |
| 123 | + |
| 124 | + @media (min-width: 1140px) { |
| 125 | + .api-banner { |
| 126 | + padding: 6rem; |
| 127 | + } |
| 128 | + |
| 129 | + .api-banner__text-container { |
| 130 | + gap: 4rem; |
| 131 | + } |
| 132 | + |
| 133 | + .api-banner__bg-image { |
| 134 | + background-position: top 35% right; |
| 135 | + } |
| 136 | + } |
| 137 | + </style> |
| 138 | +{{ end }} |
0 commit comments