-
Notifications
You must be signed in to change notification settings - Fork 188
Expand file tree
/
Copy pathresponsive-test.html
More file actions
175 lines (156 loc) Β· 5.7 KB
/
responsive-test.html
File metadata and controls
175 lines (156 loc) Β· 5.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Stopwatch Responsive Test</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
background: #f5f5f5;
}
.test-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.device-frame {
background: white;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
overflow: hidden;
position: relative;
}
.device-header {
background: #333;
color: white;
padding: 10px;
text-align: center;
font-weight: bold;
}
.device-iframe {
width: 100%;
height: 400px;
border: none;
display: block;
}
.mobile { max-width: 375px; }
.tablet { max-width: 768px; }
.desktop { max-width: 1200px; }
.responsive-info {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.breakpoint-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
margin-top: 20px;
}
.breakpoint {
background: #e8f4f8;
padding: 15px;
border-radius: 8px;
border-left: 4px solid #007acc;
}
.breakpoint h4 {
margin: 0 0 10px 0;
color: #007acc;
}
.back-link {
display: inline-block;
margin: 20px 0;
padding: 10px 20px;
background: #007acc;
color: white;
text-decoration: none;
border-radius: 5px;
transition: background 0.3s;
}
.back-link:hover {
background: #005a99;
}
</style>
</head>
<body>
<h1>π Stopwatch Responsive Design Test</h1>
<a href="index.html" class="back-link">β Back to Stopwatch</a>
<div class="responsive-info">
<h2>π± Responsive Breakpoints Implemented</h2>
<p>The stopwatch now uses a <strong>mobile-first approach</strong> with the following breakpoints:</p>
<div class="breakpoint-list">
<div class="breakpoint">
<h4>π± Mobile (320px+)</h4>
<ul>
<li>Compact timer display</li>
<li>Stacked buttons for very small screens</li>
<li>Optimized touch targets</li>
</ul>
</div>
<div class="breakpoint">
<h4>π± Large Mobile (480px+)</h4>
<ul>
<li>Improved spacing</li>
<li>Grid layout for buttons</li>
<li>Better readable font sizes</li>
</ul>
</div>
<div class="breakpoint">
<h4>π± Tablet (768px+)</h4>
<ul>
<li>Larger timer display</li>
<li>Horizontal button layout</li>
<li>Enhanced navigation</li>
</ul>
</div>
<div class="breakpoint">
<h4>π» Desktop (1024px+)</h4>
<ul>
<li>Full-size timer</li>
<li>Optimal button spacing</li>
<li>Complete feature access</li>
</ul>
</div>
</div>
<h3>β¨ Key Improvements Made:</h3>
<ul>
<li><strong>CSS clamp()</strong> functions for fluid typography</li>
<li><strong>Flexbox & CSS Grid</strong> for responsive layouts</li>
<li><strong>Touch-optimized</strong> button sizes (min 44px)</li>
<li><strong>Landscape orientation</strong> support for mobile</li>
<li><strong>Glassmorphism effects</strong> that scale properly</li>
<li><strong>Accessibility features</strong> (reduced motion support)</li>
</ul>
</div>
<div class="test-container">
<div class="device-frame mobile">
<div class="device-header">π± Mobile (375px)</div>
<iframe src="index.html" class="device-iframe"></iframe>
</div>
<div class="device-frame tablet">
<div class="device-header">π± Tablet (768px)</div>
<iframe src="index.html" class="device-iframe"></iframe>
</div>
<div class="device-frame desktop">
<div class="device-header">π» Desktop (1200px)</div>
<iframe src="index.html" class="device-iframe"></iframe>
</div>
</div>
<div class="responsive-info">
<h3>π§ͺ Testing Instructions:</h3>
<ol>
<li><strong>Resize your browser window</strong> to see how the layout adapts</li>
<li><strong>Test on different devices</strong> - phone, tablet, desktop</li>
<li><strong>Try landscape orientation</strong> on mobile devices</li>
<li><strong>Check button interactions</strong> - tap/click all buttons</li>
<li><strong>Verify timer readability</strong> at all screen sizes</li>
</ol>
<p><strong>Pro Tip:</strong> Use your browser's developer tools (F12) to simulate different device sizes!</p>
<a href="index.html" class="back-link">β Back to Stopwatch</a>
</div>
</body>
</html>