Skip to content

Commit db519de

Browse files
committed
polish website
1 parent 19f3980 commit db519de

4 files changed

Lines changed: 41 additions & 51 deletions

File tree

site/app/layout.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,13 @@ export default function RootLayout({ children }) {
99
{children}
1010
</main>
1111
<footer>
12-
<nav aria-label="Footer links">
13-
<div className="footer-group">
14-
<span className="footer-label">Project</span>
12+
<nav className="site-footer" aria-label="Footer links">
13+
<div className="footer-links">
1514
<a href="https://github.com/huozhi/devjar" target="_blank" rel="noopener noreferrer">
16-
Devjar repo
15+
GitHub
1716
</a>
1817
<a href="https://github.com/huozhi/devjar/blob/main/API.md" target="_blank" rel="noopener noreferrer">
19-
API
20-
</a>
21-
</div>
22-
<span className="footer-divider" aria-hidden="true" />
23-
<div className="footer-group">
24-
<span className="footer-label">Author</span>
25-
<a href="https://github.com/huozhi" target="_blank" rel="noopener noreferrer">
26-
Huozhi
18+
API.md
2719
</a>
2820
<a href="https://x.com/huozhi" target="_blank" rel="noopener noreferrer">
2921
X

site/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const codeSample = {
88
import './styles.css'
99
1010
const site = {
11-
name: 'Devjar',
12-
cta: 'Wiggle',
11+
name: 'DEVJAR',
12+
cta: 'WIGGLE',
1313
accent: '#525252',
1414
}
1515

site/styles.css

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -48,46 +48,42 @@ main {
4848
}
4949

5050
footer {
51-
margin-top: 3.5rem;
52-
padding: 0 1rem 2rem;
51+
margin-top: 4rem;
52+
padding: 0 1rem 2.25rem;
5353
display: flex;
5454
justify-content: center;
5555
}
5656

57-
footer nav {
58-
display: inline-flex;
57+
.site-footer {
58+
display: flex;
5959
align-items: center;
6060
justify-content: center;
61-
gap: 0.875rem;
62-
flex-wrap: wrap;
61+
gap: 1rem;
6362
max-width: 960px;
6463
width: 100%;
65-
padding-top: 1rem;
66-
border-top: 1px solid #e5e7eb;
67-
text-align: center;
68-
color: #6b7280;
69-
font-size: 0.875rem;
64+
padding-top: 1.125rem;
65+
border-top: 1px solid #e7e5e4;
66+
color: #737373;
67+
font-size: 0.8125rem;
7068
line-height: 1.5;
7169
}
7270

73-
.footer-group {
71+
.footer-links {
7472
display: inline-flex;
7573
align-items: center;
76-
gap: 0.625rem;
74+
justify-content: center;
75+
gap: 0.875rem;
76+
flex-wrap: wrap;
7777
}
7878

79-
.footer-label {
80-
color: #a3a3a3;
81-
font-size: 0.75rem;
82-
font-weight: 700;
83-
letter-spacing: 0.08em;
84-
text-transform: uppercase;
79+
.site-footer a {
80+
text-decoration: none;
8581
}
8682

87-
.footer-divider {
88-
width: 1px;
89-
height: 1rem;
90-
background: #e5e7eb;
83+
.footer-links a:hover {
84+
color: #171717;
85+
text-decoration: underline;
86+
text-underline-offset: 3px;
9187
}
9288

9389
.text-center {
@@ -132,15 +128,6 @@ footer nav {
132128
max-width: 760px;
133129
}
134130

135-
footer a {
136-
text-decoration: none;
137-
}
138-
139-
footer a:hover {
140-
text-decoration: underline;
141-
text-underline-offset: 3px;
142-
}
143-
144131
.usage-section {
145132
width: 100%;
146133
max-width: 680px;
@@ -225,10 +212,21 @@ footer a:hover {
225212
}
226213

227214
@media (max-width: 640px) {
228-
main,
229-
footer {
215+
main {
230216
padding: 0 0.5rem;
231217
}
218+
footer {
219+
padding: 0 0.5rem 2rem;
220+
}
221+
.site-footer {
222+
align-items: flex-start;
223+
flex-direction: column;
224+
gap: 0.75rem;
225+
}
226+
.footer-links {
227+
justify-content: flex-start;
228+
gap: 0.75rem;
229+
}
232230
[data-codesandbox] .codesandbox-layout {
233231
flex-direction: column;
234232
min-height: auto;

site/ui/codesandbox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export function Codesandbox({
266266
<div className="preview" ref={previewRef} style={{ height: previewHeight }}>
267267
<div className={previewReady ? 'preview--loading is-hidden' : 'preview--loading'} aria-hidden="true">
268268
<div className="preview--loading-copy">
269-
<h1>Devjar</h1>
269+
<h1>DEVJAR</h1>
270270
<p className="preview--loading-kicker">
271271
<span className="preview--loading-measure">
272272
React Live Preview in browser
@@ -275,8 +275,8 @@ export function Codesandbox({
275275
</p>
276276
<button className="preview--loading-button" type="button" tabIndex={-1}>
277277
<span className="preview--loading-measure">
278-
Wiggle
279-
<span className="preview--loading-noise">{renderLoaderCells('Wiggle', loaderFrame + 2)}</span>
278+
WIGGLE
279+
<span className="preview--loading-noise">{renderLoaderCells('WIGGLE', loaderFrame + 2)}</span>
280280
</span>
281281
</button>
282282
</div>

0 commit comments

Comments
 (0)