-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
draft: Created Banner component with Sign up and Log in buttons for m…
…obile
- Loading branch information
nastassia
committed
May 27, 2021
1 parent
89ce00d
commit 0cef62f
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react" | ||
import { Box, Button } from "@artsy/palette" | ||
import { BannerButton } from "./Button" | ||
|
||
interface Props { | ||
href: string | ||
} | ||
|
||
interface State {} | ||
|
||
export class Banner extends React.Component<Props, State> { | ||
render() { | ||
const {} = this.props | ||
|
||
return ( | ||
<Box> | ||
<BannerButton | ||
href={`/sign_up?intent=signup&contextModule=${template}&destination=${sd.CURRENT_PATH}`} | ||
> | ||
Sign Up | ||
</BannerButton> | ||
<BannerButton | ||
href={`/log_in?intent=login&contextModule=${template}&destination=${sd.CURRENT_PATH}`} | ||
> | ||
Log In | ||
</BannerButton> | ||
</Box> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react" | ||
import { Button } from "@artsy/palette" | ||
|
||
interface Props { | ||
href: string | ||
} | ||
|
||
interface State {} | ||
|
||
export class BannerButton extends React.Component<Props, State> { | ||
render() { | ||
const { href, children } = this.props | ||
|
||
return ( | ||
<a href={href}> | ||
<Button width="50%" size="small"> | ||
{children} | ||
</Button> | ||
</a> | ||
) | ||
} | ||
} |
Empty file.