Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 9f6d6a3

Browse files
author
Je
committed
chore: update hello-world example
1 parent 1588f2e commit 9f6d6a3

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

examples/hello-world/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ export default function Home() {
66
const [count, setCount] = useState(0)
77

88
return (
9-
<div className="wrapper">
9+
<div className="page">
1010
<Import from="../style/index.less" />
1111
<p className="logo"><Logo /></p>
12-
<p>Welcome to use <strong>Aleph.js</strong>!</p>
12+
<h1>Welcome to use <strong>Aleph.js</strong>!</h1>
1313
<p className="links">
1414
<a href="https://alephjs.org" target="_blank">Website</a>
1515
<span>&middot;</span>

examples/hello-world/style/index.less

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
1+
body {
2+
font-family: "Helvetica Neue", Helvetica, Arial sans-serif;
3+
}
4+
15
main {
26
display: flex;
37
align-items: center;
48
justify-content: center;
59
min-height: 100vh;
610
}
711

8-
.wrapper {
12+
.page {
913
display: flex;
1014
align-items: center;
1115
justify-content: left;
1216
flex-direction: column;
1317

14-
p {
18+
h1 {
1519
margin: 0;
1620
line-height: 1.5;
17-
font-size: 15px;
18-
font-family: Helvetica, Arial, sans-serif;
21+
font-size: 16px;
22+
font-weight: 400;
1923
text-align: center;
20-
color: #333;
24+
color: #000;
2125

2226
strong {
23-
color: #000;
24-
font-weight: 600;
27+
font-weight: 700;
2528
}
2629
}
2730

31+
p {
32+
margin: 0;
33+
line-height: 1.5;
34+
font-size: 15px;
35+
text-align: center;
36+
color: #333;
37+
}
38+
2839
.logo + p {
2940
margin-top: 6px;
3041
}

0 commit comments

Comments
 (0)