Skip to content

Commit 7f6e42c

Browse files
committed
style(index.html) Center content and change div to aside for better semantics in the performance benchmark layout
1 parent 8a1b105 commit 7f6e42c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

11-js-perf-benchmark/index.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
color: #fff;
1919
margin: 0;
2020
padding: 16px;
21+
display: grid;
22+
place-content: center;
23+
min-height: 100vh;
2124
}
2225

2326
.container {
@@ -122,6 +125,7 @@
122125
display: flex;
123126
flex-direction: column;
124127
align-items: center;
128+
justify-content: center;
125129

126130
.chart {
127131
width: 200px;
@@ -273,7 +277,7 @@ <h2>Test cases</h2>
273277
<button class="send-button">Benchmark code! 🚀</button>
274278

275279
</div>
276-
<div class="chart-container">
280+
<aside class="chart-container">
277281
<svg class="chart" viewBox="0 0 200 300">
278282
<rect class="bar" x="20" y="-300" width="2" height="300" fill="green"></rect>
279283
<rect class="bar" x="70" y="-300" width="2" height="50" fill="yellow"></rect>
@@ -287,7 +291,7 @@ <h2>Test cases</h2>
287291
<span class="percentage">60%</span>
288292
<span class="percentage">80%</span>
289293
</div>
290-
</div>
294+
</aside>
291295
</main>
292296
</body>
293297

0 commit comments

Comments
 (0)