Skip to content

Commit 0374e5e

Browse files
committed
style: restore jumbotron gray background for hero section; test: add E2E validation
1 parent 4dda4bf commit 0374e5e

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

assets/stylesheets/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ body {
1818
padding-bottom: 70px;
1919
}
2020

21+
.jumbotron {
22+
background-color: #f5f5f5;
23+
border-radius: 1rem;
24+
padding: 2.5rem 1rem;
25+
margin-bottom: 2rem;
26+
}
27+
2128
.version {
2229
font-family: monospace;
2330
padding: 0.5rem 1rem;

dev/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</div>
6565
</nav>
6666

67-
<div class="py-5 text-center">
67+
<div class="py-5 text-center jumbotron">
6868
<h1>
6969
<span class="cadeoleo-baby-1"></span>
7070
Cadê o Léo!

dev/index_en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</div>
6565
</nav>
6666

67-
<div class="py-5 text-center">
67+
<div class="py-5 text-center jumbotron">
6868
<h1>
6969
<span class="cadeoleo-baby-1"></span>
7070
Where's Leo!

test/e2e/version-style.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,11 @@ test.describe('Version span style', () => {
1414
const bgColor = await leoVersion.evaluate(el => getComputedStyle(el).backgroundColor);
1515
expect(bgColor).toBe('rgb(238, 238, 238)'); // #eee
1616
});
17+
18+
test('jumbotron should have gray background', async ({ page, baseURL }) => {
19+
await page.goto(baseURL + '/');
20+
const jumbotron = await page.locator('.jumbotron').first();
21+
const bgColor = await jumbotron.evaluate(el => getComputedStyle(el).backgroundColor);
22+
expect(bgColor).toBe('rgb(245, 245, 245)'); // #f5f5f5
23+
});
1724
});

0 commit comments

Comments
 (0)