Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1846 from 0xProject/feature/website/starkdex-anno…
Browse files Browse the repository at this point in the history
…uncement

Added StarkDEX announcement to homepage
  • Loading branch information
David Sun authored Jun 3, 2019
2 parents 5a33167 + da9e90f commit 3019e38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 7 additions & 1 deletion packages/website/ts/components/announcement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Button } from './button';
export interface AnnouncementProps {
headline: string;
href: string;
shouldOpenInNewTab?: boolean;
}

const BrandColorSpan = styled.span`
Expand All @@ -31,7 +32,12 @@ const AnnouncementLink = styled(Button)`
export const Announcement: React.StatelessComponent<AnnouncementProps> = (props: AnnouncementProps) => {
return (
<Wrap>
<AnnouncementLink isWithArrow={true} isAccentColor={true} href={props.href}>
<AnnouncementLink
isWithArrow={true}
isAccentColor={true}
href={props.href}
target={props.shouldOpenInNewTab ? '_blank' : ''}
>
<BrandColorSpan>{'New!'}</BrandColorSpan>
{props.headline}
</AnnouncementLink>
Expand Down
10 changes: 6 additions & 4 deletions packages/website/ts/components/sections/landing/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import { LandingAnimation } from 'ts/components/heroImage';
import { HeroAnimation } from 'ts/components/heroAnimation';
import { WebsitePaths } from 'ts/types';

// const announcement = {
// headline: 'Vote on ZEIP-23 MultiAssetProxy',
// href: '/vote',
// };
const announcement = {
headline: 'StarkDEX: Bringing STARKs to Ethereum',
href: 'https://www.starkdex.io',
shouldOpenInNewTab: true,
};

export const SectionLandingHero = () => (
<Hero
Expand All @@ -20,6 +21,7 @@ export const SectionLandingHero = () => (
description="0x is an open protocol that enables the peer-to-peer exchange of assets on the Ethereum blockchain."
figure={<LandingAnimation image={<HeroAnimation />} />}
actions={<HeroActions />}
announcement={announcement}
/>
);

Expand Down

0 comments on commit 3019e38

Please sign in to comment.