KBLLR commited on
Commit
e300bff
·
verified ·
1 Parent(s): e70468a

make it more modern and detailed

Browse files
Files changed (1) hide show
  1. index.html +134 -29
index.html CHANGED
@@ -12,72 +12,177 @@
12
  body {
13
  margin: 0;
14
  overflow: hidden;
15
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 
16
  }
17
  #canvas {
18
  display: block;
19
  }
20
  .transition-all {
21
- transition: all 0.3s ease;
 
 
 
 
 
 
22
  }
23
  .character-card:hover {
24
- transform: translateY(-5px);
25
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
 
26
  }
27
  .dialog-box {
28
- background: rgba(0, 0, 0, 0.8);
29
- backdrop-filter: blur(5px);
 
 
30
  }
31
  .character-preview {
32
  width: 100%;
33
  height: 200px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  background: rgba(255, 255, 255, 0.1);
35
- border-radius: 0.5rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  }
37
  </style>
38
  </head>
39
  <body class="bg-gray-900 text-white">
40
  <!-- Welcome Screen -->
41
- <div id="welcome-screen" class="fixed inset-0 flex items-center justify-center bg-gray-900 z-50 transition-all duration-500">
42
- <div class="text-center max-w-2xl p-8 bg-gray-800 rounded-xl shadow-2xl">
43
- <h1 class="text-5xl font-bold mb-6 bg-gradient-to-r from-purple-500 to-blue-500 bg-clip-text text-transparent">3D Character World</h1>
44
- <p class="text-xl mb-8 text-gray-300">Explore a vibrant 3D world with interactive characters. Select your avatar and meet others along your journey!</p>
45
- <button id="start-btn" class="px-8 py-3 bg-gradient-to-r from-purple-600 to-blue-600 rounded-full text-white font-bold text-lg hover:from-purple-700 hover:to-blue-700 transition-all transform hover:scale-105 shadow-lg">
46
- Begin Adventure
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  </button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  </div>
49
  </div>
50
  <!-- Character Selection Screen -->
51
- <div id="character-selection" class="fixed inset-0 bg-gray-900 z-40 transition-all duration-500 opacity-0 pointer-events-none">
52
- <div class="container mx-auto px-4 py-8 h-full flex flex-col">
53
- <h2 class="text-3xl font-bold mb-8 text-center">Choose Your Character</h2>
54
- <div class="flex-1 overflow-y-auto pb-24">
55
- <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
 
 
 
 
56
  <!-- Character cards will be dynamically inserted here -->
57
  </div>
58
  </div>
59
- <div class="fixed bottom-0 left-0 right-0 bg-gray-900 border-t border-gray-700 py-4 px-4 z-50">
60
  <div class="container mx-auto text-center">
61
- <button id="confirm-character" class="px-8 py-3 bg-green-600 rounded-full text-white font-bold text-lg hover:bg-green-700 transition-all transform hover:scale-105 shadow-lg opacity-0">
62
- Confirm Selection
 
 
 
 
 
63
  </button>
64
  </div>
65
  </div>
66
  </div>
67
  </div>
68
  <!-- World Selection Screen -->
69
- <div id="world-selection" class="fixed inset-0 bg-gray-900 z-30 transition-all duration-500 opacity-0 pointer-events-none">
70
- <div class="container mx-auto px-4 py-8 h-full flex flex-col">
71
- <h2 class="text-3xl font-bold mb-8 text-center">Select 5 Characters for Your World</h2>
72
- <div class="flex-1 overflow-y-auto pb-24">
73
- <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-6">
 
 
 
 
 
 
 
 
 
74
  <!-- World character cards will be dynamically inserted here -->
75
  </div>
76
  </div>
77
- <div class="fixed bottom-0 left-0 right-0 bg-gray-900 border-t border-gray-700 py-4 px-4 z-50">
78
  <div class="container mx-auto text-center">
79
- <button id="start-world" class="px-8 py-3 bg-green-600 rounded-full text-white font-bold text-lg hover:bg-green-700 transition-all transform hover:scale-105 shadow-lg opacity-0">
80
- Generate World
 
 
 
 
 
81
  </button>
82
  </div>
83
  </div>
 
12
  body {
13
  margin: 0;
14
  overflow: hidden;
15
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
16
+ background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
17
  }
18
  #canvas {
19
  display: block;
20
  }
21
  .transition-all {
22
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
23
+ }
24
+ .character-card {
25
+ background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
26
+ backdrop-filter: blur(10px);
27
+ border: 1px solid rgba(255, 255, 255, 0.1);
28
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
29
  }
