Skip to content

Commit 5034c80

Browse files
committed
Updated the styling
- moved watermark after the logo - added more distinctive styling to the code part - updated the paragraph with the counter
1 parent 573551a commit 5034c80

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

src/components/App.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@
2929
}
3030

3131
.App-link {
32+
margin-top: 2rem;
3233
color: #61dafb;
3334
}
3435

36+
.App code {
37+
background: #FFF3;
38+
padding: 4px 8px;
39+
border-radius: 4px;
40+
}
41+
3542
@keyframes App-logo-spin {
3643
from {
3744
scale: 1.0;

src/components/App.tsx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@ const App: Component = () => {
77
const [count, setCount] = createSignal(0),
88
timer = setInterval(() => setCount(count() + 1), 1000);
99
onCleanup(() => clearInterval(timer));
10-
return(
11-
<div class="App">
12-
<header class="App-header">
13-
<img src={logo} class="App-logo" alt="logo" />
14-
<p>
15-
Edit <code>src/App.tsx</code> and save to reload. <code>{count()}</code> and counting...
16-
</p>
17-
<a class="App-link" href="https://solidjs.com" target="_blank" rel="noopener noreferrer">
18-
<img src={wordmark} class="App-wordmark" alt="wordmark" />
19-
</a>
20-
</header>
21-
</div>
22-
)};
10+
return (
11+
<div class="App">
12+
<header class="App-header">
13+
<img src={logo} class="App-logo" alt="logo" />
14+
<a class="App-link" href="https://solidjs.com" target="_blank" rel="noopener noreferrer">
15+
<img src={wordmark} class="App-wordmark" alt="wordmark" />
16+
</a>
17+
<p>
18+
Edit <code>src/App.tsx</code> and save to reload.
19+
</p>
20+
<p>
21+
Page has been open for <code>{count}</code> seconds.
22+
</p>
23+
</header>
24+
</div>
25+
);
26+
};
2327

2428
export default App;

0 commit comments

Comments
 (0)