Skip to content

Commit 0d20904

Browse files
Revert "Update landing page with minimalistic Apple-style design and San Francisco fonts"
This reverts commit c2f31ea.
1 parent c2f31ea commit 0d20904

File tree

1 file changed

+54
-108
lines changed

1 file changed

+54
-108
lines changed

index.html

Lines changed: 54 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
--apple-button-hover: #0077ed;
2020
--apple-feature-card: rgba(255, 255, 255, 0.8);
2121
--apple-card-shadow: rgba(0, 0, 0, 0.04);
22-
--heading-font: -apple-system-headline, ui-sans-serif, system-ui, sans-serif, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial;
23-
--body-font: -apple-system-body, ui-sans-serif, system-ui, sans-serif, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial;
22+
--heading-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
23+
--body-font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
2424
--theme-switch-bg: #f5f5f7;
2525
--theme-switch-border: #d2d2d7;
2626
}
@@ -56,8 +56,6 @@
5656
letter-spacing: -0.022em;
5757
transition: background-color 0.5s ease, color 0.5s ease;
5858
-webkit-font-smoothing: antialiased;
59-
-moz-osx-font-smoothing: grayscale;
60-
text-rendering: optimizeLegibility;
6159
}
6260

6361
.container {
@@ -166,11 +164,10 @@
166164

167165
.hero {
168166
text-align: center;
169-
padding: 180px 0 120px;
167+
padding: 120px 0 80px;
170168
background-color: var(--apple-bg);
171169
transition: background-color 0.5s ease;
172170
overflow: hidden;
173-
position: relative;
174171
}
175172

176173
h1 {
@@ -179,17 +176,17 @@
179176
line-height: 1.07143;
180177
font-weight: 600;
181178
letter-spacing: -0.005em;
182-
margin-bottom: 16px;
179+
margin-bottom: 8px;
183180
color: var(--apple-text);
184181
transition: color 0.5s ease;
185182
}
186183

187184
.hero p {
188-
font-size: 27px;
185+
font-size: 23px;
189186
line-height: 1.381;
190187
font-weight: 400;
191188
letter-spacing: 0.004em;
192-
max-width: 760px;
189+
max-width: 600px;
193190
margin: 0 auto 40px;
194191
color: var(--apple-secondary-text);
195192
transition: color 0.5s ease;
@@ -199,7 +196,7 @@
199196
display: inline-block;
200197
background-color: var(--apple-button-bg);
201198
color: white;
202-
padding: 12px 28px;
199+
padding: 12px 22px;
203200
border-radius: 980px;
204201
text-decoration: none;
205202
font-size: 17px;
@@ -214,7 +211,6 @@
214211

215212
.btn:hover {
216213
background-color: var(--apple-button-hover);
217-
transform: scale(1.02);
218214
}
219215

220216
.btn-secondary {
@@ -228,15 +224,14 @@
228224
}
229225

230226
.highlights {
231-
padding: 140px 0;
227+
padding: 100px 0;
232228
background-color: var(--apple-bg);
233229
transition: background-color 0.5s ease;
234-
position: relative;
235230
}
236231

237232
.section-title {
238233
text-align: center;
239-
margin-bottom: 100px;
234+
margin-bottom: 80px;
240235
font-family: var(--heading-font);
241236
font-size: 48px;
242237
line-height: 1.08349;
@@ -248,14 +243,14 @@
248243

249244
.highlights-grid {
250245
display: grid;
251-
grid-template-columns: repeat(3, 1fr);
252-
gap: 60px;
246+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
247+
gap: 40px;
253248
}
254249

255250
.highlight {
256251
text-align: center;
257-
padding: 50px 30px;
258-
border-radius: 30px;
252+
padding: 40px 20px;
253+
border-radius: 20px;
259254
background-color: var(--apple-secondary-bg);
260255
transition: transform 0.5s ease, background-color 0.5s ease;
261256
overflow: hidden;
@@ -268,7 +263,7 @@
268263
}
269264

270265
.highlight:hover {
271-
transform: translateY(-10px);
266+
transform: scale(1.02);
272267
}
273268

274269
.highlight h3 {
@@ -277,7 +272,7 @@
277272
line-height: 1.14286;
278273
font-weight: 600;
279274
letter-spacing: 0.007em;
280-
margin: 20px 0 16px;
275+
margin: 20px 0 10px;
281276
color: var(--apple-text);
282277
transition: color 0.5s ease;
283278
}
@@ -293,14 +288,13 @@
293288

294289
.highlight-icon {
295290
font-size: 56px;
296-
margin-bottom: 24px;
291+
margin-bottom: 20px;
297292
}
298293

299294
.features {
300-
padding: 140px 0;
295+
padding: 100px 0;
301296
background-color: var(--apple-secondary-bg);
302297
transition: background-color 0.5s ease;
303-
position: relative;
304298
}
305299

306300
[data-theme="dark"] .features {
@@ -309,13 +303,13 @@
309303

310304
.features-grid {
311305
display: grid;
312-
grid-template-columns: repeat(3, 1fr);
313-
gap: 40px;
306+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
307+
gap: 30px;
314308
}
315309

316310
.feature {
317311
background-color: var(--apple-bg);
318-
border-radius: 24px;
312+
border-radius: 20px;
319313
overflow: hidden;
320314
box-shadow: 0 4px 30px var(--apple-card-shadow);
321315
transition: transform 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
@@ -326,12 +320,12 @@
326320
}
327321

328322
.feature:hover {
329-
transform: translateY(-10px);
330-
box-shadow: 0 20px 50px var(--apple-card-shadow);
323+
transform: translateY(-6px);
324+
box-shadow: 0 12px 40px var(--apple-card-shadow);
331325
}
332326

333327
.feature-content {
334-
padding: 40px 30px;
328+
padding: 30px;
335329
text-align: center;
336330
}
337331

@@ -341,7 +335,7 @@
341335
line-height: 1.16667;
342336
font-weight: 600;
343337
letter-spacing: 0.009em;
344-
margin-bottom: 16px;
338+
margin-bottom: 10px;
345339
color: var(--apple-text);
346340
transition: color 0.5s ease;
347341
}
@@ -356,13 +350,13 @@
356350
}
357351

358352
.feature-icon {
359-
font-size: 48px;
360-
margin-bottom: 24px;
353+
font-size: 40px;
354+
margin-bottom: 20px;
361355
}
362356

363357
footer {
364358
background-color: var(--apple-bg);
365-
padding: 60px 0 30px;
359+
padding: 20px 0;
366360
text-align: center;
367361
color: var(--apple-secondary-text);
368362
font-size: 12px;
@@ -384,18 +378,17 @@
384378
}
385379

386380
.footer-links {
387-
margin-bottom: 30px;
381+
margin-bottom: 10px;
388382
}
389383

390384
.footer-links a {
391385
margin: 0 15px;
392-
font-size: 14px;
393386
}
394387

395388
.footer-logo {
396389
display: block;
397-
margin: 0 auto 30px;
398-
height: 50px;
390+
margin: 0 auto 20px;
391+
height: 40px;
399392
}
400393

401394
.copyright {
@@ -409,25 +402,16 @@
409402
margin: 0 auto;
410403
}
411404

412-
.hero-image-container {
413-
position: relative;
414-
margin: 60px auto 0;
415-
max-width: 600px;
416-
}
417-
418405
.hero-image {
419406
max-width: 100%;
420407
height: auto;
408+
margin: 40px auto 0;
409+
transition: transform 0.5s ease;
421410
display: block;
422-
margin: 0 auto;
423-
transition: transform 0.8s ease;
424-
animation: float 6s ease-in-out infinite;
425411
}
426412

427-
@keyframes float {
428-
0% { transform: translateY(0px); }
429-
50% { transform: translateY(-15px); }
430-
100% { transform: translateY(0px); }
413+
.hero-image:hover {
414+
transform: scale(1.02);
431415
}
432416

433417
@media only screen and (max-width: 768px) {
@@ -463,81 +447,61 @@
463447
}
464448

465449
.hero {
466-
padding: 100px 0 80px;
450+
padding: 60px 0 40px;
467451
}
468452

469453
.hero p {
470-
font-size: 22px;
454+
font-size: 19px;
471455
}
472456

473457
.btn {
474458
display: block;
475-
margin: 16px auto;
459+
margin: 10px auto;
476460
max-width: 250px;
477461
}
478462

479463
.section-title {
480464
font-size: 32px;
481-
margin-bottom: 60px;
465+
margin-bottom: 40px;
482466
}
483467

484468
.highlights, .features {
485-
padding: 80px 0;
486-
}
487-
488-
.highlights-grid, .features-grid {
489-
grid-template-columns: 1fr;
469+
padding: 60px 0;
490470
}
491471
}
492472

493-
/* Subtle animations */
494-
@keyframes fadeUp {
495-
from { opacity: 0; transform: translateY(30px); }
473+
/* Mirroring Apple's animation style */
474+
@keyframes fadeIn {
475+
from { opacity: 0; transform: translateY(20px); }
496476
to { opacity: 1; transform: translateY(0); }
497477
}
498478

499-
.hero h1 {
500-
animation: fadeUp 0.8s ease-out forwards;
479+
.hero h1, .hero p, .btn, .hero-image, .highlight, .feature {
480+
animation: fadeIn 0.8s ease-out forwards;
501481
}
502482

503483
.hero p {
504-
animation: fadeUp 0.8s ease-out forwards;
505484
animation-delay: 0.2s;
506-
opacity: 0;
507485
}
508486

509487
.btn {
510-
animation: fadeUp 0.8s ease-out forwards;
511488
animation-delay: 0.4s;
512-
opacity: 0;
513489
}
514490

515-
.hero-image-container {
516-
animation: fadeUp 0.8s ease-out forwards;
491+
.hero-image {
517492
animation-delay: 0.6s;
518-
opacity: 0;
519493
}
520494

521-
.highlight, .feature {
522-
opacity: 0;
495+
.highlight:nth-child(1), .feature:nth-child(1) {
496+
animation-delay: 0.2s;
523497
}
524498

525-
/* Intersection Observer styles */
526-
.fade-in {
527-
opacity: 1;
528-
transform: translateY(0);
529-
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
499+
.highlight:nth-child(2), .feature:nth-child(2) {
500+
animation-delay: 0.4s;
530501
}
531-
532-
/* Add system font stack with SF Pro dynamic scaling */
533-
@supports (font: -apple-system-body) {
534-
body {
535-
font: -apple-system-body;
536-
}
537-
538-
h1, h2, h3, .section-title {
539-
font: -apple-system-headline;
540-
}
502+
503+
.highlight:nth-child(3), .feature:nth-child(3) {
504+
animation-delay: 0.6s;
541505
}
542506
</style>
543507
</head>
@@ -573,9 +537,7 @@ <h1>OpenAPI Integration with DocC</h1>
573537
<p>Transform OpenAPI specifications into beautiful, interactive documentation.</p>
574538
<a href="docs/index.html" class="btn">View Documentation</a>
575539
<a href="https://github.com/ayushshrivastv/OpenAPI-integration-with-DocC" class="btn btn-secondary">View on GitHub</a>
576-
<div class="hero-image-container">
577-
<img src="docs/favicon.svg" alt="OpenAPI DocC graphic representation" class="hero-image" width="240">
578-
</div>
540+
<img src="docs/favicon.svg" alt="OpenAPI DocC graphic representation" class="hero-image" width="240">
579541
</div>
580542
</section>
581543

@@ -633,7 +595,7 @@ <h3>Auto-updating</h3>
633595

634596
<footer>
635597
<div class="container">
636-
<img class="footer-logo" src="docs/favicon.svg" alt="OpenAPI DocC Logo" width="50">
598+
<img class="footer-logo" src="docs/favicon.svg" alt="OpenAPI DocC Logo" width="40">
637599
<div class="footer-links">
638600
<a href="https://github.com/ayushshrivastv/OpenAPI-integration-with-DocC">GitHub</a>
639601
<a href="docs/index.html">Documentation</a>
@@ -708,22 +670,6 @@ <h3>Auto-updating</h3>
708670
}
709671
});
710672
}
711-
712-
// Intersection Observer for animations
713-
const observer = new IntersectionObserver((entries) => {
714-
entries.forEach(entry => {
715-
if (entry.isIntersecting) {
716-
entry.target.classList.add('fade-in');
717-
}
718-
});
719-
}, {
720-
threshold: 0.2
721-
});
722-
723-
// Observe all highlights and features
724-
document.querySelectorAll('.highlight, .feature').forEach(el => {
725-
observer.observe(el);
726-
});
727673
});
728674
</script>
729675
</body>

0 commit comments

Comments
 (0)