omid2010 commited on
Commit
c3165a8
·
verified ·
1 Parent(s): aa9fc51

صفحه ورود خیلی طولانیه

Browse files

و میخوام از یه لودینگ خفن تر استفاده منی

Files changed (2) hide show
  1. index.html +37 -52
  2. style.css +78 -43
index.html CHANGED
@@ -47,32 +47,25 @@
47
  <div id="three-bg" class="fixed inset-0 -z-10 opacity-20"></div>
48
  <!-- Loading Screen with Rocket Animation -->
49
  <div id="loading-screen" class="fixed inset-0 bg-dark-900 flex flex-col items-center justify-center z-50">
50
- <div class="rocket-container relative w-32 h-32 mb-8">
51
- <div class="rocket absolute w-full h-full">
52
- <svg viewBox="0 0 24 24" fill="none" stroke="url(#rocket-gradient)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
53
- <path d="M12 19l7-7 3 3-7 7-3-3z"></path>
54
- <path d="M18 13l-1.5-7.5L2 2l3.5 14.5L11 18l5-5z"></path>
55
- <path d="M2 2l7.586 7.586"></path>
56
- <circle cx="11" cy="11" r="2"></circle>
57
- </svg>
58
- <defs>
59
- <linearGradient id="rocket-gradient" x1="0%" y1="0%" x2="100%" y2="100%">
60
- <stop offset="0%" stop-color="#00D9FF" />
61
- <stop offset="100%" stop-color="#8B5CF6" />
62
- </linearGradient>
63
- </defs>
64
- </div>
65
- <div class="flames absolute bottom-0 left-1/2 transform -translate-x-1/2">
66
- <div class="flame"></div>
67
- <div class="flame"></div>
68
- <div class="flame"></div>
69
  </div>
70
  </div>
71
  <div class="text-center">
72
- <h1 id="typing-text" class="text-3xl md:text-4xl font-bold mb-2 text-transparent bg-clip-text bg-gradient-to-r from-primary-500 to-secondary-500"></h1>
73
- <div class="h-1 w-32 mx-auto bg-gradient-to-r from-primary-500 to-secondary-500 rounded-full animate-pulse"></div>
 
 
 
 
74
  </div>
75
- </div>
76
  <!-- Main Content -->
77
  <main class="min-h-screen flex flex-col">
78
  <!-- Header -->
@@ -273,39 +266,31 @@
273
  const typingText = document.getElementById('typing-text');
274
  const text = "Web Mania Studio";
275
  let i = 0;
276
-
277
- // Rocket launch animation
278
- gsap.to(rocket, {
279
- y: -50,
280
- scale: 1.2,
281
- duration: 0.5,
282
- ease: "power2.out",
283
- delay: 0.5
284
  });
285
 
286
- // Typing animation
287
- function typeWriter() {
288
- if (i < text.length) {
289
- typingText.innerHTML += text.charAt(i);
290
- i++;
291
- setTimeout(typeWriter, 100);
 
 
 
 
 
 
 
 
292
  }
293
- }
294
-
295
- setTimeout(typeWriter, 1000);
296
-
297
- // Hide loading screen
298
- setTimeout(() => {
299
- gsap.to("#loading-screen", {
300
- opacity: 0,
301
- duration: 0.8,
302
- ease: "power2.inOut",
303
- onComplete: () => {
304
- document.getElementById('loading-screen').style.display = 'none';
305
- }
306
- });
307
- }, 3000);
308
- });
309
  </script>
310
  <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
311
  </body>
 
47
  <div id="three-bg" class="fixed inset-0 -z-10 opacity-20"></div>
48
  <!-- Loading Screen with Rocket Animation -->
49
  <div id="loading-screen" class="fixed inset-0 bg-dark-900 flex flex-col items-center justify-center z-50">
50
+ <div class="cyber-loader relative w-48 h-48 mb-8">
51
+ <div class="cyber-circle"></div>
52
+ <div class="cyber-circle"></div>
53
+ <div class="cyber-circle"></div>
54
+ <div class="cyber-center">
55
+ <div class="cyber-dot"></div>
56
+ <div class="cyber-dot"></div>
57
+ <div class="cyber-dot"></div>
 
 
 
 
 
 
 
 
 
 
 
58
  </div>
59
  </div>
60
  <div class="text-center">
61
+ <h1 class="text-3xl md:text-4xl font-bold mb-4 text-transparent bg-clip-text bg-gradient-to-r from-primary-500 to-secondary-500">
62
+ Web Mania Studio
63
+ </h1>
64
+ <div class="cyber-progress">
65
+ <div class="cyber-progress-bar"></div>
66
+ </div>
67
  </div>
68
+ </div>
69
  <!-- Main Content -->
70
  <main class="min-h-screen flex flex-col">
71
  <!-- Header -->
 
266
  const typingText = document.getElementById('typing-text');
267
  const text = "Web Mania Studio";
268
  let i = 0;
269
+ // Cyber circles animation
270
+ gsap.to(".cyber-circle", {
271
+ rotation: 360,
272
+ duration: 2,
273
+ repeat: -1,
274
+ ease: "none"
 
 
275
  });
276
 
277
+ gsap.to(".cyber-circle:nth-child(2)", {
278
+ rotation: -360,
279
+ duration: 3,
280
+ repeat: -1,
281
+ ease: "none"
282
+ });
283
+ // Hide loading screen after progress completes
284
+ gsap.to("#loading-screen", {
285
+ opacity: 0,
286
+ duration: 0.8,
287
+ delay: 3,
288
+ ease: "power2.inOut",
289
+ onComplete: () => {
290
+ document.getElementById('loading-screen').style.display = 'none';
291
  }
292
+ });
293
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  </script>
295
  <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
