버튼 3x3 그라데이션
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Aurora Link Buttons</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background-color: #050505;
font-family: 'Pretendard', sans-serif;
padding: 10px;
box-sizing: border-box;
}
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
width: 100%;
max-width: 500px;
}
.aurora-btn {
position: relative;
width: 100%;
aspect-ratio: 1 / 1;
border: none;
border-radius: 20px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
background: #111;
}
/* 행별 색상 (수정 불필요) */
.aurora-btn:nth-child(-n+3) { --color1: #ff00cc; --color2: #7000ff; --color3: #ff0055; }
.aurora-btn:nth-child(n+4):nth-child(-n+6) { --color1: #00ffcc; --color2: #0066ff; --color3: #00ffff; }
.aurora-btn:nth-child(n+7):nth-child(-n+9) { --color1: #ccff00; --color2: #00ff66; --color3: #ffcc00; }
.aurora-btn::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(125deg, var(--color1), var(--color2), var(--color3), var(--color1));
background-size: 300% 300%;
animation: aurora-flow 5s linear infinite;
opacity: 0.9;
}
.aurora-btn::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.25) 100%);
border: 1.5px solid rgba(255,255,255,0.2);
border-radius: 20px;
}
.btn-text {
position: relative;
z-index: 10;
color: #fff;
font-size: clamp(0.95rem, 4.5vw, 1.3rem);
font-weight: 900;
text-align: center;
/* 글자 테두리 강조 (눈에 확 띔) */
text-shadow:
-2px -2px 0 #000, 2px -2px 0 #000,
-2px 2px 0 #000, 2px 2px 0 #000,
0px 4px 8px rgba(0,0,0,0.8);
}
@keyframes aurora-flow {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.aurora-btn:active { transform: scale(0.92); }
</style>
</head>
<body>
<div class="grid-container">
<a href="1번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 1</span></a>
<a href="2번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 2</span></a>
<a href="3번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 3</span></a>
<a href="4번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 4</span></a>
<a href="5번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 5</span></a>
<a href="6번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 6</span></a>
<a href="7번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 7</span></a>
<a href="8번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 8</span></a>
<a href="9번_주소_입력" class="aurora-btn"><span class="btn-text">텍스트 9</span></a>
</div>
</body>
</html>