|
| 1 | +body { |
| 2 | + font-family: Arial, sans-serif; |
| 3 | + display: flex; |
| 4 | + justify-content: center; |
| 5 | + align-items: center; |
| 6 | + height: 100vh; |
| 7 | + margin: 0; |
| 8 | + background-image: url("https://cdn.ironman.my.id/i/2iceb4.jpeg"); |
| 9 | + background-size: cover; |
| 10 | + background-position: center; |
| 11 | +} |
| 12 | + |
| 13 | +.card { |
| 14 | + padding: 20px; |
| 15 | + border-radius: 6px; |
| 16 | + backdrop-filter: blur(4px); |
| 17 | + background: rgba(255, 255, 255, 0.2); |
| 18 | + box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); |
| 19 | + width: 300px; |
| 20 | + text-align: center; |
| 21 | + display: flex; |
| 22 | + flex-direction: column; |
| 23 | + align-items: center; |
| 24 | + justify-content: center; |
| 25 | +} |
| 26 | + |
| 27 | +input { |
| 28 | + width: 80%; |
| 29 | + padding: 10px; |
| 30 | + margin-bottom: 10px; |
| 31 | + border: 1px solid #ccc; |
| 32 | + border-radius: 5px; |
| 33 | + background-color: rgba(255, 255, 255, 0.5); |
| 34 | + text-align: center; |
| 35 | +} |
| 36 | + |
| 37 | +a { |
| 38 | + position: relative; |
| 39 | + display: inline-block; |
| 40 | + padding: 15px 35px; |
| 41 | + margin: 6px 0; |
| 42 | + color: #fff; |
| 43 | + text-decoration: none; |
| 44 | + text-transform: uppercase; |
| 45 | + transition: 0.5s; |
| 46 | + letter-spacing: 4px; |
| 47 | + overflow: hidden; |
| 48 | + margin-right: 50px; |
| 49 | + margin-left: 50px; |
| 50 | +} |
| 51 | + |
| 52 | +a:hover { |
| 53 | + background: #03e9f4; |
| 54 | + color: #050801; |
| 55 | + box-shadow: |
| 56 | + 0 0 5px #03e9f4, |
| 57 | + 0 0 25px #03e9f4, |
| 58 | + 0 0 50px #03e9f4, |
| 59 | + 0 0 200px #03e9f4; |
| 60 | + -webkit-box-reflect: below 1px linear-gradient(transparent, #0005); |
| 61 | +} |
| 62 | + |
| 63 | +a span { |
| 64 | + position: absolute; |
| 65 | + display: block; |
| 66 | +} |
| 67 | + |
| 68 | +a span:nth-child(1) { |
| 69 | + top: 0; |
| 70 | + left: 0; |
| 71 | + width: 100%; |
| 72 | + height: 8px; |
| 73 | + background: linear-gradient(90deg, transparent, #03e9f4); |
| 74 | + animation: animate1 2s linear infinite; |
| 75 | +} |
| 76 | + |
| 77 | +@keyframes animate1 { |
| 78 | + 0% { |
| 79 | + left: -100%; |
| 80 | + } |
| 81 | + |
| 82 | + 50%, |
| 83 | + 100% { |
| 84 | + left: 100%; |
| 85 | + } |
| 86 | +} |
| 87 | + |
| 88 | +a span:nth-child(2) { |
| 89 | + top: -100%; |
| 90 | + right: 0; |
| 91 | + width: 2px; |
| 92 | + height: 100%; |
| 93 | + background: linear-gradient(180deg, transparent, #03e9f4); |
| 94 | + animation: animate2 1s linear infinite; |
| 95 | + animation-delay: 0.25s; |
| 96 | +} |
| 97 | + |
| 98 | +@keyframes animate2 { |
| 99 | + 0% { |
| 100 | + top: -100%; |
| 101 | + } |
| 102 | + |
| 103 | + 50%, |
| 104 | + 100% { |
| 105 | + top: 100%; |
| 106 | + } |
| 107 | +} |
| 108 | + |
| 109 | +a span:nth-child(3) { |
| 110 | + bottom: 0; |
| 111 | + right: 0; |
| 112 | + width: 100%; |
| 113 | + height: 2px; |
| 114 | + background: linear-gradient(270deg, transparent, #03e9f4); |
| 115 | + animation: animate3 1s linear infinite; |
| 116 | + animation-delay: 0.5s; |
| 117 | +} |
| 118 | + |
| 119 | +@keyframes animate3 { |
| 120 | + 0% { |
| 121 | + right: -100%; |
| 122 | + } |
| 123 | + |
| 124 | + 50%, |
| 125 | + 100% { |
| 126 | + right: 100%; |
| 127 | + } |
| 128 | +} |
| 129 | + |
| 130 | +a span:nth-child(4) { |
| 131 | + bottom: -100%; |
| 132 | + left: 0; |
| 133 | + width: 2px; |
| 134 | + height: 100%; |
| 135 | + background: linear-gradient(360deg, transparent, #03e9f4); |
| 136 | + animation: animate4 1s linear infinite; |
| 137 | + animation-delay: 0.75s; |
| 138 | +} |
| 139 | + |
| 140 | +@keyframes animate4 { |
| 141 | + 0% { |
| 142 | + bottom: -100%; |
| 143 | + } |
| 144 | + |
| 145 | + 50%, |
| 146 | + 100% { |
| 147 | + bottom: 100%; |
| 148 | + } |
| 149 | +} |
| 150 | + |
| 151 | +#output { |
| 152 | + margin-top: 20px; |
| 153 | + color: white; |
| 154 | +} |
| 155 | + |
| 156 | +#phone { |
| 157 | + color: black; |
| 158 | +} |
| 159 | + |
| 160 | +.copy-btn { |
| 161 | + margin-top: 10px; |
| 162 | + padding: 5px 10px; |
| 163 | + background-color: #28a745; |
| 164 | + color: white; |
| 165 | + border: none; |
| 166 | + cursor: pointer; |
| 167 | + border-radius: 5px; |
| 168 | +} |
| 169 | + |
| 170 | +.copy-confirm { |
| 171 | + margin-top: 10px; |
| 172 | + color: #28a745; |
| 173 | +} |
0 commit comments