-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (79 loc) · 4.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mystic Insights</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://js.stripe.com/v3/"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.0.1/model-viewer.min.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body class="bg-white text-gray-900">
<div id="app" class="min-h-screen flex flex-col">
<header class="py-6">
<nav class="container mx-auto px-4">
<h1 class="text-3xl font-light">Mystic Insights</h1>
</nav>
</header>
<main class="flex-grow container mx-auto px-4 py-12">
<div class="max-w-3xl mx-auto text-center">
<div id="avatar-container" class="w-64 h-64 mx-auto mb-8">
<model-viewer id="avatar-model"
camera-controls
auto-rotate
rotation-per-second="30deg"
shadow-intensity="1"
shadow-softness="0.5"
exposure="0.8"
alt="3D Fortune Teller Avatar"
style="width: 100%; height: 100%;">
</model-viewer>
</div>
<h2 class="text-5xl font-light mb-6">Discover Your Path</h2>
<p class="text-xl text-gray-600 mb-12">Unlock the secrets of your future with our mystical insights</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-12">
<div class="bg-gray-50 p-8 rounded-lg shadow-sm transition-transform duration-300 hover:transform hover:scale-105">
<i class="fas fa-moon text-4xl mb-4 text-indigo-600"></i>
<h3 class="text-2xl font-light mb-4">Simple Fortune</h3>
<p class="text-gray-600 mb-6">A glimpse into your destiny</p>
<p class="text-3xl font-light text-indigo-600 mb-6">2,99 PLN</p>
<button @click="selectOption('simple')" class="bg-indigo-600 text-white py-2 px-6 rounded-full hover:bg-indigo-700 transition-colors duration-300">
Choose
</button>
</div>
<div class="bg-gray-50 p-8 rounded-lg shadow-sm transition-transform duration-300 hover:transform hover:scale-105">
<i class="fas fa-tarot text-4xl mb-4 text-indigo-600"></i>
<h3 class="text-2xl font-light mb-4">Tarot Reading</h3>
<p class="text-gray-600 mb-6">Deep insights into your future</p>
<p class="text-3xl font-light text-indigo-600 mb-6">8,99 PLN</p>
<button @click="selectOption('tarot')" class="bg-indigo-600 text-white py-2 px-6 rounded-full hover:bg-indigo-700 transition-colors duration-300">
Choose
</button>
</div>
</div>
<div v-if="selectedOption" class="bg-gray-50 p-8 rounded-lg shadow-sm">
<h3 class="text-2xl font-light mb-6">{{ selectedOption === 'simple' ? 'Your Fortune' : 'Your Tarot Reading' }}</h3>
<textarea v-model="question" class="w-full p-4 mb-6 bg-white border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:border-transparent transition-shadow duration-300" rows="4" :placeholder="selectedOption === 'simple' ? 'Ask about your destiny...' : 'Ask for your tarot reading...'"></textarea>
<button @click="getFortune" class="bg-indigo-600 text-white py-3 px-8 rounded-full hover:bg-indigo-700 transition-colors duration-300">
Reveal Insights
</button>
</div>
<div v-if="fortune" class="mt-12 p-8 bg-gray-50 rounded-lg shadow-sm">
<h3 class="text-2xl font-light mb-4">Your Mystical Insights</h3>
<p v-html="fortune" class="text-lg leading-relaxed"></p>
</div>
</div>
</main>
<footer class="py-6 bg-gray-50">
<div class="container mx-auto px-4 text-center text-gray-600">
<p>© 2023 Mystic Insights. All rights reserved.</p>
</div>
</footer>
</div>
<script src="script.js"></script>
<script src="avatar.js"></script>
</body>
</html>