Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 0f59bf1

Browse files
committed
Improve readability
1 parent 67439ec commit 0f59bf1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pages/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ const sectionStyle = {
1313
alignItems: 'center',
1414
} as const;
1515

16-
const pStyle = { lineHeight: 1.7 };
17-
1816
const Home = (props: {
1917
introduction: string;
2018
features: string;
@@ -57,7 +55,7 @@ const Home = (props: {
5755
<p style={{
5856
maxWidth: '550px',
5957
paddingBottom: '30px',
60-
...pStyle
58+
lineHeight: 1.7
6159
}}>
6260
This section demonstrates the power of dynamic imports. Every Markdown
6361
file under <code>/md/blog</code> is automatically parsed into a
@@ -122,7 +120,7 @@ const Home = (props: {
122120
textAlign: 'center',
123121
maxWidth: '600px',
124122
margin: 'auto',
125-
...pStyle,
123+
lineHeight: 1.7
126124
}}
127125
>
128126
Below is the README.md for devii. It was imported and rendered using

0 commit comments

Comments
 (0)