Skip to content

Commit

Permalink
411/widget functionality (#413)
Browse files Browse the repository at this point in the history
* Modded lib/components/BrandedFooter

* Overwritting lib/assets/svg/logo with CoW Protocol's logo
  • Loading branch information
alfetopito authored Apr 19, 2022
1 parent d995ca8 commit 71d99f2
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/custom/lib/assets/svg/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions src/custom/lib/components/BrandedFooter/BrandedFooterMod.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { Trans } from '@lingui/macro'
import Row from 'lib/components/Row'
import { Logo } from 'lib/icons'
import { /*styled,*/ /*brand,*/ ThemedText } from 'lib/theme'

// MOD imports
import { UniswapA } from '@src/lib/components/BrandedFooter'

/* import ExternalLink from './ExternalLink'

const UniswapA = styled(ExternalLink)`
color: ${({ theme }) => theme.secondary};
cursor: pointer;
text-decoration: none;

${Logo} {
fill: ${({ theme }) => theme.secondary};
height: 1em;
transition: transform 0.25s ease, fill 0.25s ease;
width: 1em;
will-change: transform;
}

:hover ${Logo} {
fill: ${brand};
transform: rotate(-5deg);
}
` */

export default function BrandedFooter() {
return (
<Row justify="center">
<UniswapA href={`https://cow.fi/`}>
<Row gap={0.25}>
<Logo />
<ThemedText.Caption>
<Trans>Powered by the CoW Protocol</Trans>
</ThemedText.Caption>
</Row>
</UniswapA>
</Row>
)
}
3 changes: 3 additions & 0 deletions src/custom/lib/components/BrandedFooter/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import BrandedFooter from './BrandedFooterMod'

export default BrandedFooter
2 changes: 1 addition & 1 deletion src/lib/components/BrandedFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styled, { brand, ThemedText } from 'lib/theme'

import ExternalLink from './ExternalLink'

const UniswapA = styled(ExternalLink)`
export const UniswapA = styled(ExternalLink)`
color: ${({ theme }) => theme.secondary};
cursor: pointer;
text-decoration: none;
Expand Down

0 comments on commit 71d99f2

Please sign in to comment.