dannyboy84 commited on
Commit
e92b0de
·
verified ·
1 Parent(s): cbd2f7a

new project

Browse files
Files changed (4) hide show
  1. about.html +53 -0
  2. components/wormate-nav.js +4 -3
  3. index.html +6 -2
  4. style.css +80 -1
about.html ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>About - Wormate.io Clone</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="components/wormate-nav.js"></script>
9
+ <script src="components/game-footer.js"></script>
10
+ <style>
11
+ @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
12
+ </style>
13
+ </head>
14
+ <body>
15
+ <wormate-nav></wormate-nav>
16
+ <main class="about-container">
17
+ <h1>About Wormate.io Clone</h1>
18
+ <section class="about-section">
19
+ <h2>The Game</h2>
20
+ <p>This is a fan-made clone of the popular online multiplayer game Wormate.io where you control a worm and try to grow as large as possible by eating food while avoiding other players.</p>
21
+ <img src="http://static.photos/gaming/640x360/1" alt="Gameplay screenshot">
22
+ </section>
23
+ <section class="about-section">
24
+ <h2>How to Play</h2>
25
+ <ul class="game-instructions">
26
+ <li>Use arrow keys to control your worm</li>
27
+ <li>Eat colored food pellets to grow longer</li>
28
+ <li>Avoid crashing into walls or other worms</li>
29
+ <li>Compete for the highest score on the leaderboard</li>
30
+ </ul>
31
+ </section>
32
+ <section class="about-section">
33
+ <h2>Features</h2>
34
+ <div class="features-grid">
35
+ <div class="feature-card">
36
+ <h3>Multiplayer</h3>
37
+ <p>Play against real opponents worldwide</p>
38
+ </div>
39
+ <div class="feature-card">
40
+ <h3>Custom Skins</h3>
41
+ <p>Personalize your worm's appearance</p>
42
+ </div>
43
+ <div class="feature-card">
44
+ <h3>Leaderboards</h3>
45
+ <p>Track top players globally</p>
46
+ </div>
47
+ </div>
48
+ </section>
49
+ </main>
50
+ <game-footer></game-footer>
51
+ <script src="script.js"></script>
52
+ </body>
53
+ </html>
components/wormate-nav.js CHANGED
@@ -64,11 +64,12 @@ class WormateNav extends HTMLElement {
64
  <a href="#" class="logo">WORMATE.IO</a>
65
 
66
  <div class="nav-links">
67
- <a href="#" class="nav-link">HOME</a>
68
- <a href="#" class="nav-link">PLAY</a>
69
  <a href="#" class="nav-link">SKINS</a>
70
  <a href="#" class="nav-link">LEADERBOARD</a>
71
- </div>
 
72
  </div>
73
  </nav>
74
  `;
 
64
  <a href="#" class="logo">WORMATE.IO</a>
65
 
66
  <div class="nav-links">
67
+ <a href="index.html" class="nav-link">HOME</a>
68
+ <a href="index.html#play" class="nav-link">PLAY</a>
69
  <a href="#" class="nav-link">SKINS</a>
70
  <a href="#" class="nav-link">LEADERBOARD</a>
71
+ <a href="about.html" class="nav-link">ABOUT</a>
72
+ </div>
73
  </div>
74
  </nav>
75
  `;
index.html CHANGED
@@ -23,8 +23,12 @@
23
  <button id="play-btn" class="wormate-btn">PLAY</button>
24
  </div>
25
  </div>
26
-
27
- <game-footer></game-footer>
 
 
 
 
28
  <script src="script.js"></script>
29
  </body>
30
  </html>
 
23
  <button id="play-btn" class="wormate-btn">PLAY</button>
24
  </div>
25
  </div>
26
+ <section id="about-preview" class="info-section">
27
+ <h2>About the Game</h2>
28
+ <p>Grow your worm, compete with others, and dominate the leaderboard!</p>
29
+ <a href="about.html" class="info-link">Learn More →</a>
30
+ </section>
31
+ <game-footer></game-footer>
32
  <script src="script.js"></script>
33
  </body>
34
  </html>
style.css CHANGED
@@ -10,6 +10,59 @@ body {
10
  flex-direction: column;
11
  }
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  #game-container {
14
  flex: 1;
15
  position: relative;
@@ -84,6 +137,33 @@ body {
84
  background: #ff5252;
85
  transform: translate(-50%, -50%) scale(1.05);
86
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
  /* Animations */
89
  @keyframes pulse {
@@ -91,7 +171,6 @@ body {
91
  50% { transform: scale(1.1); }
92
  100% { transform: scale(1); }
93
  }
94
-
95
  .pulse {
96
  animation: pulse 1s infinite;
97
  }
 
10
  flex-direction: column;
11
  }
12
 
13
+ .about-container {
14
+ max-width: 1200px;
15
+ margin: 2rem auto;
16
+ padding: 1rem;
17
+ flex: 1;
18
+ }
19
+
20
+ .about-section {
21
+ margin-bottom: 3rem;
22
+ }
23
+
24
+ .about-section h2 {
25
+ color: #ff6b6b;
26
+ margin-bottom: 1.5rem;
27
+ }
28
+
29
+ .about-section p {
30
+ line-height: 1.6;
31
+ margin-bottom: 1rem;
32
+ }
33
+
34
+ .game-instructions {
35
+ padding-left: 1.5rem;
36
+ }
37
+
38
+ .game-instructions li {
39
+ margin-bottom: 0.8rem;
40
+ }
41
+
42
+ .features-grid {
43
+ display: grid;
44
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
45
+ gap: 1.5rem;
46
+ }
47
+
48
+ .feature-card {
49
+ background: rgba(255, 255, 255, 0.05);
50
+ padding: 1.5rem;
51
+ border-radius: 8px;
52
+ border: 1px solid rgba(255, 255, 255, 0.1);
53
+ }
54
+
55
+ .feature-card h3 {
56
+ color: #69f0ae;
57
+ margin-bottom: 0.5rem;
58
+ }
59
+
60
+ .about-section img {
61
+ max-width: 100%;
62
+ border-radius: 8px;
63
+ margin-top: 1rem;
64
+ border: 2px solid #ff6b6b;
65
+ }
66
  #game-container {
67
  flex: 1;
68
  position: relative;
 
137
  background: #ff5252;
138
  transform: translate(-50%, -50%) scale(1.05);
139
  }
140
+ /* Info Sections */
141
+ .info-section {
142
+ max-width: 1200px;
143
+ margin: 2rem auto;
144
+ padding: 2rem;
145
+ text-align: center;
146
+ background: rgba(255,255,255,0.05);
147
+ border-radius: 8px;
148
+ }
149
+
150
+ .info-section h2 {
151
+ color: #ff6b6b;
152
+ margin-bottom: 1rem;
153
+ }
154
+
155
+ .info-link {
156
+ display: inline-block;
157
+ margin-top: 1rem;
158
+ color: #69f0ae;
159
+ text-decoration: none;
160
+ transition: all 0.3s;
161
+ }
162
+
163
+ .info-link:hover {
164
+ color: #ff6b6b;
165
+ transform: translateX(5px);
166
+ }
167
 
168
  /* Animations */
169
  @keyframes pulse {
 
171
  50% { transform: scale(1.1); }
172
  100% { transform: scale(1); }
173
  }
 
174
  .pulse {
175
  animation: pulse 1s infinite;
176
  }