전화 바로 걸기 코드
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>전화 바로걸기 버튼</title>
<style>
.call-button {
/* 버튼 스타일 */
display: inline-block;
padding: 15px 30px;
font-size: 18px;
font-weight: bold;
color: #ffffff;
background-color: #4CAF50; /* 초록색 */
border: none;
border-radius: 8px;
text-align: center;
text-decoration: none; /* 밑줄 제거 */
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s, transform 0.1s;
}
.call-button:hover {
/* 마우스 오버 시 색상 변경 */
background-color: #45a049;
}
.call-button:active {
/* 클릭 시 약간 눌리는 효과 */
transform: translateY(1px);
}
</style>
</head>
<body>
<a href="tel:01012345678" class="call-button">
☎️ 바로 전화 걸기 (010-1234-5678)
</a>
</body>
</html>