@rspress-theme-anatole/theme-default 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.css +187 -0
- package/dist/bundle.js +293 -141
- package/package.json +2 -2
package/dist/bundle.css
CHANGED
|
@@ -3507,4 +3507,191 @@ p {
|
|
|
3507
3507
|
|
|
3508
3508
|
.rspress-nav {
|
|
3509
3509
|
border-bottom: 1px solid var(--Colors-Neutral-3, #D2D5DA);
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
.top-search-suggestions-label {
|
|
3513
|
+
font-weight: 600;
|
|
3514
|
+
font-size: 16px;
|
|
3515
|
+
line-height: 34px;
|
|
3516
|
+
letter-spacing: 0%;
|
|
3517
|
+
vertical-align: middle;
|
|
3518
|
+
color: #32363E;
|
|
3519
|
+
margin-left: 40px;
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
.top-search-suggestion-item {
|
|
3523
|
+
font-weight: 400;
|
|
3524
|
+
font-size: 16px;
|
|
3525
|
+
line-height: 18px;
|
|
3526
|
+
vertical-align: middle;
|
|
3527
|
+
color: #32363E;
|
|
3528
|
+
height: 34;
|
|
3529
|
+
padding-top: 6px;
|
|
3530
|
+
padding-right: 10px;
|
|
3531
|
+
padding-bottom: 6px;
|
|
3532
|
+
padding-left: 10px;
|
|
3533
|
+
gap: 10px;
|
|
3534
|
+
border-radius: 100px;
|
|
3535
|
+
background-color: #FFFFFF;
|
|
3536
|
+
border: 1px solid var(--Colors-Neutral-3, #D2D5DA);
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
.topics-title {
|
|
3540
|
+
font-weight: 700;
|
|
3541
|
+
font-size: 24px;
|
|
3542
|
+
line-height: 32px;
|
|
3543
|
+
letter-spacing: -2%;
|
|
3544
|
+
vertical-align: middle;
|
|
3545
|
+
color: #32363E;
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
.topics-show-more {
|
|
3549
|
+
font-weight: 600;
|
|
3550
|
+
font-size: 18px;
|
|
3551
|
+
line-height: 24px;
|
|
3552
|
+
letter-spacing: -1%;
|
|
3553
|
+
text-align: right;
|
|
3554
|
+
vertical-align: middle;
|
|
3555
|
+
text-decoration: underline;
|
|
3556
|
+
text-decoration-style: solid;
|
|
3557
|
+
text-decoration-thickness: 0%;
|
|
3558
|
+
color: #1781D9;
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
.topics-div {
|
|
3562
|
+
margin: 72px 40px 0px 40px;
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
.topics-item {
|
|
3566
|
+
width: 100%;
|
|
3567
|
+
height: 184;
|
|
3568
|
+
border-radius: 8px;
|
|
3569
|
+
border-width: 1px;
|
|
3570
|
+
padding: 24px;
|
|
3571
|
+
background-color: #FFFFFF;
|
|
3572
|
+
border: 1px solid var(--Colors-Neutral-3, #D2D5DA);
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3575
|
+
.topics-item-text {
|
|
3576
|
+
font-weight: 700;
|
|
3577
|
+
font-size: 20px;
|
|
3578
|
+
line-height: 28px;
|
|
3579
|
+
letter-spacing: -2%;
|
|
3580
|
+
vertical-align: middle;
|
|
3581
|
+
color: #32363E;
|
|
3582
|
+
margin-top: 8px;
|
|
3583
|
+
}
|
|
3584
|
+
|
|
3585
|
+
.topics-item-desc {
|
|
3586
|
+
font-weight: 400;
|
|
3587
|
+
font-size: 16px;
|
|
3588
|
+
line-height: 22px;
|
|
3589
|
+
letter-spacing: 0%;
|
|
3590
|
+
vertical-align: middle;
|
|
3591
|
+
color: #494F5A;
|
|
3592
|
+
margin-top: 8px;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
.topics-item-icon {
|
|
3596
|
+
font-family: 'Font Awesome 6 Free';
|
|
3597
|
+
font-weight: 900;
|
|
3598
|
+
font-size: 32px;
|
|
3599
|
+
line-height: 100%;
|
|
3600
|
+
letter-spacing: 0%;
|
|
3601
|
+
text-align: center;
|
|
3602
|
+
vertical-align: middle;
|
|
3603
|
+
color: #EF483D;
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
.features-item-icon-div {
|
|
3607
|
+
width: 40;
|
|
3608
|
+
height: 40;
|
|
3609
|
+
border-radius: 8px;
|
|
3610
|
+
background-color: #EF483D;
|
|
3611
|
+
text-align: center;
|
|
3612
|
+
padding-top: 8px;
|
|
3613
|
+
}
|
|
3614
|
+
|
|
3615
|
+
.features-item-icon {
|
|
3616
|
+
font-size: 22px;
|
|
3617
|
+
color: #FFFFFF;
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
.features-div {
|
|
3621
|
+
margin: 45px 40px 0px 40px;
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
.faqs-div {
|
|
3625
|
+
background-color: #F1F2F4;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
.faqs-item-question {
|
|
3629
|
+
font-weight: 600;
|
|
3630
|
+
font-size: 20px;
|
|
3631
|
+
line-height: 28px;
|
|
3632
|
+
letter-spacing: -2%;
|
|
3633
|
+
color: #32363E;
|
|
3634
|
+
justify-content: space-between;
|
|
3635
|
+
display: flex;
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
.faqs-item-answer {
|
|
3639
|
+
font-weight: 400;
|
|
3640
|
+
font-size: 16px;
|
|
3641
|
+
line-height: 22px;
|
|
3642
|
+
letter-spacing: 0%;
|
|
3643
|
+
color: #32363E;
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
.faqs-box {
|
|
3647
|
+
background-color: white;
|
|
3648
|
+
margin: 24px 0 0 0;
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
.faqs-box-item {
|
|
3652
|
+
height: 76;
|
|
3653
|
+
/* gap: 24px; */
|
|
3654
|
+
border-bottom-width: 1px;
|
|
3655
|
+
padding: 24px;
|
|
3656
|
+
border-color: #D2D5DA;
|
|
3657
|
+
}
|
|
3658
|
+
|
|
3659
|
+
.contact-us-p1 {
|
|
3660
|
+
font-weight: 700;
|
|
3661
|
+
font-size: 24px;
|
|
3662
|
+
line-height: 32px;
|
|
3663
|
+
letter-spacing: -2%;
|
|
3664
|
+
text-align: center;
|
|
3665
|
+
vertical-align: middle;
|
|
3666
|
+
color: #32363E;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
.contact-us-p2 {
|
|
3670
|
+
font-weight: 400;
|
|
3671
|
+
font-size: 16px;
|
|
3672
|
+
line-height: 22px;
|
|
3673
|
+
letter-spacing: 0%;
|
|
3674
|
+
vertical-align: middle;
|
|
3675
|
+
color: #32363E;
|
|
3676
|
+
margin-top: 24px;
|
|
3677
|
+
text-align: center;
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
.contact-us-btn {
|
|
3681
|
+
width: 203;
|
|
3682
|
+
height: 50;
|
|
3683
|
+
border-radius: 100px;
|
|
3684
|
+
background-color: #EF483D;
|
|
3685
|
+
margin: 24px 0 72px 0;
|
|
3686
|
+
color: white;
|
|
3687
|
+
text-align: center;
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
.contactus-div {
|
|
3691
|
+
justify-self: center;
|
|
3692
|
+
margin-top: 72px;
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
.pb-12 {
|
|
3696
|
+
padding-bottom: 0 !important;
|
|
3510
3697
|
}
|
package/dist/bundle.js
CHANGED
|
@@ -1193,14 +1193,18 @@ function HomepageLayout(props) {
|
|
|
1193
1193
|
frontmatter: frontmatter,
|
|
1194
1194
|
routePath: routePath
|
|
1195
1195
|
}),
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1196
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomepageTopics, {
|
|
1197
|
+
frontmatter: frontmatter,
|
|
1198
|
+
routePath: routePath
|
|
1199
|
+
}),
|
|
1200
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomepageFeatures, {
|
|
1201
|
+
frontmatter: frontmatter,
|
|
1202
|
+
routePath: routePath
|
|
1203
|
+
}),
|
|
1204
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomepageFaqs, {
|
|
1205
|
+
frontmatter: frontmatter,
|
|
1206
|
+
routePath: routePath
|
|
1207
|
+
}),
|
|
1204
1208
|
]
|
|
1205
1209
|
}),
|
|
1206
1210
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomeFooter, {})
|
|
@@ -1221,18 +1225,10 @@ function HomeLayout(props) {
|
|
|
1221
1225
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
1222
1226
|
className: "pb-12",
|
|
1223
1227
|
children: [
|
|
1224
|
-
beforeHero,
|
|
1225
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__theme_75e53063__.HomeHero, {
|
|
1226
|
-
frontmatter: frontmatter,
|
|
1227
|
-
routePath: routePath
|
|
1228
|
-
}),
|
|
1229
|
-
afterHero,
|
|
1230
|
-
beforeFeatures,
|
|
1231
1228
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__theme_75e53063__.HomeFeature, {
|
|
1232
1229
|
frontmatter: frontmatter,
|
|
1233
1230
|
routePath: routePath
|
|
1234
1231
|
}),
|
|
1235
|
-
afterFeatures
|
|
1236
1232
|
]
|
|
1237
1233
|
}),
|
|
1238
1234
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__theme_75e53063__.HomeFooter, {})
|
|
@@ -2521,6 +2517,199 @@ function HomeFeature({ frontmatter, routePath }) {
|
|
|
2521
2517
|
});
|
|
2522
2518
|
}
|
|
2523
2519
|
|
|
2520
|
+
function HomepageTopics({ frontmatter, routePath }) {
|
|
2521
|
+
const topics = frontmatter?.topics;
|
|
2522
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2523
|
+
children: [
|
|
2524
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2525
|
+
children: [
|
|
2526
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
|
|
2527
|
+
children: topics.title ?? 'Topics',
|
|
2528
|
+
className: "topics-title"
|
|
2529
|
+
}),
|
|
2530
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
|
|
2531
|
+
children: 'Show more',
|
|
2532
|
+
className: "topics-show-more"
|
|
2533
|
+
}),
|
|
2534
|
+
],
|
|
2535
|
+
style: {
|
|
2536
|
+
display: 'flex',
|
|
2537
|
+
justifyContent: 'space-between',
|
|
2538
|
+
width: '100%',
|
|
2539
|
+
}
|
|
2540
|
+
}),
|
|
2541
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2542
|
+
children: topics.items.map((topicItem) => {
|
|
2543
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2544
|
+
className: "topics-item",
|
|
2545
|
+
children: [
|
|
2546
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("i", {
|
|
2547
|
+
className: topicItem.icon + " topics-item-icon",
|
|
2548
|
+
}),
|
|
2549
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h3", {
|
|
2550
|
+
className: "topics-item-text",
|
|
2551
|
+
children: topicItem.text
|
|
2552
|
+
}),
|
|
2553
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2554
|
+
className: "topics-item-desc",
|
|
2555
|
+
children: topicItem.desc
|
|
2556
|
+
}),
|
|
2557
|
+
]
|
|
2558
|
+
})
|
|
2559
|
+
}),
|
|
2560
|
+
style: {
|
|
2561
|
+
display: 'flex',
|
|
2562
|
+
justifyContent: 'space-between',
|
|
2563
|
+
width: '100%',
|
|
2564
|
+
marginTop: '24px',
|
|
2565
|
+
gap: '24px',
|
|
2566
|
+
}
|
|
2567
|
+
}),
|
|
2568
|
+
|
|
2569
|
+
],
|
|
2570
|
+
className: "topics-div",
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
function HomepageFeatures({ frontmatter, routePath }) {
|
|
2575
|
+
const features = frontmatter?.features;
|
|
2576
|
+
|
|
2577
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2578
|
+
children: [
|
|
2579
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2580
|
+
children: [
|
|
2581
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
|
|
2582
|
+
children: features.title ?? 'Features',
|
|
2583
|
+
className: "topics-title"
|
|
2584
|
+
}),
|
|
2585
|
+
],
|
|
2586
|
+
style: {
|
|
2587
|
+
display: 'flex',
|
|
2588
|
+
justifyContent: 'space-between',
|
|
2589
|
+
width: '100%',
|
|
2590
|
+
}
|
|
2591
|
+
}),
|
|
2592
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2593
|
+
children: features.rows.map((featuresRow) => {
|
|
2594
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2595
|
+
children: featuresRow.items.map((featureItem) => {
|
|
2596
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2597
|
+
className: "topics-item",
|
|
2598
|
+
children: [
|
|
2599
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2600
|
+
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("i", {
|
|
2601
|
+
className: featureItem.icon + " features-item-icon",
|
|
2602
|
+
}),
|
|
2603
|
+
className: "features-item-icon-div"
|
|
2604
|
+
}),
|
|
2605
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h3", {
|
|
2606
|
+
className: "topics-item-text",
|
|
2607
|
+
children: featureItem.text
|
|
2608
|
+
}),
|
|
2609
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2610
|
+
className: "topics-item-desc",
|
|
2611
|
+
children: featureItem.desc
|
|
2612
|
+
}),
|
|
2613
|
+
]
|
|
2614
|
+
});
|
|
2615
|
+
}),
|
|
2616
|
+
|
|
2617
|
+
style: {
|
|
2618
|
+
display: 'flex',
|
|
2619
|
+
justifyContent: 'space-between',
|
|
2620
|
+
width: '100%',
|
|
2621
|
+
gap: '24px',
|
|
2622
|
+
marginTop: '24px',
|
|
2623
|
+
}
|
|
2624
|
+
});
|
|
2625
|
+
}),
|
|
2626
|
+
style: {
|
|
2627
|
+
}
|
|
2628
|
+
}),
|
|
2629
|
+
],
|
|
2630
|
+
className: "features-div",
|
|
2631
|
+
});
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
function HomepageFaqs({ frontmatter, routePath }) {
|
|
2635
|
+
const faqs = frontmatter?.faqs;
|
|
2636
|
+
const contactus = frontmatter?.contactus;
|
|
2637
|
+
|
|
2638
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2639
|
+
children: [
|
|
2640
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2641
|
+
children: [
|
|
2642
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
|
|
2643
|
+
children: faqs.title ?? 'FAQs',
|
|
2644
|
+
className: "topics-title"
|
|
2645
|
+
}),
|
|
2646
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2647
|
+
children: faqs.items.map((faqItem) => {
|
|
2648
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2649
|
+
children: [
|
|
2650
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2651
|
+
children: [
|
|
2652
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
2653
|
+
children: faqItem.question,
|
|
2654
|
+
}),
|
|
2655
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
2656
|
+
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("i", {
|
|
2657
|
+
className: "fa-solid fa-chevron-down",
|
|
2658
|
+
}),
|
|
2659
|
+
}),
|
|
2660
|
+
],
|
|
2661
|
+
className: "faqs-item-question",
|
|
2662
|
+
}),
|
|
2663
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2664
|
+
children: faqItem.answer,
|
|
2665
|
+
className: "faqs-item-answer",
|
|
2666
|
+
}),
|
|
2667
|
+
],
|
|
2668
|
+
className: "faqs-box-item",
|
|
2669
|
+
})
|
|
2670
|
+
}),
|
|
2671
|
+
className: "faqs-box"
|
|
2672
|
+
}),
|
|
2673
|
+
|
|
2674
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2675
|
+
children: [
|
|
2676
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2677
|
+
children: contactus.p1,
|
|
2678
|
+
className: "contact-us-p1"
|
|
2679
|
+
}),
|
|
2680
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2681
|
+
children: contactus.p2,
|
|
2682
|
+
className: "contact-us-p2"
|
|
2683
|
+
}),
|
|
2684
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2685
|
+
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
|
|
2686
|
+
children: contactus.btn ?? 'Contact us',
|
|
2687
|
+
className: "contact-us-btn"
|
|
2688
|
+
}),
|
|
2689
|
+
style: {
|
|
2690
|
+
width: '100%',
|
|
2691
|
+
display: 'flex',
|
|
2692
|
+
justifyContent: 'center',
|
|
2693
|
+
|
|
2694
|
+
}
|
|
2695
|
+
}),
|
|
2696
|
+
],
|
|
2697
|
+
className: "contactus-div"
|
|
2698
|
+
}),
|
|
2699
|
+
],
|
|
2700
|
+
style: {
|
|
2701
|
+
width: '100%',
|
|
2702
|
+
marginTop: '72px',
|
|
2703
|
+
padding: '72px 40px 0 40px',
|
|
2704
|
+
}
|
|
2705
|
+
}),
|
|
2706
|
+
],
|
|
2707
|
+
className: "faqs-div",
|
|
2708
|
+
});
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
|
|
2524
2713
|
function HomeFooter() {
|
|
2525
2714
|
const { siteData } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
|
|
2526
2715
|
const { group, message, links, social } = siteData.themeConfig.footer || {};
|
|
@@ -2598,14 +2787,11 @@ const DEFAULT_HERO = {
|
|
|
2598
2787
|
};
|
|
2599
2788
|
|
|
2600
2789
|
function HomepageTopSearch({ frontmatter, routePath }) {
|
|
2601
|
-
const
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
light: hero.image.src,
|
|
2607
|
-
dark: hero.image.src
|
|
2608
|
-
} : hero.image?.src || {
|
|
2790
|
+
const topSearch = frontmatter?.topSearch || DEFAULT_HERO;
|
|
2791
|
+
const imageSrc = 'string' == typeof topSearch.image?.src ? {
|
|
2792
|
+
light: topSearch.image.src,
|
|
2793
|
+
dark: topSearch.image.src
|
|
2794
|
+
} : topSearch.image?.src || {
|
|
2609
2795
|
light: '',
|
|
2610
2796
|
dark: ''
|
|
2611
2797
|
};
|
|
@@ -2619,33 +2805,93 @@ function HomepageTopSearch({ frontmatter, routePath }) {
|
|
|
2619
2805
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h1", {
|
|
2620
2806
|
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
2621
2807
|
style: {
|
|
2622
|
-
|
|
2808
|
+
fontWeight: '700',
|
|
2809
|
+
fontSize: '40px',
|
|
2810
|
+
lineHeight: '100%',
|
|
2811
|
+
letterSpacing: '-2%',
|
|
2812
|
+
textAlign: 'center',
|
|
2813
|
+
verticalAlign: 'middle',
|
|
2814
|
+
margin: '103px 0 0 40px',
|
|
2623
2815
|
},
|
|
2624
|
-
children: renderHtmlOrText(
|
|
2625
|
-
})
|
|
2816
|
+
children: renderHtmlOrText(topSearch.text)
|
|
2817
|
+
}),
|
|
2818
|
+
style: {
|
|
2819
|
+
paddingTop: '103px'
|
|
2820
|
+
}
|
|
2626
2821
|
}),
|
|
2627
|
-
|
|
2822
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2823
|
+
children: [
|
|
2824
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("i", {
|
|
2825
|
+
className: "fa-solid fa-magnifying-glass",
|
|
2826
|
+
style: {
|
|
2827
|
+
color: '#7E8695',
|
|
2828
|
+
fontSize: '20px',
|
|
2829
|
+
fontWeight: '900',
|
|
2830
|
+
lineHeight: '18px',
|
|
2831
|
+
letterSpacing: '-1%',
|
|
2832
|
+
zIndex: '100',
|
|
2833
|
+
margin: '22px -50px 0 20px',
|
|
2834
|
+
}
|
|
2835
|
+
}),
|
|
2836
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
|
|
2837
|
+
type: "search",
|
|
2838
|
+
placeholder: topSearch.placeholder,
|
|
2839
|
+
className: "top-search-input",
|
|
2840
|
+
style: {
|
|
2841
|
+
width: 500,
|
|
2842
|
+
height: 58,
|
|
2843
|
+
borderRadius: '100px',
|
|
2844
|
+
borderWidth: '1px',
|
|
2845
|
+
paddingRight: '18px',
|
|
2846
|
+
paddingLeft: '50px',
|
|
2847
|
+
|
|
2848
|
+
}
|
|
2849
|
+
}),
|
|
2850
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2851
|
+
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
|
|
2852
|
+
dangerouslySetInnerHTML: {
|
|
2853
|
+
__html: 'Search'
|
|
2854
|
+
},
|
|
2855
|
+
style: {
|
|
2856
|
+
width: '100px',
|
|
2857
|
+
height: '58px',
|
|
2858
|
+
borderRadius: '100px',
|
|
2859
|
+
paddingRight: '18px',
|
|
2860
|
+
paddingLeft: '18px',
|
|
2861
|
+
backgroundColor: '#EF483D',
|
|
2862
|
+
textalign: 'center',
|
|
2863
|
+
color: 'white'
|
|
2864
|
+
}
|
|
2865
|
+
})
|
|
2866
|
+
})
|
|
2867
|
+
],
|
|
2628
2868
|
style: {
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2869
|
+
display: 'flex',
|
|
2870
|
+
gap: '10px',
|
|
2871
|
+
margin: '24px 0 0 40px',
|
|
2872
|
+
}
|
|
2873
|
+
}),
|
|
2633
2874
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2634
|
-
children:
|
|
2875
|
+
children: [
|
|
2876
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
2877
|
+
children: "Suggestions:",
|
|
2878
|
+
className: 'top-search-suggestions-label'
|
|
2879
|
+
}),
|
|
2880
|
+
topSearch.suggestions.map((suggestion) => {
|
|
2881
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)('div', {
|
|
2882
|
+
children: suggestion.text,
|
|
2883
|
+
href: suggestion.link,
|
|
2884
|
+
className: 'top-search-suggestion-item'
|
|
2885
|
+
});
|
|
2886
|
+
}),
|
|
2887
|
+
|
|
2888
|
+
],
|
|
2889
|
+
style: {
|
|
2890
|
+
marginTop: '20px',
|
|
2891
|
+
display: 'flex',
|
|
2892
|
+
gap: '8px',
|
|
2893
|
+
}
|
|
2635
2894
|
}),
|
|
2636
|
-
hero.actions?.length && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2637
|
-
children: hero.actions.map((action) => {
|
|
2638
|
-
const link = (0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_baa012d0__.isExternalUrl)(action.link) ? action.link : (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.normalizeHrefInRuntime)((0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_baa012d0__.withBase)(action.link, routePath));
|
|
2639
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2640
|
-
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__theme_75e53063__.Button, {
|
|
2641
|
-
type: "a",
|
|
2642
|
-
href: link,
|
|
2643
|
-
text: renderHtmlOrText(action.text),
|
|
2644
|
-
theme: action.theme,
|
|
2645
|
-
})
|
|
2646
|
-
}, link);
|
|
2647
|
-
})
|
|
2648
|
-
})
|
|
2649
2895
|
]
|
|
2650
2896
|
}),
|
|
2651
2897
|
]
|
|
@@ -2660,100 +2906,6 @@ function HomepageTopSearch({ frontmatter, routePath }) {
|
|
|
2660
2906
|
});
|
|
2661
2907
|
}
|
|
2662
2908
|
|
|
2663
|
-
function HomeHero({ frontmatter, routePath }) {
|
|
2664
|
-
const hero = frontmatter?.hero || DEFAULT_HERO;
|
|
2665
|
-
const hasImage = void 0 !== hero.image;
|
|
2666
|
-
const textMaxWidth = hasImage ? 'sm:max-w-xl' : 'sm:max-w-4xl';
|
|
2667
|
-
const multiHeroText = hero.text ? hero.text.toString().split(/\n/g).filter((text) => '' !== text) : [];
|
|
2668
|
-
const imageSrc = 'string' == typeof hero.image?.src ? {
|
|
2669
|
-
light: hero.image.src,
|
|
2670
|
-
dark: hero.image.src
|
|
2671
|
-
} : hero.image?.src || {
|
|
2672
|
-
light: '',
|
|
2673
|
-
dark: ''
|
|
2674
|
-
};
|
|
2675
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
2676
|
-
className: "m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16 relative",
|
|
2677
|
-
children: [
|
|
2678
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2679
|
-
className: HomeHero_index_module.mask,
|
|
2680
|
-
style: {
|
|
2681
|
-
left: hasImage ? '75%' : '50%'
|
|
2682
|
-
}
|
|
2683
|
-
}),
|
|
2684
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
2685
|
-
className: "m-auto flex flex-col md:flex-row max-w-6xl min-h-[50vh] mt-12 sm:mt-0",
|
|
2686
|
-
children: [
|
|
2687
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
2688
|
-
className: "flex flex-col justify-center items-center text-center max-w-xl sm:max-w-4xl m-auto order-2 md:order-1",
|
|
2689
|
-
children: [
|
|
2690
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h1", {
|
|
2691
|
-
className: "font-bold text-3xl pb-2 sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-2 leading-tight z-10",
|
|
2692
|
-
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
2693
|
-
className: HomeHero_index_module.clip,
|
|
2694
|
-
style: {
|
|
2695
|
-
lineHeight: '1.3'
|
|
2696
|
-
},
|
|
2697
|
-
children: renderHtmlOrText(hero.name)
|
|
2698
|
-
})
|
|
2699
|
-
}),
|
|
2700
|
-
0 !== multiHeroText.length && multiHeroText.map((heroText) => (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2701
|
-
className: `rspress-home-hero-text mx-auto md:m-0 text-3xl sm:text-5xl md:text-6xl sm:pb-2 font-bold z-10 ${textMaxWidth}`,
|
|
2702
|
-
style: {
|
|
2703
|
-
lineHeight: '1.2'
|
|
2704
|
-
},
|
|
2705
|
-
children: renderHtmlOrText(heroText)
|
|
2706
|
-
}, heroText)),
|
|
2707
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2708
|
-
className: `rspress-home-hero-tagline whitespace-pre-wrap pt-4 m-auto md:m-0 text-sm sm:tex-xl md:text-[1.5rem] text-text-2 font-medium z-10 ${textMaxWidth}`,
|
|
2709
|
-
children: renderHtmlOrText(hero.tagline)
|
|
2710
|
-
}),
|
|
2711
|
-
hero.actions?.length && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2712
|
-
className: "grid md:flex md:flex-wrap md:justify-center gap-3 m--1.5 pt-6 sm:pt-8 z-10",
|
|
2713
|
-
children: hero.actions.map((action) => {
|
|
2714
|
-
const link = (0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_baa012d0__.isExternalUrl)(action.link) ? action.link : (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.normalizeHrefInRuntime)((0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_baa012d0__.withBase)(action.link, routePath));
|
|
2715
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2716
|
-
className: "flex flex-shrink-0 p-1",
|
|
2717
|
-
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__theme_75e53063__.Button, {
|
|
2718
|
-
type: "a",
|
|
2719
|
-
href: link,
|
|
2720
|
-
text: renderHtmlOrText(action.text),
|
|
2721
|
-
theme: action.theme,
|
|
2722
|
-
className: "w-full"
|
|
2723
|
-
})
|
|
2724
|
-
}, link);
|
|
2725
|
-
})
|
|
2726
|
-
})
|
|
2727
|
-
]
|
|
2728
|
-
}),
|
|
2729
|
-
hasImage ? (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
2730
|
-
className: "rspress-home-hero-image md:flex-center m-auto order-1 md:order-2 sm:flex md:none lg:flex",
|
|
2731
|
-
children: [
|
|
2732
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("img", {
|
|
2733
|
-
src: (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.normalizeImagePath)(imageSrc.light),
|
|
2734
|
-
alt: hero.image?.alt,
|
|
2735
|
-
srcSet: normalizeSrcsetAndSizes(hero.image?.srcset),
|
|
2736
|
-
sizes: normalizeSrcsetAndSizes(hero.image?.sizes),
|
|
2737
|
-
width: 375,
|
|
2738
|
-
height: 375,
|
|
2739
|
-
className: "dark:hidden"
|
|
2740
|
-
}),
|
|
2741
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("img", {
|
|
2742
|
-
src: (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.normalizeImagePath)(imageSrc.dark),
|
|
2743
|
-
alt: hero.image?.alt,
|
|
2744
|
-
srcSet: normalizeSrcsetAndSizes(hero.image?.srcset),
|
|
2745
|
-
sizes: normalizeSrcsetAndSizes(hero.image?.sizes),
|
|
2746
|
-
width: 375,
|
|
2747
|
-
height: 375,
|
|
2748
|
-
className: "hidden dark:block"
|
|
2749
|
-
})
|
|
2750
|
-
]
|
|
2751
|
-
}) : null
|
|
2752
|
-
]
|
|
2753
|
-
})
|
|
2754
|
-
]
|
|
2755
|
-
});
|
|
2756
|
-
}
|
|
2757
2909
|
function normalizeSrcsetAndSizes(field) {
|
|
2758
2910
|
const r = (Array.isArray(field) ? field : [
|
|
2759
2911
|
field
|
|
@@ -5064,4 +5216,4 @@ const src_rslib_entry_ = {
|
|
|
5064
5216
|
HomeLayout: HomeLayout,
|
|
5065
5217
|
setup: setup
|
|
5066
5218
|
};
|
|
5067
|
-
export { Aside, Badge, Button, Card, DocFooter, DocLayout, EditLink, HomeFeature, HomeFooter,
|
|
5219
|
+
export { Aside, Badge, Button, Card, DocFooter, DocLayout, EditLink, HomeFeature, HomeFooter, HomeLayout, HomepageLayout, LastUpdated, Layout, Link, LinkCard, Nav, NotFoundLayout, Overview, PackageManagerTabs, PrevNextPage, types_RenderType as RenderType, ScrollToTop, Search, SearchPanel, Sidebar, SidebarList, SocialLinks, SourceCode, Steps, SwitchAppearance, Tab, Tabs, Tag, Toc, bindingAsideScroll, src_rslib_entry_ as default, getCustomMDXComponent, isMobileDevice, parseInlineMarkdownText, renderHtmlOrText, renderInlineMarkdown, scrollToTarget, setup, useEditLink, useEnableNav, useFullTextSearch, useHiddenNav, useLocaleSiteData, usePathUtils, usePrevNextPage, useRedirect4FirstVisit, useSidebarData, useThemeState };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress-theme-anatole/theme-default",
|
|
3
3
|
"author": "Anatole Tong",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"react-helmet-async": "^1.3.0",
|
|
34
34
|
"react-syntax-highlighter": "^15.6.1",
|
|
35
35
|
"@rspress/runtime": "1.43.8",
|
|
36
|
-
"@rspress-theme-anatole/shared": "0.1.
|
|
36
|
+
"@rspress-theme-anatole/shared": "0.1.6"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@microsoft/api-extractor": "^7.49.2",
|