Skip to content

Commit 09205f9

Browse files
authored
fix(docs-ui): improve responsive layout for prev/next navigation cards (#781)
Signed-off-by: Kamakshi Mudgal <navyash110@gmail.com>
1 parent e565c9e commit 09205f9

File tree

2 files changed

+164
-39
lines changed

2 files changed

+164
-39
lines changed

src/components/KeployCloud.js

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,31 @@ import React from "react";
33
export const KeployCloud = () => {
44
return (
55
<section
6-
id="cloud"
7-
className="mb-8 mt-12 flex max-w-7xl items-center space-x-6 rounded-lg bg-[color:var(--ifm-card-background-color)] p-6 shadow-md"
6+
id="support"
7+
className="my-10 w-full border-y border-white/10 py-4"
88
>
9-
<div className="prose prose-orange max-w-3xl text-left">
10-
<h1 className="text-left">Questions? 🤔💭</h1>
11-
<p className="my-3 block text-left">
12-
For any support please{" "}
13-
<a
14-
href="https://join.slack.com/t/keploy/shared_invite/zt-357qqm9b5-PbZRVu3Yt2rJIa6ofrwWNg"
15-
className="text-orange-500 underline hover:text-orange-400"
16-
>
17-
join keploy slack community
18-
</a>{" "}
19-
to get help from fellow users, or{" "}
20-
<a
21-
href="https://calendar.app.google/cXVaj6hbMUjvmrnt9"
22-
className="text-orange-500 underline hover:text-orange-400"
23-
>
24-
book a demo
25-
</a>{" "}
26-
if you're exploring enterprise use cases.
27-
</p>
9+
<div className="mx-auto flex max-w-5xl flex-wrap items-center justify-center gap-3 text-sm text-gray-400">
10+
<span className="opacity-70">Need help?</span>
11+
12+
<a
13+
href="https://join.slack.com/t/keploy/shared_invite/zt-357qqm9b5-PbZRVu3Yt2rJIa6ofrwWNg"
14+
target="_blank"
15+
rel="noopener noreferrer"
16+
className="font-semibold text-orange-500 hover:text-orange-400"
17+
>
18+
Join Slack
19+
</a>
20+
21+
<span className="opacity-30">|</span>
22+
23+
<a
24+
href="https://calendar.app.google/cXVaj6hbMUjvmrnt9"
25+
target="_blank"
26+
rel="noopener noreferrer"
27+
className="font-semibold text-orange-500 hover:text-orange-400"
28+
>
29+
Book a Demo
30+
</a>
2831
</div>
2932
</section>
3033
);

src/css/custom.css

Lines changed: 140 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,24 +2094,6 @@ html[data-theme="dark"] .navbar__items--right .dropdown > .navbar__link {
20942094
EDIT THIS PAGE / REQUEST CHANGES LINKS
20952095
============================================ */
20962096

2097-
/* Bottom of page links */
2098-
.theme-doc-footer {
2099-
margin-top: 3rem;
2100-
padding-top: 1.5rem;
2101-
border-top: 1px solid rgba(0, 0, 0, 0.06);
2102-
}
2103-
2104-
html[data-theme="dark"] .theme-doc-footer {
2105-
border-top-color: rgba(255, 255, 255, 0.06);
2106-
}
2107-
2108-
.theme-doc-footer-edit-meta-row {
2109-
display: flex;
2110-
flex-wrap: wrap;
2111-
gap: 1rem;
2112-
margin-bottom: 1rem;
2113-
}
2114-
21152097
/* Edit this page link */
21162098
.theme-edit-this-page {
21172099
display: inline-flex;
@@ -2599,3 +2581,143 @@ html[data-theme="dark"] div[class^="sidebar_"] > nav > ul > li > .menu__list-ite
25992581
}
26002582

26012583

2584+
/* Support strip (Need help? Slack | Demo) */
2585+
.support-strip {
2586+
display: flex;
2587+
align-items: center;
2588+
justify-content: center;
2589+
gap: 15px;
2590+
padding: 10px;
2591+
background: var(--ifm-color-emphasis-100); /* Slim strip look */
2592+
border-radius: 4px;
2593+
margin-bottom: 20px;
2594+
}
2595+
2596+
#support span {
2597+
color: #252525;
2598+
font-weight: 400;
2599+
}
2600+
2601+
/* Dark mode */
2602+
[data-theme='dark'] #support span {
2603+
color: #ffffff; /* or a softer light gray like #e0e0e0 */
2604+
}
2605+
2606+
#support a {
2607+
font-weight: 600;
2608+
color: #ff7849;
2609+
text-decoration: none;
2610+
}
2611+
2612+
#support a:hover {
2613+
color: #ffa07a;
2614+
text-decoration: underline;
2615+
}
2616+
2617+
/* ===== FINAL Compact Pagination ===== */
2618+
2619+
.pagination-nav {
2620+
border-top: 2.5px solid var(--ifm-color-emphasis-200);
2621+
padding-top: 2rem;
2622+
margin-top: 2rem;
2623+
}
2624+
2625+
.pagination-nav__link {
2626+
padding: 0.5rem 1rem !important;
2627+
border-radius: 6px !important;
2628+
box-shadow: none !important;
2629+
border: 1.5px solid var(--ifm-color-emphasis-200) !important;
2630+
background: transparent !important;
2631+
min-height: auto !important;
2632+
display: flex;
2633+
flex-direction: column;
2634+
}
2635+
2636+
.pagination-nav__label {
2637+
font-weight: 700 !important;
2638+
color: var(--ifm-color-emphasis-900) !important;
2639+
font-size: 0.9rem;
2640+
}
2641+
2642+
.pagination-nav__sublabel {
2643+
font-weight: 500;
2644+
color: var(--ifm-color-emphasis-600);
2645+
}
2646+
2647+
/* Hover */
2648+
.pagination-nav__link:hover {
2649+
border-color: var(--ifm-color-primary);
2650+
background-color: var(--ifm-color-emphasis-100);
2651+
text-decoration: none;
2652+
}
2653+
2654+
2655+
2656+
/* Title */
2657+
.pagination-nav__title {
2658+
font-size: 0.82rem;
2659+
font-weight: 600;
2660+
color: var(--ifm-font-color-base);
2661+
line-height: 1.9;
2662+
}
2663+
2664+
/* Arrows subtle */
2665+
.pagination-nav__link svg {
2666+
transform: scale(0.7);
2667+
opacity: 1.65;
2668+
}
2669+
2670+
[data-theme='dark'] .pagination-nav__link {
2671+
border-color: var(--ifm-color-emphasis-100); /* softer than before */
2672+
}
2673+
2674+
[data-theme='dark'] .pagination-nav__label {
2675+
color: var(--ifm-color-emphasis-500);
2676+
}
2677+
2678+
/* ===== Divider Between Pagination and Footer ===== */
2679+
2680+
/* Add space below pagination */
2681+
.pagination-nav {
2682+
margin-bottom: 3rem;
2683+
}
2684+
2685+
/* ===== Remove footer border on landing page only ===== */
2686+
2687+
/* Default: footer border ON everywhere */
2688+
.theme-layout-footer.footer {
2689+
border-top: 1px solid var(--ifm-toc-border-color);
2690+
margin-top: 0;
2691+
padding-top: 2rem;
2692+
}
2693+
2694+
/* Remove border ONLY on landing page */
2695+
.plugin-pages.plugin-id-default .theme-layout-footer.footer {
2696+
border-top: none !important;
2697+
}
2698+
2699+
2700+
2701+
/* ===== MOBILE FIX FOR PREV / NEXT CARDS ===== */
2702+
@media (max-width: 768px) {
2703+
2704+
.pagination-nav {
2705+
display: flex !important;
2706+
flex-direction: column !important; /* stack vertically */
2707+
gap: 12px;
2708+
}
2709+
2710+
.pagination-nav__link {
2711+
width: 100% !important;
2712+
padding: 14px !important;
2713+
}
2714+
2715+
.pagination-nav__label {
2716+
font-size: 0.85rem !important;
2717+
}
2718+
2719+
.pagination-nav__title {
2720+
font-size: 0.9rem !important;
2721+
line-height: 1.4;
2722+
}
2723+
}

0 commit comments

Comments
 (0)