-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (111 loc) · 3.74 KB
/
index.html
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tarot Reading</title>
<style>
body {
background: url('https://minio.ol.deepwisdomai.com/test/tarot/tarot-通用-背景.png') no-repeat center center fixed;
background-size: cover;
font-family: Arial, sans-serif;
color: white;
text-align: center;
}
.header {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 10px;
}
.header img {
height: 50px;
margin-left: 10px;
}
.main-content {
margin-top: 50px;
}
.main-content img {
width: 300px;
margin-bottom: 20px;
}
.buttons-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 20px;
}
.button {
background-color: #444;
color: white;
border: none;
border-radius: 5px;
padding: 10px 20px;
margin: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.button:hover {
background-color: #666;
}
.button.selected {
background-color: #888;
}
.start-button {
background-color: #ff6347;
color: white;
border: none;
border-radius: 5px;
padding: 15px 30px;
margin-top: 20px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s;
}
.start-button:hover {
background-color: #ff4500;
}
</style>
</head>
<body>
<div class="header">
<span>Made by</span>
<img src="https://minio.ol.deepwisdomai.com/test/tarot/MetaGPTX-LOGO.png" alt="MetaGPT X Logo">
</div>
<div class="main-content">
<img src="https://minio.ol.deepwisdomai.com/test/tarot/tarot-1-选占卜方向-塔罗牌插画.png" alt="Tarot Illustration">
<h1>Ask the Tarot</h1>
<h2>Give you hints for the future</h2>
<div class="buttons-container">
<button class="button" data-theme="Love">Love</button>
<button class="button" data-theme="Relationships">Relationships</button>
<button class="button" data-theme="Career">Career</button>
<button class="button" data-theme="Fortune">Fortune</button>
<button class="button" data-theme="Security">Security</button>
<button class="button" data-theme="Personal Growth">Personal Growth</button>
<button class="button" data-theme="Legal Matters">Legal Matters</button>
<button class="button" data-theme="Health">Health</button>
</div>
<button class="start-button" onclick="startReading()">Start</button>
</div>
<script>
let selectedTheme = null;
function selectTheme(event) {
const buttons = document.querySelectorAll('.button');
buttons.forEach(button => button.classList.remove('selected'));
event.target.classList.add('selected');
selectedTheme = event.target.getAttribute('data-theme');
}
function startReading() {
if (selectedTheme) {
window.location.href = 'draw.html';
} else {
alert('Please select a theme before starting.');
}
}
document.querySelectorAll('.button').forEach(button => {
button.addEventListener('click', selectTheme);
});
</script>
</body>
</html>