Skip to content
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

Update Button.tsx #65

Closed
wants to merge 1 commit into from
Closed
Changes from all 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
57 changes: 36 additions & 21 deletions src/app/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
import * as React from 'react';
import { createAsset } from './Asset';
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins">
<style>
body{font-family: "poppins",serif}
.button {
background-color: #04AA6D; /* Green */
border: none;
color: white;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
border-radius: 10%
}
.button_design {
background-color: white;
color: black;
border: 2px solid #555555;
}

export function CreateButton({applicationData, data, name}): React.JSX.Element {
return (
<button style={{
marginTop: '10px',
marginBottom: '10px',
maxWidth: 'fit-content',
height: 'fit-content',
// marginLeft: '10px',
backgroundColor: "black",
border: '1px solid white',
borderRadius: '5px',
padding: '8px 24px',
color: 'white',
flexWrap: 'nowrap',
cursor: 'pointer',
fontSize: '12px'
}} onClick={() => createAsset(applicationData, data, name)}>Create Snippet</button>
)
}
.button_design:hover {
background-color: #555555;
color: white;
}
</style>
</head>
<body>
<span class="button button_design">Pieces</span>
</body>
</style>
</head>
</html>
Loading