+
{children}
>
}
-export default Object.assign(Card, {
- Section: CardSection,
-})
\ No newline at end of file
+export default Card
\ No newline at end of file
diff --git a/src/components/card/CardSection.tsx b/src/components/card/CardSection.tsx
new file mode 100644
index 00000000..f8c37664
--- /dev/null
+++ b/src/components/card/CardSection.tsx
@@ -0,0 +1,29 @@
+import {Code0Component} from "../../utils/types";
+import React, {ReactNode} from "react";
+import {mergeCode0Props} from "../../utils/utils";
+
+export interface SectionType extends Code0Component
{
+ children: ReactNode | ReactNode[]
+ //defaults to false
+ image?: boolean,
+ //defaults to false
+ border?: boolean
+}
+
+const CardSection: React.FC = (props) => {
+
+ const {
+ image = false,
+ border = false,
+ children,
+ ...args
+ } = props;
+
+ return <>
+
+ {children}
+
+ >
+}
+
+export default CardSection
\ No newline at end of file
diff --git a/src/components/container/Container.stories.tsx b/src/components/container/Container.stories.tsx
index 072a15af..e03349ed 100644
--- a/src/components/container/Container.stories.tsx
+++ b/src/components/container/Container.stories.tsx
@@ -9,6 +9,7 @@ import {IconHeart, IconShare} from "@tabler/icons-react";
import React from "react";
import Row from "../row/Row";
import Col from "../col/Col";
+import CardSection from "../card/CardSection";
const meta: Meta = {
title: "Container",
@@ -26,11 +27,11 @@ export const ContainerWithNews = () => {
}}>
-
+
-
-
+
+
{
-
-
+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam
nonumy eirmod tempor invidunt ut
-
+
diff --git a/src/components/quote/Quote.stories.tsx b/src/components/quote/Quote.stories.tsx
index 021d1b68..d3c6a0a0 100644
--- a/src/components/quote/Quote.stories.tsx
+++ b/src/components/quote/Quote.stories.tsx
@@ -18,10 +18,6 @@ const meta: Meta = {
gradient: {
type: "boolean"
},
- gradientPosition: {
- options: ["top-left", "top-right", "bottom-right", "bottom-left"],
- control: {type: 'radio'},
- },
outline: {
type: "boolean"
},
@@ -53,6 +49,8 @@ export const QuoteWithLogo: QuoteStory = {
color: "secondary",
outline: false,
gradient: true,
+ borderColor: "secondary",
+ firstGradientColor: "secondary",
gradientPosition: "bottom-left",
inlineBorder: true
}
@@ -73,6 +71,8 @@ export const QuoteWithoutLogo: QuoteStory = {
variant: "outlined",
color: "secondary",
outline: false,
+ borderColor: "secondary",
+ firstGradientColor: "secondary",
gradient: true,
gradientPosition: "bottom-left",
inlineBorder: true
diff --git a/src/components/quote/Quote.tsx b/src/components/quote/Quote.tsx
index 844db034..15555527 100644
--- a/src/components/quote/Quote.tsx
+++ b/src/components/quote/Quote.tsx
@@ -2,6 +2,7 @@ import React from "react";
import Card, {CardType} from "../card/Card";
import "./Quote.style.scss"
import Text from "../Text/Text";
+import CardSection from "../card/CardSection";
export interface QuoteType extends Omit {
children: string
@@ -16,12 +17,12 @@ const Quote: React.FC = (props) => {
const {logo, name, position, inlineBorder = true, children, ...args} = props;
return
-
+
{children}
-
-
+
+
{
!!logo ?
@@ -31,7 +32,7 @@ const Quote: React.FC
= (props) => {
{name}
{position}
-
+
}