Skip to content

Commit 57d20a8

Browse files
Merge pull request pranjay-poddar#4743 from Palakkgoyal/buttonMania
Button mania
2 parents b49ef47 + 314dc72 commit 57d20a8

File tree

21 files changed

+6239
-0
lines changed

21 files changed

+6239
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
env: { browser: true, es2020: true },
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:react/recommended',
6+
'plugin:react/jsx-runtime',
7+
'plugin:react-hooks/recommended',
8+
],
9+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
10+
settings: { react: { version: '18.2' } },
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': 'warn',
14+
},
15+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Button-Mania
2+
3+
Welcome to the Button-Mania project!
4+
To get started with Button-Mania, please follow the instructions below:
5+
6+
## Setup
7+
8+
Please refer to the [Setup Guide](./setup.md) for detailed instructions on how to set up Button-Mania on your local machine.
9+
10+
## How to Contribute
11+
12+
Contributing to Button-Mania is a simple process. Follow the steps below to start contributing:
13+
14+
1. Create a button on [codepen.io](https://codepen.io).
15+
2. Take a screenshot of your button.
16+
3. Save the screenshot in the `assets` folder with a unique filename that does not exist in the folder already. This screenshot will visually represent your button in the collection.
17+
4. In the `assets` folder, navigate to `index.js`. Import your button image and export it.
18+
5. Go to the `components/Buttons/AllButtons.jsx` file.
19+
6. Create a new component called `ButtonCard` and pass it all the props required.
20+
Example:
21+
```jsx
22+
<ButtonCard
23+
btnImg={neumorphicGreyBtn}
24+
imgAlt="neumorphic grey button"
25+
codepenLink="https://codepen.io/Palak-Goyal/pen/dygEaVp"
26+
zipFileName="trial-button"
27+
authorName="Palak Goyal"
28+
githubLink="https://github.com/palakkgoyal"
29+
/>
30+
```
31+
32+
7. Send a pull request (PR).
33+
8. Wait for your PR to be reviewed and merged.
34+
35+
Thank you for your interest in contributing to Button-Mania!
36+
37+
If you have any further questions or need assistance, feel free to reach out to us.
38+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/logo.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Button Maniac - All your favourite buttons at one place</title>
8+
<link rel="preconnect" href="https://fonts.googleapis.com">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=Darumadrop+One&display=swap" rel="stylesheet">
11+
</head>
12+
<body>
13+
<div id="root"></div>
14+
<script type="module" src="/src/main.jsx"></script>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)