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

Commit 25d3f52

Browse files
committed
Code formatting of inline CSS rules
1 parent 3ae1f68 commit 25d3f52

File tree

1 file changed

+42
-9
lines changed

1 file changed

+42
-9
lines changed

pages/index.tsx

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,43 @@ const Home = (props: {
2222
posts: PostData[];
2323
}) => {
2424
return (
25-
<div style={{ width: '100%' }}>
25+
<div style={{
26+
width: '100%'
27+
}}>
2628
<Head>
2729
<title>Introducing Devii</title>
2830
<link rel="icon" href="/favicon.ico" />
2931
</Head>
30-
<div style={{ maxWidth: '550px', margin: 'auto', padding: '50px 3vw' }}>
32+
<div style={{
33+
maxWidth: '550px',
34+
margin: 'auto',
35+
padding: '50px 3vw'
36+
}}>
3137
<Markdown source={props.introduction} />
3238
</div>
3339

3440
<div style={sectionStyle}>
35-
<h2 style={{ margin: '4px 0px', fontSize: '34pt' }}>Features</h2>
36-
<div style={{ maxWidth: '550px' }}>
41+
<h2 style={{
42+
margin: '4px 0px',
43+
fontSize: '34pt'
44+
}}>Features</h2>
45+
<div style={{
46+
maxWidth: '550px'
47+
}}>
3748
<Markdown source={props.features} />
3849
</div>
3950
</div>
4051

4152
<div style={sectionStyle}>
42-
<h2 style={{ margin: '4px 0px', fontSize: '34pt' }}>My blog posts</h2>
43-
<p style={{ maxWidth: '550px', paddingBottom: '30px', ...pStyle }}>
53+
<h2 style={{
54+
margin: '4px 0px',
55+
fontSize: '34pt'
56+
}}>My blog posts</h2>
57+
<p style={{
58+
maxWidth: '550px',
59+
paddingBottom: '30px',
60+
...pStyle
61+
}}>
4462
This section demonstrates the power of dynamic imports. Every Markdown
4563
file under <code>/md/blog</code> is automatically parsed into a
4664
structured TypeScript object and available in the{' '}
@@ -65,7 +83,12 @@ const Home = (props: {
6583
</div>
6684

6785
<div style={{ ...sectionStyle }}>
68-
<h2 style={{ textAlign: 'center', fontSize: '34pt' }}>Testimonials</h2>
86+
<h2 style={{
87+
textAlign: 'center',
88+
fontSize: '34pt'
89+
}}>
90+
Testimonials
91+
</h2>
6992
<blockquote
7093
style={{
7194
borderLeft: `3px solid ${globals.accentColor}`,
@@ -86,7 +109,14 @@ const Home = (props: {
86109
</div>
87110

88111
<div style={{ ...sectionStyle }}>
89-
<h2 style={{ textAlign: 'center', fontSize: '34pt' }}>README.md</h2>
112+
<h2
113+
style={{
114+
textAlign: 'center',
115+
fontSize: '34pt'
116+
}}
117+
>
118+
README.md
119+
</h2>
90120
<p
91121
style={{
92122
textAlign: 'center',
@@ -125,7 +155,10 @@ const Home = (props: {
125155

126156
<div style={sectionStyle}>
127157
<h2
128-
style={{ margin: '4px 0px', fontSize: '22pt', paddingBottom: '30px' }}
158+
style={{
159+
margin: '4px 0px',
160+
fontSize: '22pt',
161+
paddingBottom: '30px' }}
129162
>
130163
Get started
131164
</h2>

0 commit comments

Comments
 (0)