30
  .character-card:hover {
31
+ transform: translateY(-8px) scale(1.02);
32
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
33
+ border-color: rgba(139, 92, 246, 0.5);
34
  }
35
  .dialog-box {
36
+ background: rgba(15, 23, 42, 0.95);
37
+ backdrop-filter: blur(20px);
38
+ border: 1px solid rgba(255, 255, 255, 0.1);
39
+ box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
40
  }
41
  .character-preview {
42
  width: 100%;
43
  height: 200px;
44
+ background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
45
+ border-radius: 1rem;
46
+ border: 1px solid rgba(255, 255, 255, 0.1);
47
+ position: relative;
48
+ overflow: hidden;
49
+ }
50
+ .character-preview::before {
51
+ content: '';
52
+ position: absolute;
53
+ top: 0;
54
+ left: 0;
55
+ right: 0;
56
+ bottom: 0;
57
+ background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
58
+ opacity: 0;
59
+ transition: opacity 0.3s ease;
60
+ }
61
+ .character-card:hover .character-preview::before {
62
+ opacity: 1;
63
+ }
64
+ .glass-effect {
65
  background: rgba(255, 255, 255, 0.1);
66
+ backdrop-filter: blur(10px);
67
+ border: 1px solid rgba(255, 255, 255, 0.2);
68
+ }
69
+ .gradient-text {
70
+ background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
71
+ -webkit-background-clip: text;
72
+ -webkit-text-fill-color: transparent;
73
+ background-clip: text;
74
+ }
75
+ .floating-animation {
76
+ animation: float 6s ease-in-out infinite;
77
+ }
78
+ @keyframes float {
79
+ 0%, 100% { transform: translateY(0px); }
80
+ 50% { transform: translateY(-10px); }
81
+ }
82
+ .pulse-glow {
83
+ animation: pulse-glow 2s ease-in-out infinite alternate;
84
+ }
85
+ @keyframes pulse-glow {
86
+ from { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
87
+ to { box-shadow: 0 0 30px rgba(139, 92, 246, 0.8); }
88
  }
89
  </style>
90
  </head>
91
  <body class="bg-gray-900 text-white">
92
  <!-- Welcome Screen -->
93
+ <div id="welcome-screen" class="fixed inset-0 flex items-center justify-center bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900 z-50 transition-all duration-500">
94
+ <div class="absolute inset-0 overflow-hidden">
95
+ <div class="absolute -top-1/2 -left-1/2 w-full h-full bg-gradient-conic from-transparent via-purple-500/10 to-transparent animate-spin-slow"></div>
96
+ <div class="absolute -top-1/2 -right-1/2 w-full h-full bg-gradient-conic from-transparent via-blue-500/10 to-transparent animate-spin-slow" style="animation-delay: -3s;"></div>
97
+ </div>
98
+ <div class="text-center max-w-4xl p-12 glass-effect rounded-3xl shadow-2xl relative z-10 border border-white/10">
99
+ <div class="floating-animation mb-8">
100
+ <div class="w-32 h-32 mx-auto bg-gradient-to-r from-purple-500 to-blue-500 rounded-full flex items-center justify-center shadow-2xl">
101
+ <svg class="w-16 h-16 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
102
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path>
103
+ </svg>
104
+ </div>
105
+ </div>
106
+ <h1 class="text-6xl font-black mb-6 gradient-text tracking-tight">CharacterVerse</h1>
107
+ <p class="text-2xl mb-10 text-gray-200 leading-relaxed">Immerse yourself in an expansive 3D universe where every character has a story. Choose your avatar and embark on an unforgettable journey through dynamic worlds filled with interactive companions.</p>
108
+ <button id="start-btn" class="px-12 py-4 bg-gradient-to-r from-purple-600 to-blue-600 rounded-2xl text-white font-bold text-xl hover:from-purple-700 hover:to-blue-700 transition-all transform hover:scale-110 shadow-2xl pulse-glow border border-white/20">
109
+ <span class="flex items-center justify-center space-x-3">
110
+ <span>Begin Epic Journey</span>
111
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
112
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"></path>
113
+ </svg>
114
+ </span>
115
  </button>
116
+ <div class="mt-8 flex justify-center space-x-6 text-sm text-gray-400">
117
+ <div class="flex items-center space-x-2">
118
+ <div class="w-2 h-2 bg-green-500 rounded-full"></div>
119
+ <span>Real-time 3D Graphics</span>
120
+ </div>
121
+ <div class="flex items-center space-x-2">
122
+ <div class="w-2 h-2 bg-blue-500 rounded-full"></div>
123
+ <span>Interactive Characters</span>
124
+ </div>
125
+ <div class="flex items-center space-x-2">
126
+ <div class="w-2 h-2 bg-purple-500 rounded-full"></div>
127
+ <span>Dynamic Environments</span>
128
+ </div>
129
+ </div>
130
  </div>
131
  </div>
132
  <!-- Character Selection Screen -->
133
+ <div id="character-selection" class="fixed inset-0 bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900 z-40 transition-all duration-500 opacity-0 pointer-events-none">
134
+ <div class="absolute inset-0 bg-black/20 backdrop-blur-sm"></div>
135
+ <div class="container mx-auto px-6 py-8 h-full flex flex-col relative z-10">
136
+ <div class="text-center mb-12">
137
+ <h2 class="text-5xl font-black mb-4 gradient-text">Choose Your Champion</h2>
138
+ <p class="text-xl text-gray-300 max-w-2xl mx-auto">Select the perfect avatar that represents your journey. Each character comes with unique abilities and personality traits.</p>
139
+ </div>
140
+ <div class="flex-1 overflow-y-auto pb-32">
141
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8 max-w-7xl mx-auto">
142
  <!-- Character cards will be dynamically inserted here -->
143
  </div>
144
  </div>
145
+ <div class="fixed bottom-0 left-0 right-0 bg-gradient-to-t from-slate-900/95 via-slate-900/80 to-transparent py-8 px-6 z-50 backdrop-blur-lg border-t border-white/10">
146
  <div class="container mx-auto text-center">
147
+ <button id="confirm-character" class="px-12 py-4 bg-gradient-to-r from-green-600 to-emerald-500 rounded-2xl text-white font-bold text-lg hover:from-green-700 hover:to-emerald-600 transition-all transform hover:scale-105 shadow-2xl border border-white/20 opacity-0 pulse-glow">
148
+ <span class="flex items-center justify-center space-x-3">
149
+ <span>Confirm Champion</span>
150
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
151
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
152
+ </svg>
153
+ </span>
154
  </button>
155
  </div>
156
  </div>
157
  </div>
158
  </div>
159
  <!-- World Selection Screen -->
160
+ <div id="world-selection" class="fixed inset-0 bg-gradient-to-br from-slate-900 via-blue-900 to-slate-900 z-30 transition-all duration-500 opacity-0 pointer-events-none">
161
+ <div class="absolute inset-0 bg-black/20 backdrop-blur-sm"></div>
162
+ <div class="container mx-auto px-6 py-8 h-full flex flex-col relative z-10">
163
+ <div class="text-center mb-12">
164
+ <h2 class="text-5xl font-black mb-4 gradient-text">Forge Your Universe</h2>
165
+ <p class="text-xl text-gray-300 max-w-2xl mx-auto">Select 5 unique characters to populate your world. Each will bring their own stories and interactions to your adventure.</p>
166
+ <div class="mt-4 inline-flex items-center space-x-4 bg-white/5 rounded-full px-6 py-3 border border-white/10">
167
+ <span class="text-green-400 font-semibold" id="selected-count">0</span>
168
+ <span class="text-gray-400">/</span>
169
+ <span class="text-gray-300">5 Characters Selected</span>
170
+ </div>
171
+ </div>
172
+ <div class="flex-1 overflow-y-auto pb-32">
173
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-8 max-w-7xl mx-auto">
174
  <!-- World character cards will be dynamically inserted here -->
175
  </div>
176
  </div>
177
+ <div class="fixed bottom-0 left-0 right-0 bg-gradient-to-t from-slate-900/95 via-slate-900/80 to-transparent py-8 px-6 z-50 backdrop-blur-lg border-t border-white/10">
178
  <div class="container mx-auto text-center">
179
+ <button id="start-world" class="px-12 py-4 bg-gradient-to-r from-purple-600 to-blue-600 rounded-2xl text-white font-bold text-lg hover:from-purple-700 hover:to-blue-700 transition-all transform hover:scale-105 shadow-2xl border border-white/20 opacity-0 pulse-glow">
180
+ <span class="flex items-center justify-center space-x-3">
181
+ <span>Generate Dynamic World</span>
182
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
183
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
184
+ </svg>
185
+ </span>
186
  </button>
187
  </div>
188
  </div>