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
|
<!DOCTYPE html>
<html>
<head>
<title>Screenshot Test</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
background: #f5f5f5;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
}
.theme {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.theme img {
width: 100%;
height: 150px;
object-fit: cover;
display: block;
}
.theme-name {
padding: 10px;
font-size: 14px;
text-align: center;
font-weight: bold;
}
.error {
background: #ffebee;
color: #c62828;
padding: 10px;
text-align: center;
}
</style>
</head>
<body>
<h1>Theme Screenshot Test</h1>
<p>Testing if screenshots are displaying correctly:</p>
<div class="grid">
<div class="theme">
<img src="screenshots/vibrant_garden.png" alt="Vibrant Garden"
onerror="this.parentElement.innerHTML='<div class=error>Failed to load</div>'">
<div class="theme-name">Vibrant Garden</div>
</div>
<div class="theme">
<img src="screenshots/twilight_nebula.png" alt="Twilight Nebula"
onerror="this.parentElement.innerHTML='<div class=error>Failed to load</div>'">
<div class="theme-name">Twilight Nebula</div>
</div>
<div class="theme">
<img src="screenshots/cosmic_odyssey.png" alt="Cosmic Odyssey"
onerror="this.parentElement.innerHTML='<div class=error>Failed to load</div>'">
<div class="theme-name">Cosmic Odyssey</div>
</div>
<div class="theme">
<img src="screenshots/terminal.png" alt="Terminal Theme"
onerror="this.parentElement.innerHTML='<div class=error>Failed to load</div>'">
<div class="theme-name">Terminal (if exists)</div>
</div>
<div class="theme">
<img src="screenshots/hero.png" alt="Hero Theme"
onerror="this.parentElement.innerHTML='<div class=error>Failed to load</div>'">
<div class="theme-name">Hero (if exists)</div>
</div>
</div>
<h2>File sizes:</h2>
<pre id="file-info">Loading...</pre>
<script>
// List all theme names to test
const themes = [
'vibrant_garden', 'pure_voyage', 'twilight_nebula', 'mystic_canyon',
'dynamic_forest', 'soft_horizon', 'pastel_crystal', 'bright_light',
'crisp_oasis', 'sharp_canyon', 'strong_breeze', 'aurora_dawn'
];
// Check which images load successfully
const checkImages = async () => {
const results = [];
for (const theme of themes) {
const img = new Image();
const promise = new Promise((resolve) => {
img.onload = () => resolve({theme, status: 'loaded', width: img.width, height: img.height});
img.onerror = () => resolve({theme, status: 'failed'});
});
img.src = `screenshots/${theme}.png`;
results.push(await promise);
}
document.getElementById('file-info').textContent =
results.map(r => `${r.theme}: ${r.status} ${r.status === 'loaded' ? `(${r.width}x${r.height})` : ''}`).join('\n');
};
checkImages();
</script>
</body>
</html>
|