Skip to content

Commit 377b667

Browse files
docs: home page splash banner styling
1 parent 00e71ee commit 377b667

2 files changed

Lines changed: 36 additions & 3 deletions

File tree

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
.container {
2+
width: 80%;
3+
margin: 0 auto;
4+
text-align: center;
5+
}
6+
17
.splash {
2-
color: red;
8+
display: inline-block;
9+
background-image: url(/assets/wcc-splash.png);
10+
background-repeat: no-repeat;
11+
background-size: contain;
12+
font-size: var(--size-6);
13+
color: var(--color-white);
14+
font-weight: bold;
15+
width: 100px;
16+
}
17+
18+
.text {
19+
display: inline;
20+
font-size: var(--size-6);
21+
height: 136px;
22+
font-weight: bold;
23+
}
24+
25+
@media (min-width: 900px) {
26+
.splash {
27+
width: 297px;
28+
height: 136px;
29+
}
30+
31+
.splash,
32+
.text {
33+
font-size: var(--size-10);
34+
}
335
}

docs/components/banner-splash/banner-splash.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ export default class BannerSplash extends HTMLElement {
77

88
render() {
99
return (
10-
<h1>
11-
<span class={styles.splash}>SSR</span> for Web Components
10+
<h1 class={styles.container}>
11+
<span class={styles.splash}>SSR</span>
12+
<span class={styles.text}> for Web Components</span>
1213
</h1>
1314
);
1415
}

0 commit comments

Comments
 (0)