Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions src/components/InstallReminder.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
import React from "react";
import Link from "@docusaurus/Link";
import {useColorMode} from "@docusaurus/theme-common";

export default function InstallReminder() {
const {colorMode} = useColorMode();
const isDark = colorMode === "dark";

const containerStyle = {
padding: "1rem",
border: isDark ? "1px solid #333" : "1px solid #eee",
borderRadius: "10px",
background: isDark ? "#23272f" : "#fff8f5",
margin: "2rem 0",
color: isDark ? "#fff" : "#222",
boxShadow: isDark
? "0 2px 10px rgba(0,0,0,0.6)"
: "0 2px 6px rgba(0, 0, 0, 0.08)",
};

return (
<div
style={{
padding: "1rem",
border: "1px solid #eee",
borderRadius: "10px",
background: "#fff8f5",
margin: "2rem 0",
}}
style={containerStyle}
>
<h3>Don’t have Keploy installed yet?</h3>
<p>
<h3 style={{ color: isDark ? "#fff" : "#222"}}>Don’t have Keploy installed yet?</h3>
<p style={{color: isDark ? "#ccc" : undefined}}>
Before running this sample, make sure Keploy is installed on your
system.
</p>
Expand Down