Skip to content

Commit

Permalink
Merge pull request #766 from bancorprotocol/add-carbon-banner
Browse files Browse the repository at this point in the history
add carbon banner
  • Loading branch information
pingustar authored Mar 7, 2024
2 parents 6b4d7f1 + 127728b commit e0bd458
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 7 deletions.
Binary file added public/carbon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 30 additions & 2 deletions src/elements/layoutHeader/LayoutHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NotificationsMenu } from 'elements/notifications/NotificationsMenu';
import { SettingsMenu } from 'elements/settings/SettingsMenu';
import { ReactComponent as IconBancor } from 'assets/icons/bancor.svg';
import { ReactComponent as IconChevron } from 'assets/icons/chevronRight.svg';
import { useWalletConnect } from '../walletConnect/useWalletConnect';
import { WalletConnectModal } from '../walletConnect/WalletConnectModal';
import { WalletConnectButton } from '../walletConnect/WalletConnectButton';
Expand Down Expand Up @@ -32,13 +33,40 @@ export const LayoutHeader = () => {
return (
<>
<header
className={`fixed flex items-center justify-center w-full h-60 z-30 transition-colors ease-in-out duration-300 ${
className={`fixed flex items-center flex-col justify-center w-full h-[150px] z-30 transition-colors ease-in-out duration-300 ${
isTop
? ''
: 'bg-white dark:bg-black dark:border-b dark:border-charcoal'
}`}
>
<div className="flex items-center justify-between w-full mx-20">
<div className="h-[90px] bg-black w-full text-white flex items-center justify-center space-x-20 px-10">
<div className="h-50 w-50 shrink-0 border border-white/20 rounded-10 flex items-center justify-center relative">
<div className="absolute text-[9px] text-[#00B578] bg-[#002D1E] px-10 py-3 rounded-full -top-10 -right-20">
NEW
</div>
<img src="/carbon.png" alt="Carbon Logo" className="w-24" />
</div>
<div className="text-center hidden md:block">
<b>Carbon DeFi is Live!</b> - Automate your crypto trading
strategies onchain
</div>
<div className="text-center md:hidden">
<div>
<b>Carbon DeFi</b>
</div>
<div>Automate your trading strategies onchain</div>
</div>
<a
href="https://carbondefi.xyz"
target="_blank"
rel="noreferrer"
className="text-[#00B578] bg-[#002D1E] px-10 md:px-20 py-5 rounded-full flex items-center"
>
Try <span className="hidden md:block">App</span>{' '}
<IconChevron className="w-16 h-16 ml-6" />
</a>
</div>
<div className="flex items-center justify-between flex-row h-60 w-full px-20">
<div className="items-center hidden md:flex gap-30">
<Navigate to={BancorURL.earn}>
<IconBancor className="w-[18px]" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const Swap = () => {
const query = useQuery();

return (
<div className="pt-[120px] px-10">
<div className="pt-[210px] px-10">
<SwapWidget
from={query.get('from')}
to={query.get('to')}
Expand Down
3 changes: 0 additions & 3 deletions src/pages/earn/pools/Pools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ import { sendPoolEvent, PoolEvent } from 'services/api/googleTagManager/pool';

export const Pools = () => {
const title = 'Pools';
const subtitle =
'The only DeFi staking protocol with Single-Sided Liquidity.';

return (
<Page
title={title}
subtitle={subtitle}
trailingTitle={
<div className="flex items-center space-x-10 text-16">
<PageNavLink
Expand Down
2 changes: 1 addition & 1 deletion src/styles/utilities/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.page {
@apply pt-[100px] pb-[80px] px-10 md:px-20 max-w-[1140px] mx-auto;
@apply pt-[190px] pb-[80px] px-10 md:px-20 max-w-[1140px] mx-auto;
}

.page h1 {
Expand Down

0 comments on commit e0bd458

Please sign in to comment.