diff --git a/build/logo192.png b/build/logo192.png
index 54767de..8eae122 100644
Binary files a/build/logo192.png and b/build/logo192.png differ
diff --git a/build/logo512.png b/build/logo512.png
index 54767de..9504d57 100644
Binary files a/build/logo512.png and b/build/logo512.png differ
diff --git a/public/logo192.png b/public/logo192.png
index 54767de..8eae122 100644
Binary files a/public/logo192.png and b/public/logo192.png differ
diff --git a/public/logo512.png b/public/logo512.png
index 54767de..9504d57 100644
Binary files a/public/logo512.png and b/public/logo512.png differ
diff --git a/src/ts/components/CardWithBanner/index.tsx b/src/ts/components/CardWithBanner/index.tsx
new file mode 100644
index 0000000..ef387e0
--- /dev/null
+++ b/src/ts/components/CardWithBanner/index.tsx
@@ -0,0 +1,33 @@
+import React from 'react';
+import { Link } from 'react-router-dom';
+
+import themeSettings from 'ts/store/ThemeSettings';
+
+import style from 'ts/components/CardWithIcon/index.module.scss';
+
+interface ICardWithBannerProps {
+ long?: boolean;
+}
+
+function CardWithBanner({
+ long = false,
+}: ICardWithBannerProps): React.ReactElement | null {
+ const config = themeSettings.getBanner();
+ if (!config) return null;
+
+ const { link, banner } = config;
+ const className = long
+ ? style.card_with_icon_long
+ : style.card_with_icon;
+
+ return (
+
+ );
+}
+
+export default CardWithBanner;
diff --git a/src/ts/components/CardWithIcon/index.module.scss b/src/ts/components/CardWithIcon/index.module.scss
index 0f4d306..e319f95 100644
--- a/src/ts/components/CardWithIcon/index.module.scss
+++ b/src/ts/components/CardWithIcon/index.module.scss
@@ -7,12 +7,19 @@
min-height: 270px;
margin: 0 24px 24px 0;
padding: 16px;
+
vertical-align: top;
+ text-decoration: none;
box-sizing: border-box;
+
border-radius: 8px;
border: 1px solid var(--color-border);
background-color: #FFFFFF;
+ background-repeat: repeat;
+ background-size: auto 100%;
+ background-position: center center;
+
&_icon {
display: block;
width: auto;
@@ -59,7 +66,7 @@
.card_with_icon_long {
width: 100%;
- margin: 0 0 16px 0;
+ margin: 0 0 24px 0;
}
.card_with_icon:nth-child(2n+2) {
diff --git a/src/ts/components/LineChart/index.tsx b/src/ts/components/LineChart/index.tsx
index e12e5dd..ff88ca7 100644
--- a/src/ts/components/LineChart/index.tsx
+++ b/src/ts/components/LineChart/index.tsx
@@ -21,7 +21,10 @@ function LineChart({
details,
className,
}: ILineChartProps): React.ReactElement | null {
- if (!value || value === 0) return null;
+ if (!value) return null;
+ if (options.suffix === 'stop') {
+ console.log('xxx');
+ }
const width = Math.round((value ?? 100) * (100 / options.max));
@@ -29,7 +32,7 @@ function LineChart({
return (
+ );
+}
+
+export default Banner;
diff --git a/src/ts/components/Recommendations/index.tsx b/src/ts/components/Recommendations/index.tsx
index 78dd9fd..8e54a24 100644
--- a/src/ts/components/Recommendations/index.tsx
+++ b/src/ts/components/Recommendations/index.tsx
@@ -4,6 +4,7 @@ import Title from 'ts/components/Title';
import localization from 'ts/helpers/Localization';
import Card from './components/Card';
+import Banner from './components/Banner';
import CardForPrint from './components/CardForPrint';
import recommendationStore from './store/index';
import style from './styles/index.module.scss';
@@ -35,6 +36,9 @@ function Recommendations({
)));
if (!cards.length) return null;
+ if (mode !== 'print') {
+ cards.push(
);
+ }
const title = localization.get('recommendations.title');
const className = mode === 'print'
diff --git a/src/ts/components/Recommendations/styles/card.module.scss b/src/ts/components/Recommendations/styles/card.module.scss
index 58325de..82c3407 100644
--- a/src/ts/components/Recommendations/styles/card.module.scss
+++ b/src/ts/components/Recommendations/styles/card.module.scss
@@ -13,6 +13,7 @@
vertical-align: top;
box-sizing: border-box;
white-space: normal;
+ text-decoration: none;
page-break-inside: avoid;
break-inside: avoid;
@@ -103,5 +104,14 @@
background-color: var(--color-temp-bg);
border-left-color: var(--color-temp-border);
+
+ &_banner {
+ border-left-width: 1px;
+ border-left-color: var(--color-border);
+
+ background-repeat: no-repeat;
+ background-size: 180% auto;
+ background-position: center center;
+ }
}
diff --git a/src/ts/components/SplashScreen/index.tsx b/src/ts/components/SplashScreen/index.tsx
index 1a40527..28260a3 100644
--- a/src/ts/components/SplashScreen/index.tsx
+++ b/src/ts/components/SplashScreen/index.tsx
@@ -18,7 +18,7 @@ function SplashScreen(): React.ReactElement | null {
return (
diff --git a/src/ts/pages/PageWrapper/components/sidebar/Logo.tsx b/src/ts/pages/PageWrapper/components/sidebar/Logo.tsx
index 1d765fe..708e6c5 100644
--- a/src/ts/pages/PageWrapper/components/sidebar/Logo.tsx
+++ b/src/ts/pages/PageWrapper/components/sidebar/Logo.tsx
@@ -5,26 +5,44 @@ import themeSettings from 'ts/store/ThemeSettings';
import style from '../../styles/logo.module.scss';
-function Logo() {
+interface ILogoProps {
+ center?: boolean;
+}
+
+function Logo({ center }: ILogoProps) {
const {
- icon, link, title, isOpenInNewTab,
+ isDefault,
+ icon,
+ link,
+ title,
+ isOpenInNewTab,
} = themeSettings.getLogo();
return (
-
)}
diff --git a/src/ts/pages/Person/components/Total.tsx b/src/ts/pages/Person/components/Total.tsx
index 4f278a6..1dca88a 100644
--- a/src/ts/pages/Person/components/Total.tsx
+++ b/src/ts/pages/Person/components/Total.tsx
@@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next';
import getAchievementByAuthor from 'ts/helpers/achievement/byAuthor';
import ACHIEVEMENT_TYPE from 'ts/helpers/achievement/constants/type';
+import CardWithBanner from 'ts/components/CardWithBanner';
import CardWithIcon from 'ts/components/CardWithIcon';
import Achievements from 'ts/components/Achievement';
import Description from 'ts/components/Description';
@@ -69,6 +70,7 @@ const Total = observer(({ user }: IPersonCommonProps): React.ReactElement => {
title="page.team.total.commits.title"
description="page.team.total.commits.description"
/>
+
{false && }
{false && }
diff --git a/src/ts/pages/Team/components/PR/All.tsx b/src/ts/pages/Team/components/PR/All.tsx
index a490285..c52671e 100644
--- a/src/ts/pages/Team/components/PR/All.tsx
+++ b/src/ts/pages/Team/components/PR/All.tsx
@@ -36,6 +36,7 @@ function AllPR({
order: dataGripStore.dataGrip.author.list,
});
+ console.log(commitsChart);
return (
{
const content = row.pr.map((commit: any) => (
dataGripStore?.dataGrip?.pr?.pr?.[commit.prId]
- ));
- console.log(dataGripStore?.dataGrip?.pr?.pr?.['2810']);
+ )).filter((item: any) => item?.firstCommit);
return (