296
  </body>
style.css CHANGED
@@ -18,73 +18,108 @@ body {
18
  #three-bg canvas {
19
  display: block;
20
  }
21
-
22
- /* Rocket Loading Animation */
23
- .rocket-container {
24
  perspective: 1000px;
25
  }
26
 
27
- .rocket {
28
- transform-origin: center bottom;
29
- animation: float 3s ease-in-out infinite;
 
 
 
 
 
30
  }
31
 
32
- .rocket svg {
33
  width: 100%;
34
  height: 100%;
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
 
37
- .flames {
38
- width: 40px;
39
- height: 40px;
 
 
 
 
40
  }
41
 
42
- .flame {
43
  position: absolute;
44
- width: 10px;
45
- height: 20px;
46
- background: linear-gradient(to top, #FF512F, #F09819);
47
- border-radius: 50% 50% 20% 20%;
48
- opacity: 0.8;
49
- animation: flicker 0.3s ease-in-out infinite alternate;
 
50
  }
51
 
52
- .flame:nth-child(1) {
53
- left: 5px;
54
- animation-delay: 0.1s;
 
 
 
 
55
  }
56
 
57
- .flame:nth-child(2) {
58
- left: 15px;
59
- height: 25px;
60
- animation-delay: 0.2s;
61
  }
62
 
63
- .flame:nth-child(3) {
64
- left: 25px;
65
- animation-delay: 0.3s;
66
  }
67
 
68
- @keyframes float {
69
- 0%, 100% {
70
- transform: translateY(0) rotate(0deg);
71
- }
72
- 50% {
73
- transform: translateY(-20px) rotate(5deg);
74
- }
75
  }
76
 
77
- @keyframes flicker {
78
- 0% {
79
- transform: scaleY(1);
80
- opacity: 0.8;
81
- }
82
- 100% {
83
- transform: scaleY(1.2);
84
- opacity: 1;
85
- }
86
  }
87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  /* Typing Animation */
89
  #typing-text {
90
  border-right: 2px solid #00D9FF;
 
18
  #three-bg canvas {
19
  display: block;
20
  }
21
+ /* Cyberpunk Loading Animation */
22
+ .cyber-loader {
 
23
  perspective: 1000px;
24
  }
25
 
26
+ .cyber-circle {
27
+ position: absolute;
28
+ width: 100%;
29
+ height: 100%;
30
+ border: 3px solid transparent;
31
+ border-radius: 50%;
32
+ border-top-color: #00D9FF;
33
+ animation: spin 2s linear infinite;
34
  }
35
 
36
+ .cyber-circle:nth-child(1) {
37
  width: 100%;
38
  height: 100%;
39
+ animation-delay: 0.1s;
40
+ }
41
+
42
+ .cyber-circle:nth-child(2) {
43
+ width: 70%;
44
+ height: 70%;
45
+ top: 15%;
46
+ left: 15%;
47
+ border-top-color: #8B5CF6;
48
+ animation-direction: reverse;
49
+ animation-delay: 0.2s;
50
  }
51
 
52
+ .cyber-circle:nth-child(3) {
53
+ width: 40%;
54
+ height: 40%;
55
+ top: 30%;
56
+ left: 30%;
57
+ border-top-color: #00D9FF;
58
+ animation-delay: 0.3s;
59
  }
60
 
61
+ .cyber-center {
62
  position: absolute;
63
+ width: 20%;
64
+ height: 20%;
65
+ top: 40%;
66
+ left: 40%;
67
+ display: flex;
68
+ justify-content: center;
69
+ align-items: center;
70
  }
71
 
72
+ .cyber-dot {
73
+ width: 6px;
74
+ height: 6px;
75
+ background: #00D9FF;
76
+ border-radius: 50%;
77
+ margin: 0 2px;
78
+ animation: pulse 1.5s ease-in-out infinite;
79
  }
80
 
81
+ .cyber-dot:nth-child(1) {
82
+ animation-delay: 0s;
 
 
83
  }
84
 
85
+ .cyber-dot:nth-child(2) {
86
+ animation-delay: 0.5s;
 
87
  }
88
 
89
+ .cyber-dot:nth-child(3) {
90
+ animation-delay: 1s;
 
 
 
 
 
91
  }
92
 
93
+ .cyber-progress {
94
+ width: 200px;
95
+ height: 4px;
96
+ background: rgba(255, 255, 255, 0.1);
97
+ border-radius: 2px;
98
+ margin: 0 auto;
99
+ overflow: hidden;
 
 
100
  }
101
 
102
+ .cyber-progress-bar {
103
+ height: 100%;
104
+ width: 0;
105
+ background: linear-gradient(90deg, #00D9FF, #8B5CF6);
106
+ animation: progress 3s ease-in-out forwards;
107
+ }
108
+
109
+ @keyframes spin {
110
+ 0% { transform: rotate(0deg); }
111
+ 100% { transform: rotate(360deg); }
112
+ }
113
+
114
+ @keyframes pulse {
115
+ 0%, 100% { transform: scale(1); opacity: 1; }
116
+ 50% { transform: scale(1.5); opacity: 0.7; }
117
+ }
118
+
119
+ @keyframes progress {
120
+ 0% { width: 0; }
121
+ 100% { width: 100%; }
122
+ }
123
  /* Typing Animation */
124
  #typing-text {
125
  border-right: 2px solid #00D9FF;