본문 바로가기

워드프레스

단일페이지를 만들어 도메인을 연결하기

*본 글은 Gemini를 활용하여 작성하였습니다.

*'단일페이지' 기능은 서버나 호스팅 없이, 특정 도메인 주소에 접속했을 때 보여줄 간단한 공지나 페이지를 한 페이지로 보여주는 기능을 말한다. 그러면 Gemini를 이용해 안내 페이지를 하나 만들어 보자.

(1) 다음과 같은 단일 페이지용 HTML 코드를 작성한다. 여기서 블로그 주소와 이메일 주소를 수정한다.

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>환영합니다</title>
<style>
body { font-family: 'Apple SD Gothic Neo', sans-serif; background-color: #f5f7fa; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; color: #333; }
.container { text-align: center; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); width: 90%; max-width: 400px; }
h1 { font-size: 24px; margin-bottom: 10px; color: #2d3436; }
p { font-size: 16px; color: #636e72; line-height: 1.6; margin-bottom: 30px; }
.links a { display: block; text-decoration: none; background: #0984e3; color: white; padding: 12px; border-radius: 10px; margin-bottom: 10px; transition: 0.3s; font-weight: bold; }
.links a:hover { background: #74b9ff; transform: translateY(-2px); }
.footer { font-size: 12px; color: #b2bec3; margin-top: 20px; }
</style>
</head>
<body>
<div class="container">
<h1>홈페이지 준비 중입니다</h1>
<p>현재 새로운 모습으로 단장하고 있습니다.<br>궁금한 점은 아래로 문의해 주세요.</p>

<div class="links">
<a href="mailto:이메일@주소.com">이메일 보내기</a>
</div>
<div class="footer">
© 2024 My Domain. All rights reserved.
</div>
</div>
</body>
</html>

(2) '내도메인.한국' 홈페이지를 방문한다.

위치 : https://xn--220b31d95hq8o.xn--3e0b707e/

(3) '단일페이지'에 접속할 도메인 주소를 입력하고 HTML 코드를 붙여넣기 한다. 여기서는 도메인 주소를 임시로test.swkoo.p-e.kr 로 설정하였다.

(4) 웹브라우저의 주소줄에 test.swkoo.p-e.kr 를 입력하면 다음과 같은 안내 페이지가 뜨는 것을 확인할 수 있다.