Skip to content

Commit 8d40407

Browse files
committed
readme
1 parent 39b2518 commit 8d40407

File tree

6 files changed

+62
-67
lines changed

6 files changed

+62
-67
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Mert Cukuren
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+10-64
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,14 @@
1-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
1+
# tailblocks
2+
### 🎉 60+ different ready to use Tailwind UI blocks
3+
##### Features
24

3-
## Available Scripts
5+
* 15 different categories (ecommerce, blog, pricing and more...)
6+
* Responsive
7+
* Dark/light mode
8+
* Color options
49

5-
In the project directory, you can run:
10+
[![tailblocks](https://cdn.dribbble.com/users/1101940/screenshots/11090124/media/5134f96f8a84cf7c9e3a7d03a848cf21.gif)](https://mertjf.github.io/tailblocks)
611

7-
### `yarn start`
12+
## License
813

9-
Runs the app in the development mode.<br />
10-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11-
12-
The page will reload if you make edits.<br />
13-
You will also see any lint errors in the console.
14-
15-
### `yarn test`
16-
17-
Launches the test runner in the interactive watch mode.<br />
18-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19-
20-
### `yarn build`
21-
22-
Builds the app for production to the `build` folder.<br />
23-
It correctly bundles React in production mode and optimizes the build for the best performance.
24-
25-
The build is minified and the filenames include the hashes.<br />
26-
Your app is ready to be deployed!
27-
28-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29-
30-
### `yarn eject`
31-
32-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33-
34-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35-
36-
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37-
38-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39-
40-
## Learn More
41-
42-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43-
44-
To learn React, check out the [React documentation](https://reactjs.org/).
45-
46-
### Code Splitting
47-
48-
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49-
50-
### Analyzing the Bundle Size
51-
52-
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53-
54-
### Making a Progressive Web App
55-
56-
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57-
58-
### Advanced Configuration
59-
60-
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61-
62-
### Deployment
63-
64-
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65-
66-
### `yarn build` fails to minify
67-
68-
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
14+
Code copyright 2020 Mert Cukuren. Code released under [the MIT license](https://github.com/mertjf/tailblocks/blob/master/LICENSE).

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"react": "^16.12.0",
1212
"react-dom": "^16.12.0",
1313
"react-frame-component": "^4.1.1",
14-
"react-scripts": "3.3.0",
14+
"react-scripts": "3.4.0",
1515
"react-syntax-highlighter": "^12.2.1"
1616
},
1717
"scripts": {

public/index.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
work correctly both with client-side routing and a non-root public URL.
2626
Learn how to configure a non-root public URL by running `npm run build`.
2727
-->
28-
<title>Tailwind Blocks</title>
28+
<title>tailblocks - ready to use tailwind blocks</title>
2929
</head>
3030
<body>
3131
<noscript>You need to enable JavaScript to run this app.</noscript>
@@ -40,5 +40,14 @@
4040
To begin the development, run `npm start` or `yarn start`.
4141
To create a production bundle, use `npm run build` or `yarn build`.
4242
-->
43+
<!-- Global site tag (gtag.js) - Google Analytics -->
44+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-166647834-1"></script>
45+
<script>
46+
window.dataLayer = window.dataLayer || [];
47+
function gtag(){dataLayer.push(arguments);}
48+
gtag('js', new Date());
49+
50+
gtag('config', 'UA-166647834-1');
51+
</script>
4352
</body>
4453
</html>

src/App.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class App extends Component {
197197
{this.listRenderer()}
198198
</aside>
199199
<div className="toolbar">
200-
<button className="opener" onClick={this.toggleSidebar}>TAILWIND BLOCKS</button>
200+
<button className="opener" onClick={this.toggleSidebar}>TAILBLOCKS</button>
201201
<button className="copy-the-block" onClick={this.toggleView}>
202202
{!this.state.codeView ?
203203
<svg
@@ -255,6 +255,11 @@ class App extends Component {
255255
</div>
256256
</div>
257257
</main>
258+
<a href="https://github.com/mertJF/tailblocks" className="github" target="_blank" rel="noopener noreferrer">
259+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
260+
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
261+
</svg>
262+
</a>
258263
</div>
259264
);
260265
}

src/index.css

+14
Original file line numberDiff line numberDiff line change
@@ -553,3 +553,17 @@ pre, code {
553553
.view.show-code .codes {
554554
display: block;
555555
}
556+
557+
.github {
558+
width: 52px;
559+
height: 52px;
560+
border-radius: 50%;
561+
position: fixed;
562+
right: 20px;
563+
bottom: 20px;
564+
background-color: var(--solid-900);
565+
color: var(--main-100);
566+
display: inline-flex;
567+
align-items: center;
568+
justify-content: center;
569+
}

0 commit comments

Comments
 (0)