mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-23 12:45:56 +00:00
Close #46 Same as those in [blog](https://gitea.com/gitea/blog/pulls/272), but for docs and api Ejected DocPage (unsafe to eject) and ApiDoc (safe to eject) for layout changes  Screenshots  Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/47 Co-authored-by: HesterG <hestergong@gmail.com> Co-committed-by: HesterG <hestergong@gmail.com>
23 lines
696 B
JavaScript
23 lines
696 B
JavaScript
import clsx from "clsx";
|
|
import React from "react";
|
|
import style from "./styles.module.css";
|
|
|
|
// skin?: "default" | "primary"
|
|
export const ActionCard = ({ skin = "default", icon, title, description, svgBackgroundColor, children, className }) => {
|
|
const styles = { background: svgBackgroundColor};
|
|
return (
|
|
<div
|
|
className={clsx(style.root, className, {
|
|
[style.skinPrimary]: skin === "primary",
|
|
})}
|
|
>
|
|
<div className={style.icon} style={styles}>{icon}</div>
|
|
<h3 className={style.title}>{title}</h3>
|
|
<p className={style.description}>{description}</p>
|
|
<div className={style.content}>{children}</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ActionCard
|