-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatch.html
More file actions
85 lines (71 loc) · 2.91 KB
/
match.html
File metadata and controls
85 lines (71 loc) · 2.91 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Memory Card Flip Game | V.L. Vignesh</title>
<meta name="description" content="Engaging Memory Card Flip Game built with HTML, CSS, and JavaScript">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap"
rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<link rel="stylesheet" href="css/memory-game.css">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="container nav-container">
<a href="index.html" class="logo">PORTFOLIO<span class="dot">.</span></a>
<a href="index.html" class="back-btn">← Back to Portfolio</a>
</div>
</nav>
<!-- Game Main -->
<main class="game-main">
<div class="game-container">
<div class="game-header">
<h1 class="game-title">MEMORY MATCH</h1>
<p class="game-subtitle">Find all matching pairs to win!</p>
</div>
<div class="game-stats">
<div class="stat-item">
<span class="stat-label">Moves</span>
<span class="stat-value" id="moves">0</span>
</div>
<div class="stat-item">
<span class="stat-label">Time</span>
<span class="stat-value" id="timer">00:00</span>
</div>
<div class="stat-item">
<span class="stat-label">Best</span>
<span class="stat-value" id="best-score">--</span>
</div>
</div>
<div class="memory-grid" id="memory-grid">
<!-- Cards will be generated by JavaScript -->
</div>
<div class="game-controls">
<button id="reset-button" class="game-button">RESET GAME</button>
</div>
</div>
</main>
<!-- Win Overlay -->
<div id="win-overlay" class="game-overlay">
<div class="overlay-content">
<h2 class="game-title">YOU WON! 🎉</h2>
<p>You matched all pairs in <span id="final-moves">0</span> moves!</p>
<p>Time Taken: <span id="final-time">00:00</span></p>
<button id="play-again" class="game-button">PLAY AGAIN</button>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<div class="container">
<p>© 2026 V.L. Vignesh. All Rights Reserved.</p>
</div>
</footer>
<script src="js/memory-game.js"></script>
</body>
</html>