From df4948d0faeb114cab98e2d029e9f2e1391410d2 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 27 Sep 2023 17:22:42 +0300 Subject: [PATCH] feat: added branding component --- public/images/icons/twitterX.svg | 11 ++ public/images/icons/web.svg | 10 ++ .../proposal/ProposalVotingPower.tsx | 4 - src/ui/components/Branding.tsx | 111 ++++++++++++++++++ src/ui/layouts/MainLayout.tsx | 3 + src/ui/utils/GlobalStyles.tsx | 36 ++++++ 6 files changed, 171 insertions(+), 4 deletions(-) create mode 100644 public/images/icons/twitterX.svg create mode 100644 public/images/icons/web.svg create mode 100644 src/ui/components/Branding.tsx diff --git a/public/images/icons/twitterX.svg b/public/images/icons/twitterX.svg new file mode 100644 index 00000000..465a20ac --- /dev/null +++ b/public/images/icons/twitterX.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/public/images/icons/web.svg b/public/images/icons/web.svg new file mode 100644 index 00000000..ab2265ff --- /dev/null +++ b/public/images/icons/web.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/proposals/components/proposal/ProposalVotingPower.tsx b/src/proposals/components/proposal/ProposalVotingPower.tsx index ec340dcd..567c298d 100644 --- a/src/proposals/components/proposal/ProposalVotingPower.tsx +++ b/src/proposals/components/proposal/ProposalVotingPower.tsx @@ -115,10 +115,6 @@ export function ProposalVotingPower({ display: 'inline-flex', alignItems: 'center', position: 'relative', - top: 2, - [theme.breakpoints.up('xl')]: { - top: 1, - }, }}> + + + by BGD Labs + + + {brandingLinks.map((link, index) => ( + + svg': { + width: 20, + height: 20, + path: { + '&:last-of-type': { + fill: theme.palette.$appBackground, + }, + '&:first-of-type': { + fill: theme.palette.$textDisabled, + }, + }, + [theme.breakpoints.up('sm')]: { + width: 14, + height: 14, + }, + }, + }}> + {link.icon()} + + + ))} + + + + ); +} diff --git a/src/ui/layouts/MainLayout.tsx b/src/ui/layouts/MainLayout.tsx index dfdf3b31..232ae8a3 100644 --- a/src/ui/layouts/MainLayout.tsx +++ b/src/ui/layouts/MainLayout.tsx @@ -4,6 +4,7 @@ import React, { ReactNode, useEffect } from 'react'; import { useStore } from '../../store'; import { isForIPFS } from '../../utils/appConfig'; import { AppLoading } from '../components/AppLoading'; +import { Branding } from '../components/Branding'; import NoSSR from '../primitives/NoSSR'; import { setRelativePath } from '../utils/relativePath'; import { AppHeader } from './AppHeader'; @@ -85,6 +86,8 @@ export function MainLayout({ children }: MainLayoutProps) { )} + + ); } diff --git a/src/ui/utils/GlobalStyles.tsx b/src/ui/utils/GlobalStyles.tsx index 1d48098f..7505f4df 100644 --- a/src/ui/utils/GlobalStyles.tsx +++ b/src/ui/utils/GlobalStyles.tsx @@ -205,6 +205,24 @@ export function GlobalStyles() { borderTopColor: '#101423', borderLeftColor: '#101423', }, + + '.Branding': { + '.Branding__text': { + color: '#C6C3D1', + }, + '.Branding__icon': { + '> svg': { + path: { + '&:last-of-type': { + fill: '#EDF0FC', + }, + '&:first-of-type': { + fill: '#C6C3D1', + }, + }, + }, + }, + }, }, "[data-theme='dark']": { body: { @@ -327,6 +345,24 @@ export function GlobalStyles() { borderTopColor: '#ADAECF', borderLeftColor: '#ADAECF', }, + + '.Branding': { + '.Branding__text': { + color: '#47557C', + }, + '.Branding__icon': { + '> svg': { + path: { + '&:last-of-type': { + fill: '#1C2445', + }, + '&:first-of-type': { + fill: '#47557C', + }, + }, + }, + }, + }, }, };