diff --git a/ui/src/pages/CSS/BoxShadow/index.tsx b/ui/src/pages/CSS/BoxShadow/index.tsx index 83cbb87a..18c9098d 100644 --- a/ui/src/pages/CSS/BoxShadow/index.tsx +++ b/ui/src/pages/CSS/BoxShadow/index.tsx @@ -2,41 +2,21 @@ import { useState } from "react"; import { Card, Form, Slider, Space } from "antd"; import PageGrid from "components/Layouts/PageGrid"; import CodeHighlightWithCopy from "components/General/CodeHighlightWithCopy"; -import about from "assets/sample.jpg"; import style from "./BoxShadow.module.scss"; -import { faker } from "@faker-js/faker"; -import { - ResponsiveSegementWithLabel, - ResponsiveSelectWithLabel, -} from "components/General/FormComponents"; -import { BORDER_STYLES, SEGMENTED_OPTIONS } from "./utils/constants"; import ColorPickerWithInput from "components/General/ColorPickerWithInput"; import InputGrid from "components/Layouts/InputGrid"; -const PARAGRAPHS = faker.lorem.paragraph(7); - const BoxShadow = () => { - const [border, setBorder] = useState(0); - const [borderRadiusTopLeft, setBorderRadiusTopLeft] = useState(0); - const [borderRadiusTopRight, setBorderRadiusTopRight] = useState(0); - const [borderRadiusBottomLeft, setBorderRadiusBottomLeft] = useState(0); - const [borderRadiusBottomRight, setBorderRadiusBottomRight] = useState(0); - - const [borderWidth, setBorderWidth] = useState(0); - const [borderStyle, setBorderStyle] = useState(BORDER_STYLES[4].value); - const [borderColor, setBorderColor] = useState("rgba(0, 0, 0, 1)"); - - const [borderType, setBorderType] = useState("rgba(0, 0, 0, 1)"); + const [shadowColor, setShadowColor] = useState("#ddd"); + const [boxColor, setBoxColor] = useState("#df6a0b77"); + const [horizontalLength, setHorizontalLength] = useState(0); + const [verticalLength, setVerticalLength] = useState(0); + const [blurRadius, setBlurRadius] = useState(0); + const [spreadRadius, setSpreadRadius] = useState(0); + const [opacity, setOpacity] = useState(0); const generateCSSCodeString = () => { - const borderRadiusString = `border-radius: ${borderRadiusTopLeft}px ${borderRadiusTopRight}px ${borderRadiusBottomRight}px ${borderRadiusBottomLeft}px;`; - const borderWidthString = `border-width: ${borderWidth}px;`; - const borderColorString = `border-color: ${borderColor};`; - const borderStyleString = `border-style: ${borderStyle};`; - - const borderShorthandString = `border: ${borderWidth}px ${borderStyle} ${borderColor};`; - - return `${borderRadiusString}\n${borderWidthString}\n${borderColorString}\n${borderStyleString}\n\n// Shorthand Property\n${borderRadiusString}\n${borderShorthandString}`; + return ""; }; return ( @@ -45,91 +25,72 @@ const BoxShadow = () => {
@@ -137,33 +98,24 @@ const BoxShadow = () => {