From f26f74c35fd6e842de3a149f7d795c20d9670574 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Sun, 14 Aug 2022 14:00:18 +0700 Subject: [PATCH] added horizon theme --- public/images/horizon_bg.svg | 188 ++++++++++++++++++ .../bars/SubmitBar/styles.module.scss | 2 +- .../charts/BasicCurveChart/index.tsx | 27 ++- .../charts/StatsGraphCard/index.tsx | 12 +- .../editors/EditorButtons/index.tsx | 2 +- .../editors/EditorPublicSwitch/index.tsx | 2 +- .../editors/EditorUploadButton/index.tsx | 2 +- src/components/input/Button/index.tsx | 1 + .../input/Button/styles.module.scss | 6 +- .../node/NodeTitle/styles.module.scss | 6 +- src/components/tags/Tag/index.tsx | 10 +- .../tags/TagAutocompleteRow/index.tsx | 13 +- .../TagAutocompleteRow/styles.module.scss | 2 +- src/components/tags/TagWrapper/index.tsx | 27 ++- .../tags/TagWrapper/styles.module.scss | 51 ++--- src/containers/main/Header/styles.module.scss | 8 +- src/containers/tags/TagInput/index.tsx | 17 +- src/layouts/BorisLayout/styles.module.scss | 3 +- src/styles/_colors.scss | 87 ++++---- src/styles/_global.scss | 15 +- src/styles/_mixins.scss | 12 +- src/styles/themes/_default.scss | 82 ++++++++ src/styles/themes/_horizon.scss | 92 +++++++++ 23 files changed, 523 insertions(+), 144 deletions(-) create mode 100644 public/images/horizon_bg.svg create mode 100644 src/styles/themes/_default.scss create mode 100644 src/styles/themes/_horizon.scss diff --git a/public/images/horizon_bg.svg b/public/images/horizon_bg.svg new file mode 100644 index 00000000..95df8cb8 --- /dev/null +++ b/public/images/horizon_bg.svg @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/bars/SubmitBar/styles.module.scss b/src/components/bars/SubmitBar/styles.module.scss index 8c605dc6..e9755f9c 100644 --- a/src/components/bars/SubmitBar/styles.module.scss +++ b/src/components/bars/SubmitBar/styles.module.scss @@ -14,7 +14,7 @@ } .button { - background: $danger_gradient; + background: $flow_gradient; width: $bar_height; height: $bar_height; border-radius: $bar_height * 0.5; diff --git a/src/components/charts/BasicCurveChart/index.tsx b/src/components/charts/BasicCurveChart/index.tsx index 33c8b85f..e86b4973 100644 --- a/src/components/charts/BasicCurveChart/index.tsx +++ b/src/components/charts/BasicCurveChart/index.tsx @@ -29,15 +29,18 @@ const BasicCurveChart: VFC = ({ (acc, val, index) => [ ...acc, index === 0 - ? { x: borderGap, y: height - (val / max) * (height - gap * 2) - gap } + ? { + x: borderGap, + y: height - (val / max) * (height - gap * 2) - gap, + } : { x: ((width - borderGap) / (items.length - 1)) * index, y: height - (val / max) * (height - gap * 2) - gap, }, ], - [] + [], ), - [height, width, items, gap] + [height, width, items, gap], ); if (!points.length) { @@ -49,20 +52,29 @@ const BasicCurveChart: VFC = ({ {...props} width="100%" height="100%" - viewBox={`0 0 ${width} ${height}`} + viewBox={`0 0 ${width} ${height * 1.05}`} preserveAspectRatio="none" > + + + + + + + + = ({ fill="none" x={0} y={0} + opacity={0.3} stroke={stroke} strokeWidth={2} strokeLinecap="round" @@ -84,9 +97,11 @@ const BasicCurveChart: VFC = ({ fill="none" x={0} y={0} - stroke={lighten(stroke, 0.1)} + stroke={stroke} + opacity={1} strokeWidth={1} strokeLinecap="round" + filter="url(#brighter)" /> ); diff --git a/src/components/charts/StatsGraphCard/index.tsx b/src/components/charts/StatsGraphCard/index.tsx index 6a727876..ce17e6c7 100644 --- a/src/components/charts/StatsGraphCard/index.tsx +++ b/src/components/charts/StatsGraphCard/index.tsx @@ -15,11 +15,19 @@ interface StatsGraphCardProps extends CardProps { right?: string | number; } -const StatsGraphCard: VFC = ({ total, title, data, left, right }) => ( +const StatsGraphCard: VFC = ({ + total, + title, + data, + left, + right, +}) => ( } + background={ + + } className={styles.card} >
diff --git a/src/components/editors/EditorButtons/index.tsx b/src/components/editors/EditorButtons/index.tsx index 7857774f..2ffb1e72 100644 --- a/src/components/editors/EditorButtons/index.tsx +++ b/src/components/editors/EditorButtons/index.tsx @@ -32,7 +32,7 @@ const EditorButtons: FC = () => {