-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
146 lines (132 loc) · 4.7 KB
/
Copy pathindex.html
File metadata and controls
146 lines (132 loc) · 4.7 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Memory Button Game</title>
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: Arial, sans-serif;
overflow: hidden;
background-image: url('ex.gif'); /* Replace with your GIF URL */
background-size: cover; /* Cover the entire viewport */
background-position: center; /* Center the GIF */
}
.header {
text-align: center;
color: black; /* Change text color to black */
position: relative; /* Make sure text is above the background */
z-index: 1; /* Ensure header is above the background */
margin-bottom: 20px;
}
h1 {
font-family: monospace; /* Monospace font for console effect */
font-size: 36px; /* Font size for heading */
margin-bottom: 10px; /* Space between heading and developer line */
}
#developer {
cursor: pointer;
color: black; /* Change text color to black */
text-decoration: underline;
font-family: monospace; /* Monospace font for console effect */
}
/* Button styling */
.button {
height: 50px;
width: 200px;
position: relative;
background-color: transparent;
cursor: pointer;
border: 2px solid #252525;
overflow: hidden;
border-radius: 30px;
color: #333;
transition: all 0.5s ease-in-out;
margin-bottom: 20px; /* Space between buttons */
}
.btn-txt {
z-index: 1;
font-weight: 800;
letter-spacing: 4px;
}
.type1::after {
content: "";
position: absolute;
left: 0;
top: 0;
transition: all 0.5s ease-in-out;
background-color: #333;
border-radius: 30px;
visibility: hidden;
height: 10px;
width: 10px;
z-index: -1;
}
.button:hover {
box-shadow: 1px 1px 200px #252525;
color: #fff;
border: none;
}
.type1:hover::after {
visibility: visible;
transform: scale(100) translateX(2px);
}
.button-container {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
justify-content: space-evenly; /* Evenly space buttons */
}
/* Media query for smaller screens */
@media (max-width: 768px) {
h1 {
font-size: 28px; /* Smaller heading on small screens */
}
.button {
width: 150px; /* Smaller button size for mobile */
height: 45px; /* Smaller height for mobile */
}
}
/* Media query for very small screens (e.g. mobile portrait) */
@media (max-width: 480px) {
h1 {
font-size: 24px; /* Even smaller heading on very small screens */
}
.button {
width: 120px; /* Even smaller button size for mobile portrait */
height: 40px; /* Even smaller height for mobile portrait */
}
}
</style>
</head>
<body onload="init()">
<div class="header">
<h1>Welcome to Memory Card Game</h1>
<p id="developer" onclick="redirectToGitHub()">Developed by Ghanshyamsinh Zala</p>
</div>
<div class="button-container">
<button class="button type1" onclick="location.href='https://gz30eee.github.io/Memory-Card-Game/Memory%20Cards%20Game%20[Demo%202]/index.html'">
<span class="btn-txt">Timely Mode</span>
</button>
<button class="button type1" onclick="location.href='https://gz30eee.github.io/Memory-Card-Game/Memory%20Cards%20Game%20[Demo%201]/index.html'">
<span class="btn-txt">Chill Mode</span>
</button>
</div>
<script>
function init() {
// Any initialization code can go here
}
function redirectToGitHub() {
window.open('https://linktr.ee/ghza3006', '_blank');
}
</script>
</body>
</html>