-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
241 lines (228 loc) · 13.1 KB
/
index.html
File metadata and controls
241 lines (228 loc) · 13.1 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>InstanceIQ — EC2 & RDS Advisor · devopscaptain</title>
<meta name="description"
content="InstanceIQ by devopscaptain. Explore all AWS EC2 and RDS instance types with workload suitability guidance. Auto-updated from AWS APIs.">
<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;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="./static/css/style.css">
</head>
<body>
<div class="bg-particles" id="bgParticles"></div>
<!-- Navigation -->
<nav class="main-nav" id="mainNav">
<div class="nav-inner">
<div class="nav-brand">
<div class="brand-icon">
<svg width="26" height="26" viewBox="0 0 26 26" fill="none">
<rect x="1" y="1" width="24" height="24" rx="4" stroke="url(#iqGrad)" stroke-width="1.5"/>
<text x="13" y="18" text-anchor="middle"
font-family="'JetBrains Mono', monospace"
font-weight="900" font-size="11"
fill="url(#iqGrad)">IQ</text>
<defs>
<linearGradient id="iqGrad" x1="1" y1="1" x2="25" y2="25">
<stop stop-color="#00D4FF"/>
<stop offset="1" stop-color="#FF0080"/>
</linearGradient>
</defs>
</svg>
</div>
<div class="brand-text-group">
<span class="brand-product">InstanceIQ</span>
<span class="brand-author">devopscaptain</span>
</div>
</div>
<div class="nav-controls">
<span id="lastUpdated"
style="font-size:11px;color:var(--text-tertiary);font-family:var(--font-mono)"></span>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle light/dark theme">
<!-- Moon icon (shown in dark mode) -->
<svg class="icon-moon" width="16" height="16" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
</svg>
<!-- Sun icon (shown in light mode) -->
<svg class="icon-sun" width="16" height="16" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="5"/>
<line x1="12" y1="1" x2="12" y2="3"/>
<line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/>
<line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</svg>
</button>
</div>
</div>
</nav>
<!-- Hero -->
<header class="hero" id="hero">
<div class="hero-content">
<div class="hero-badge">
<span class="badge-dot"></span>
<span>[ LIVE ] AWS API · GitHub Actions · No AI · devopscaptain</span>
</div>
<h1 class="hero-title">
<span class="title-line">Find the Right</span>
<span class="title-line title-gradient">AWS Instance</span>
<span class="title-line">for Every Workload</span>
</h1>
<p class="hero-subtitle">InstanceIQ gives you clear, data-driven guidance across every EC2 and RDS
instance family. Pricing and specs auto-refreshed weekly from AWS APIs.</p>
<div class="hero-stats" id="heroStats">
<div class="stat-card">
<div class="stat-number" id="statEc2Count">—</div>
<div class="stat-label">EC2 Types</div>
</div>
<div class="stat-card">
<div class="stat-number" id="statEc2Families">—</div>
<div class="stat-label">EC2 Families</div>
</div>
<div class="stat-card">
<div class="stat-number" id="statRdsCount">—</div>
<div class="stat-label">RDS Classes</div>
</div>
<div class="stat-card">
<div class="stat-number" id="statRdsEngines">—</div>
<div class="stat-label">DB Engines</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="main-content">
<div class="tab-bar" id="tabBar" role="tablist" aria-label="Instance type categories">
<button class="tab-btn active" data-tab="ec2" id="tabEc2" role="tab" aria-selected="true" aria-controls="ec2Content">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="2" y="3" width="20" height="14" rx="2" />
<line x1="8" y1="21" x2="16" y2="21" />
<line x1="12" y1="17" x2="12" y2="21" />
</svg>
<span>EC2 Instance Types</span>
</button>
<button class="tab-btn" data-tab="rds" id="tabRds" role="tab" aria-selected="false" aria-controls="rdsContent">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<ellipse cx="12" cy="5" rx="9" ry="3" />
<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3" />
<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5" />
</svg>
<span>RDS Instance Classes</span>
</button>
<button class="tab-btn" data-tab="engines" id="tabEngines" role="tab" aria-selected="false" aria-controls="enginesContent">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="3" />
<path
d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" />
</svg>
<span>Database Engines</span>
</button>
</div>
<div class="filter-bar" id="filterBar">
<div class="search-box">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8" />
<line x1="21" y1="21" x2="16.65" y2="16.65" />
</svg>
<input type="text" id="searchInput" aria-label="Search instances"
placeholder="Search instance types... (e.g., m5.xlarge, gpu, burstable)">
</div>
<div class="region-selector-wrap">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"/>
<line x1="2" y1="12" x2="22" y2="12"/>
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
</svg>
<select id="regionSelect" class="region-select" aria-label="Select pricing region"></select>
</div>
<div class="filter-chips" id="filterChips" role="group" aria-label="Filter by category">
<button class="chip active" data-filter="all" aria-pressed="true">All</button>
<button class="chip" data-filter="general" aria-pressed="false">General Purpose</button>
<button class="chip" data-filter="compute" aria-pressed="false">Compute Optimized</button>
<button class="chip" data-filter="memory" aria-pressed="false">Memory Optimized</button>
<button class="chip" data-filter="storage" aria-pressed="false">Storage Optimized</button>
<button class="chip" data-filter="accelerated" aria-pressed="false">Accelerated Computing</button>
<button class="chip" data-filter="hpc" aria-pressed="false">HPC</button>
</div>
</div>
<div class="loading-state" id="loadingState">
<div class="loader">
<div class="loader-ring"></div>
<div class="loader-ring"></div>
<div class="loader-ring"></div>
</div>
<p class="loading-text">// loading instance data...</p>
</div>
<div class="error-state hidden" id="errorState">
<div class="error-icon">⚠</div>
<h3>Data Load Error</h3>
<p id="errorMessage"></p>
</div>
<div class="tab-content active" id="ec2Content">
<div class="families-grid" id="ec2FamiliesGrid"></div>
</div>
<div class="tab-content" id="rdsContent">
<div class="families-grid" id="rdsFamiliesGrid"></div>
</div>
<div class="tab-content" id="enginesContent">
<div class="engines-grid" id="enginesGrid"></div>
</div>
</main>
<footer class="main-footer">
<div class="footer-inner">
<p><span class="footer-brand">InstanceIQ</span> — Data from AWS APIs via GitHub Actions · No AI · Static reasoning from AWS best practices</p>
<p class="footer-sub">by <span class="footer-brand">devopscaptain</span> · Fully static · GitHub Pages · Vanilla HTML/CSS/JS</p>
</div>
</footer>
<!-- Compare Tray -->
<div class="compare-tray" id="compareTray" aria-live="polite">
<div class="compare-tray-inner">
<div class="compare-tray-slots" id="compareTraySlots"></div>
<div class="compare-tray-actions">
<span class="compare-tray-hint" id="compareTrayHint">Select up to 4 instances to compare</span>
<button class="compare-copy-btn" id="compareCopyBtn" title="Copy shareable link">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
</svg>
Copy link
</button>
<button class="compare-open-btn" id="compareOpenBtn" disabled>Compare <span id="compareCount">0</span> →</button>
<button class="compare-clear-btn" id="compareClearBtn" title="Clear all">✕ Clear</button>
</div>
</div>
</div>
<!-- Compare Overlay -->
<div class="compare-overlay" id="compareOverlay" role="dialog" aria-modal="true" aria-label="Instance Comparison">
<div class="compare-modal">
<div class="compare-modal-header">
<div class="compare-modal-title">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="8" height="18" rx="1"/><rect x="13" y="3" width="8" height="18" rx="1"/>
</svg>
Side-by-Side Comparison
</div>
<div class="compare-modal-actions">
<button class="compare-action-btn" id="compareExportCsvBtn" title="Export comparison as CSV">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/>
</svg>
Export CSV
</button>
<button class="compare-close-btn" id="compareCloseBtn" aria-label="Close comparison">✕</button>
</div>
</div>
<div class="compare-modal-body" id="compareModalBody"></div>
</div>
</div>
<script src="./static/js/app.js"></script>
</body>
</html>