Skip to content

Add To Cart Button #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions addtocart/cartbutton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from 'react';
export default class Addtocart extends React.PureComponent {

render() {
return (
<React.Fragment>
<style jsx>{`
button {
*
*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these *s for?

*
background-color: #e33812; font-size: 16px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you place font-size to new line?

border-radius: 12px;

color: white;
padding: 15px 32px;
text-align: center;
display: inline-block;
font-size: 16px;
border-radius: 12px;

`}</style>

<button onClick={this.props.onClick}>
{this.props.children}
</button>
</React.Fragment>
);
}
}