diff --git a/src/components/InstallReminder.js b/src/components/InstallReminder.js index 5643dbe6f..3088f70e4 100644 --- a/src/components/InstallReminder.js +++ b/src/components/InstallReminder.js @@ -5,15 +5,20 @@ export default function InstallReminder() { return (
-

Don’t have Keploy installed yet?

-

+

+ Don't have Keploy installed yet? +

+

Before running this sample, make sure Keploy is installed on your system.

@@ -21,13 +26,13 @@ export default function InstallReminder() { to="/docs/server/installation/" style={{ display: "inline-block", - marginTop: "0.5rem", padding: "0.6rem 1rem", background: "#e67e22", color: "#fff", borderRadius: "6px", fontWeight: "bold", textDecoration: "none", + alignSelf: "flex-start", }} > 👉 Go to Installation Guide diff --git a/src/components/QuickStartFilter.js b/src/components/QuickStartFilter.js index 15ad87f80..1e95f7463 100644 --- a/src/components/QuickStartFilter.js +++ b/src/components/QuickStartFilter.js @@ -11,7 +11,7 @@ import {FaDocker} from "react-icons/fa"; import {IoLogoJavascript} from "react-icons/io5"; // 🔹 Wrapper for icons to make them uniform -const IconWrapper = ({icon, bg}) => ( +const IconWrapper = ({icon, bg, darkBg}) => (
( alignItems: "center", justifyContent: "center", borderRadius: "50%", - backgroundColor: bg || "#f3f4f6", + backgroundColor: "var(--ifm-color-emphasis-100)", boxShadow: "0 3px 6px rgba(0,0,0,0.1)", transition: "transform 0.2s ease", }} @@ -46,32 +46,26 @@ export default function QuickstartFilter({defaultLanguage = null}) { { name: "Go", icon: , - bg: "#E0F7FA", }, { name: "Python", icon: , - bg: "#E8F0FE", }, { name: "Java", icon: , - bg: "#FDEDED", }, { name: "JS/TS", icon: , - bg: "#FFF8E1", }, { name: "Rust", icon: , - bg: "#FFF3E0", }, { name: "C#", icon: , - bg: "#EDE7F6", }, ]; @@ -79,36 +73,35 @@ export default function QuickstartFilter({defaultLanguage = null}) { { name: "Local", icon: , - bg: "#FFF3E0", }, { name: "Docker", icon: , - bg: "#E3F2FD", }, ]; return ( -
+
{/* Language Selection */}

Choose your language

-
+
{languages.map((lang) => ( ))}
@@ -117,23 +110,24 @@ export default function QuickstartFilter({defaultLanguage = null}) {

Where do you want to run the app server?

-
+
{servers.map((srv) => ( ))}
@@ -144,14 +138,14 @@ export default function QuickstartFilter({defaultLanguage = null}) {

✨ AI Suggested Sample Apps

-
+
{filteredQuickstarts.length > 0 ? ( filteredQuickstarts.map((app, idx) => ( -
-

+
+

{app.title}

-

+

{app.description}

@@ -160,7 +154,7 @@ export default function QuickstartFilter({defaultLanguage = null}) {
)) ) : ( -

No quickstarts available for this selection.

+

No quickstarts available for this selection.

)}

@@ -171,53 +165,63 @@ export default function QuickstartFilter({defaultLanguage = null}) { // Styles const headingStyle = { - textAlign: "left", + textAlign: "center", marginLeft: "1rem", + marginRight: "1rem", fontSize: "1.4rem", fontWeight: "600", + color: "var(--ifm-color)", }; const serverContainer = { display: "flex", flexWrap: "wrap", - gap: "1.5rem", - justifyContent: "flex-start", + gap: "1rem", + justifyContent: "center", marginTop: "1.5rem", marginLeft: "1rem", + marginRight: "1rem", }; const stepContainer = { display: "flex", flexWrap: "wrap", - gap: "1.5rem", + gap: "1rem", marginLeft: "1rem", - justifyContent: "flex-start", + marginRight: "1rem", + justifyContent: "center", marginTop: "1.5rem", }; const buttonCard = { - border: "2px solid #ddd", + border: "2px solid var(--ifm-color-emphasis-300)", borderRadius: "12px", - padding: "1rem 2rem", + padding: "1rem 1.5rem", cursor: "pointer", - background: "#fff", + background: "var(--ifm-card-background-color)", transition: "all 0.2s ease", textAlign: "center", + minWidth: "120px", + flex: "1", + maxWidth: "200px", }; const gridContainer = { display: "grid", - gap: "1.5rem", - gridTemplateColumns: "repeat(auto-fit, minmax(250px, 1fr))", + gap: "1rem", + gridTemplateColumns: "1fr", marginTop: "2rem", + padding: "0 1rem", }; const cardStyle = { - border: "1px solid #eee", + border: "1px solid var(--ifm-color-emphasis-300)", borderRadius: "12px", - padding: "1rem", - background: "#fff", - boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)", + padding: "1.25rem", + background: "var(--ifm-card-background-color)", + boxShadow: "0 2px 6px var(--ifm-card-shadow-color)", + width: "100%", + maxWidth: "100%", }; const linkStyle = { diff --git a/src/css/custom.css b/src/css/custom.css index 7c2b78f4b..b7f8dbda7 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -744,4 +744,87 @@ textarea { resize: vertical; } +/* QuickStart Filter Dark Mode Improvements */ +.icon-wrapper { + transition: transform 0.2s ease, box-shadow 0.2s ease; +} + +.icon-wrapper:hover { + transform: scale(1.05); + box-shadow: 0 4px 8px rgba(0,0,0,0.15); +} + +html[data-theme="dark"] .icon-wrapper { + box-shadow: 0 3px 6px rgba(0,0,0,0.3); +} + +html[data-theme="dark"] .icon-wrapper:hover { + box-shadow: 0 4px 8px rgba(0,0,0,0.4); +} + +/* Button hover effects for dark mode */ +html[data-theme="dark"] button:hover { + background-color: var(--ifm-color-emphasis-200); + border-color: var(--ifm-color-emphasis-400); +} + +/* Better contrast for selected states in dark mode */ +html[data-theme="dark"] button[style*="border: 2px solid #f97316"] { + background-color: rgba(249, 115, 22, 0.1); +} + +/* Improved card shadows for dark mode */ +html[data-theme="dark"] .card { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); +} + +html[data-theme="dark"] .card:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); +} + +/* Mobile Responsive Improvements for QuickStart Filter */ +@media (max-width: 768px) { + .quickstart-filter-container { + padding: 0 0.5rem; + } + + .quickstart-grid-container { + grid-template-columns: 1fr !important; + gap: 1rem !important; + padding: 0 0.5rem !important; + } + + .quickstart-button-card { + min-width: 100px !important; + padding: 0.8rem 1rem !important; + font-size: 0.9rem; + } + + .quickstart-card { + padding: 1rem !important; + margin: 0 !important; + } + + .quickstart-card h3 { + font-size: 1.1rem !important; + margin-bottom: 0.5rem !important; + } + + .quickstart-card p { + font-size: 0.9rem !important; + line-height: 1.4; + } +} + +@media (min-width: 769px) { + .quickstart-grid-container { + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; + gap: 1.5rem !important; + } + + .quickstart-button-container { + justify-content: flex-start !important; + } +} +