Skip to content

Commit ed9efd5

Browse files
committed
docs: refine titles
1 parent 89bea40 commit ed9efd5

File tree

3 files changed

+40
-7
lines changed

3 files changed

+40
-7
lines changed

site/app/layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export default function RootLayout({ children }) {
1818
}
1919

2020
export const metadata = {
21-
title: 'devjar',
22-
description: 'live code runtime for your react project in browser',
21+
title: 'Devjar',
22+
description: 'Live React Component Previews in Browser',
2323
authors: [{ name: '@huozhi' }],
2424
openGraph: {
2525
images: 'https://repository-images.githubusercontent.com/483779830/28347c03-774a-4766-b113-54041fad1e72',

site/app/page.tsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Codesandbox } from '../ui/codesandbox'
33
const codeSample4 = {
44
'index.js': `\
55
import { useState } from 'react'
6-
76
import Text from './text'
87
import './styles.css'
98
@@ -135,11 +134,13 @@ export default function App() {
135134
export default function Page() {
136135
return (
137136
<main>
138-
<div>
137+
<div className='titles'>
139138
<h1>Devjar</h1>
139+
<h3>
140+
Live React Component Previews in Browser
141+
</h3>
140142
<p>
141-
A live-code runtime for React, running directly in the browser. Perfect for interactive demos, documentation,
142-
and real-time code previews. Simple to integrate and highly flexible for any React project.
143+
Devjar lets you create interactive demos, enhance documentation, and deliver real-time code previews with ease. It's simple to integrate and highly adaptable for any React project.
143144
</p>
144145
<br />
145146
</div>

site/styles.css

+33-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ body {
1212
margin: 0;
1313
padding: 0 8px;
1414
max-width: 1260px;
15+
margin: 0 auto;
16+
width: 100vw;
1517
}
1618
main {
1719
min-width: 600px;
18-
margin: 0 auto;
1920
}
2021
:root {
2122
--sh-class: #6f42c1;
@@ -143,5 +144,36 @@ textarea:focus-visible {
143144
display: grid;
144145
grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
145146
gap: 16px;
147+
margin: 54px 0;
148+
}
149+
150+
.titles {
151+
display: flex;
152+
flex-direction: column;
153+
justify-content: space-between;
154+
align-items: center;
155+
padding: 32px 0;
156+
line-height: 1.4;
157+
width: 100%;
158+
max-width: 680px;
159+
margin: 0 auto;
160+
text-align: center;
161+
}
162+
163+
.titles h1 {
164+
font-size: 52px;
165+
margin: 0;
166+
}
146167

168+
.titles h3 {
169+
font-size: 32px;
170+
color: #404756;
171+
margin: 0;
172+
padding: 8px 0;
173+
}
174+
175+
.titles p {
176+
font-size: 20px;
177+
margin: 0;
178+
padding: 8px 0;
147179
}

0 commit comments

Comments
 (0)