Skip to content

Commit

Permalink
docs: use kintone color in light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tasshi-me committed Jun 16, 2024
1 parent 2d99829 commit 07815ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
35 changes: 7 additions & 28 deletions website/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import clsx from "clsx";
import Heading from "@theme/Heading";
import styles from "./styles.module.css";
// https://github.com/facebook/docusaurus/issues/7986#issuecomment-1969481536
import ThemedImage from "@theme/ThemedImage";
import useBaseUrl from "@docusaurus/core/lib/client/exports/useBaseUrl";

type FeatureItem = {
title: string;
svg: {
light: string;
dark: string;
};
Svg: React.ComponentType<React.ComponentProps<"svg">>;
description: JSX.Element;
};

Expand All @@ -19,10 +13,7 @@ const FeatureList: FeatureItem[] = [
{
title: "Easy to Use",
// eslint-disable-next-line node/no-missing-require
svg: {
light: "/img/undraw_well_done_re_3hpo_light.svg",
dark: "/img/undraw_well_done_re_3hpo.svg",
},
Svg: require("@site/static/img/undraw_well_done_re_3hpo.svg").default,
description: (
<>
The cli-kintone was designed for IT personnel and non-engineers. You
Expand All @@ -32,10 +23,7 @@ const FeatureList: FeatureItem[] = [
},
{
title: "Attachment field support",
svg: {
light: "/img/undraw_add_files_re_v09g_light.svg",
dark: "/img/undraw_add_files_re_v09g.svg",
},
Svg: require("@site/static/img/undraw_add_files_re_v09g.svg").default,
description: (
<>
The cli-kintone supports Attachment fields. You can download or upload
Expand All @@ -45,10 +33,8 @@ const FeatureList: FeatureItem[] = [
},
{
title: "Suitable for automation",
svg: {
light: "/img/undraw_software_engineer_re_tnjc_light.svg",
dark: "/img/undraw_software_engineer_re_tnjc.svg",
},
Svg: require("@site/static/img/undraw_software_engineer_re_tnjc.svg")
.default,
description: (
<>
The cli-kintone works well with shell scripts. You can automate your
Expand All @@ -58,18 +44,11 @@ const FeatureList: FeatureItem[] = [
},
];

const Feature = ({ title, svg, description }: FeatureItem) => {
const Feature = ({ title, Svg, description }: FeatureItem) => {
return (
<div className={clsx("col col--4")}>
<div className="text--center">
<ThemedImage
className={styles.featureSvg}
role="img"
sources={{
light: useBaseUrl(svg.light),
dark: useBaseUrl(svg.dark),
}}
/>
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
Expand Down
3 changes: 3 additions & 0 deletions website/src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
text-align: center;
position: relative;
overflow: hidden;

background: #ffbf00;
color: #231200;
}

@media screen and (max-width: 996px) {
Expand Down

0 comments on commit 07815ef

Please sign in to comment.