diff --git a/src/assets/images/notifications/coolui.png b/src/assets/images/notifications/coolui.png new file mode 100644 index 0000000..b78ce8b Binary files /dev/null and b/src/assets/images/notifications/coolui.png differ diff --git a/src/common/layout/LayoutNotificationCredits.tsx b/src/common/layout/LayoutNotificationCredits.tsx new file mode 100644 index 0000000..6cd7ef8 --- /dev/null +++ b/src/common/layout/LayoutNotificationCredits.tsx @@ -0,0 +1,33 @@ +import { FC, useMemo } from 'react'; +import { NotificationAlertType } from '../../api'; +import { NitroCardContentView, NitroCardHeaderView, NitroCardView, NitroCardViewProps } from '../card'; + +export interface LayoutNotificationCreditsProps extends NitroCardViewProps +{ + title?: string; + type?: string; + onClose: () => void; +} + +export const LayoutNotificationCredits: FC = props => +{ + const { title = '', onClose = null, classNames = [], children = null,type = NotificationAlertType.DEFAULT, ...rest } = props; + + const getClassNames = useMemo(() => + { + const newClassNames: string[] = ['nitro-alert', 'nitro-alert-credits']; + + if(classNames.length) newClassNames.push(...classNames); + + return newClassNames; + }, [ classNames, type ]); + + return ( + + + + { children } + + + ); +} diff --git a/src/common/layout/index.ts b/src/common/layout/index.ts index 3c4238e..83967dc 100644 --- a/src/common/layout/index.ts +++ b/src/common/layout/index.ts @@ -12,6 +12,7 @@ export * from './LayoutItemCountView'; export * from './LayoutLoadingSpinnerView'; export * from './LayoutMiniCameraView'; export * from './LayoutNotificationAlertView'; +export * from './LayoutNotificationCredits'; export * from './LayoutNotificationBubbleView'; export * from './LayoutPetImageView'; export * from './LayoutProgressBar'; diff --git a/src/components/notification-center/NotificationCenterView.scss b/src/components/notification-center/NotificationCenterView.scss index c8bd351..0610b0a 100644 --- a/src/components/notification-center/NotificationCenterView.scss +++ b/src/components/notification-center/NotificationCenterView.scss @@ -35,6 +35,13 @@ min-width: auto; } } + + &.nitro-alert-credits { + width: 370px; + .notification-text { + min-width: auto; + } + } &.nitro-alert-moderation, &.nitro-alert-alert { @@ -64,3 +71,11 @@ .topnotifications{ margin-top: -6px; } + +.nitro-coolui-logo { + width: 150px; + height: 78px; + position: relative; + background-image: url("@/assets/images/notifications/coolui.png"); + background-repeat: no-repeat; +} \ No newline at end of file diff --git a/src/components/notification-center/views/alert-layouts/NitroSystemAlertView.tsx b/src/components/notification-center/views/alert-layouts/NitroSystemAlertView.tsx index 9855384..0067d3f 100644 --- a/src/components/notification-center/views/alert-layouts/NitroSystemAlertView.tsx +++ b/src/components/notification-center/views/alert-layouts/NitroSystemAlertView.tsx @@ -1,6 +1,6 @@ import { FC } from 'react'; import { GetRendererVersion, GetUIVersion, NotificationAlertItem } from '../../../../api'; -import { Button, Column, Flex, Grid, LayoutNotificationAlertView, LayoutNotificationAlertViewProps, Text } from '../../../../common'; +import { Button, Column, Flex, Grid, LayoutNotificationCredits, LayoutNotificationAlertViewProps, Text } from '../../../../common'; interface NotificationDefaultAlertViewProps extends LayoutNotificationAlertViewProps { @@ -9,15 +9,12 @@ interface NotificationDefaultAlertViewProps extends LayoutNotificationAlertViewP export const NitroSystemAlertView: FC = props => { - const { title = 'Nitro', onClose = null, ...rest } = props; + const { title = 'Nitro Cool UI Edit', onClose = null, ...rest } = props; return ( - + - -   - - + Nitro React v{ GetUIVersion() } @@ -25,15 +22,27 @@ export const NitroSystemAlertView: FC = props Renderer: v{ GetRendererVersion() } - + - - + + + +
+ + + Cool UI + Was created by Wassehk + - DuckieTM (Re-Design) + - Jonas (Contributing) + - Ohlucas (Sunset resources) + v1.2.0 + +
-
+ ); -} +} \ No newline at end of file