-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.html
More file actions
52 lines (48 loc) · 2.13 KB
/
Copy pathIndex.html
File metadata and controls
52 lines (48 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cloudflare Pagesテスト用</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'Inter',sans-serif;background:#f8f9fa;color:#333;line-height:1.6;display:flex;flex-direction:column;min-height:100vh;}
header{background:linear-gradient(135deg,#4f46e5,#3b82f6);color:#fff;padding:3rem 2rem;text-align:center;}
header h1{font-size:2.5rem;}
header p{font-size:1.2rem;opacity:0.9;}
main{flex:1;padding:2rem;max-width:960px;margin:auto;}
.section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 8px 16px rgba(0,0,0,0.05);margin-bottom:2rem;transition:transform 0.3s;}
.section:hover{transform:translateY(-4px);}
.cta-button{display:inline-block;margin-top:1rem;background:#4f46e5;color:#fff;padding:0.75rem 1.5rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:background 0.3s;}
.cta-button:hover{background:#3730a3;}
footer{text-align:center;font-size:0.9rem;padding:1rem;color:#888;}
</style>
</head>
<body>
<header>
<h1>Cloudflare Pagesテスト</h1>
<p>これはCloudflare Pagesの紹介で使用するサンプルサイトです</p>
</header>
<main>
<section class="section">
<h2>このページについて</h2>
<p>
このサイトはHTML/CSS/JavaScriptだけで構成されており、Cloudflare Pagesで無料でホスティングされています。
</p>
<button class="cta-button" id="alertBtn">もっと知る</button>
</section>
<section class="section">
<h2>使い方</h2>
<ol>
<li>このファイルをGitHubにpush</li>
<li>Cloudflare Pagesに接続</li>
<li>数秒でサイトが公開されます</li>
</ol>
</section>
</main>
<script>
document.getElementById('alertBtn').addEventListener('click', () => {alert('参考になったら「いいね」をお願いします!');});
</script>
</body>
</html>