<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Murat Benli on Medium]]></title>
        <description><![CDATA[Stories by Murat Benli on Medium]]></description>
        <link>https://medium.com/@muratbenli?source=rss-7d909fde142f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PTOSE0B7f4TbkF9y2d47VQ.jpeg</url>
            <title>Stories by Murat Benli on Medium</title>
            <link>https://medium.com/@muratbenli?source=rss-7d909fde142f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:02:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muratbenli/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Tailwind CSS + ReactJS + Tailblocks = Quick Start Combo]]></title>
            <link>https://medium.com/swlh/tailwind-css-reactjs-tailblocks-quick-start-combo-6a6b18a41e88?source=rss-7d909fde142f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a6b18a41e88</guid>
            <category><![CDATA[tailblocks]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[tailwind]]></category>
            <dc:creator><![CDATA[Murat Benli]]></dc:creator>
            <pubDate>Fri, 14 Aug 2020 11:10:45 GMT</pubDate>
            <atom:updated>2020-08-28T16:23:18.533Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39SP5Q3V3TlhrxxbhD6c-A.png" /><figcaption>TailwindCSS + ReactJS + tailblocks</figcaption></figure><p>Hello everyone, in this article I want to tell you how to create a quick project using <strong>TailwindCSS, ReactJS</strong> and <strong>Tailblocks</strong>.</p><p>Let’s start by getting acquainted with technologies.</p><p><a href="https://tailwindcss.com/">Tailwind CSS - Rapidly build modern websites without ever leaving your HTML.</a></p><p><strong>Tailwind CSS </strong>is a CSS library developed by <a href="https://medium.com/@adamwathan">Adam Wathan</a>. It allows you to export CSS to your elements using ready classes. It offers you a great flexibility when writing code because it doesn’t have ready components like Bootstrap, and it’s more customizable for your imagination and design capability.</p><p>Of course, these differences bring a lot of criticism. Since there are no ready components of the program, there are those who think that it is not much different from writing inline CSS by naming too many classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*ltgtjJpRqaJEU3ghtl5bPw.png" /><figcaption><a href="https://tailwindcss.com/components/buttons/#bordered">https://tailwindcss.com/components/buttons/#bordered</a></figcaption></figure><p>It also gets criticism as it becomes difficult to understand because of the lack of semantic (semantic) of class nomenclature, which is very close to atomic level. I advise you to read the article below on this topic.</p><ul><li><a href="https://maintainablecss.com/chapters/semantics/">Semantics</a></li><li><a href="https://reactjs.org/">React</a></li></ul><p>There’s a lot to say about <strong>ReactJS</strong> , but I think there’s a lot of awareness in people now, I guess there’s no one who’s heard it. For detailed information, I recommend reading the following article and ReactJS’s own document.</p><ul><li><a href="https://medium.com/better-programming/getting-started-with-react-js-part-1-59598ef17780">Getting Started With React.js — Part 1</a></li><li><a href="https://github.com/mertJF/tailblocks">GitHub - mertJF/tailblocks: Ready-to-use Tailwind CSS blocks.</a></li></ul><p>What‘s <strong>Tailblocks</strong> ? Tailblocks is a code repository developed by <a href="https://github.com/mertJF">Mert Cukuren</a> on Github and consists of code blocks created using TailwindCSS. I love to use it in my own projects, and I believe it provides me an excellent speed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etsU5Wjuz-I4wweD9_IVlg.gif" /><figcaption><a href="https://github.com/mertJF/tailblocks/blob/master/public/preview.gif">https://github.com/mertJF/tailblocks/blob/master/public/preview.gif</a></figcaption></figure><p>Created in 15 different categories, these code blocks provide great convenience with responsive support, dark/light mode support and different color themes. You can start using these code blocks quickly copying and customize them for yourself. You can easily use these ready-made code blocks by converting them to jsx for your React projects.</p><p><strong>Let’s start our project.</strong></p><p>I recently prepared a technical service website for a relative of mine, and although I did not have much time for it, I was able to make a quick project using the libraries I mentioned. I want to talk about the way I’ve been doing this project and how I’ve taken advantage of TailwindCSS’s favorite features and the Tailblocks project. The link to the project I mentioned is below.</p><p><a href="https://github.com/muratbenli/WhiteGoodsServices">muratbenli/WhiteGoodsServices</a></p><p>We quickly create our ReactJS project using create-react-app, assuming that Node is installed on our computer. (<a href="https://nodejs.org/en/">Node &gt;= 8.10 and npm &gt;= 5.6</a>)</p><pre>npx create-react-app my-app</pre><pre>cd my-app</pre><pre>npm start</pre><p>Then I removed the files that we wouldn’t use that came with create-react-app. I included the react-router-dom to control the pagination structure of our project.</p><p><strong>Let’s include our TailwindCSS library.</strong></p><pre>yarn add tailwindcss postcss-cli autoprefixer -D</pre><p>After incorporating the necessary dependencies in our project using the yarn add command, we run the following command. This command <em>creates tailwind.config.js for our project.</em></p><pre>npx tailwind init —full</pre><p>Tailwind needs a build process and we use PostCSS for it. For this we create the file postcss.config.js in the directory where we are in.</p><pre>touch postcss.config.js</pre><p>And in our file we write the following codes.</p><pre>module.exports = {<br>    plugins: [<br>        require(&#39;tailwindcss&#39;),<br>        require(&#39;autoprefixer&#39;)<br>    ],<br>};</pre><p>There are a few steps left to complete our process of incorporating TailwindCSS into the project. We create a file called styles under the src directory and open a style file named tailwind.css in it. We include the following codes and thus allow Tailwind to import CSS codes from required packages.</p><pre>@tailwind base;<br><br>@tailwind components;<br><br>@tailwind utilities;</pre><p>As a final step, we replace the scripts section in our package.json file with the following codes.</p><pre>&quot;scripts&quot;: {<br>    &quot;start&quot;: &quot;npm run build:css &amp;&amp; react-scripts start&quot;,<br>    &quot;build&quot;: &quot;npm run build:css &amp;&amp; react-scripts build&quot;,<br>    &quot;test&quot;: &quot;react-scripts test&quot;,<br>    &quot;eject&quot;: &quot;react-scripts eject&quot;,<br>    &quot;build:css&quot;: &quot;postcss src/styles/tailwind.css -o src/styles/main.css&quot;<br>  },</pre><p>We launch our application.</p><pre>yarn start</pre><p>By importing the ./styles/main.css file to the app.js file in our project, our project can easily be used with TailwindCSS.</p><pre>import React from &#39;react&#39;;<br>import &#39;./styles/main.css&#39;;<br><br>function App() {<br>  return (<br>    &lt;div class=&quot;h-64&quot;&gt;<br>        &lt;div class=&quot;p-4 m-4 bg-green-600&quot;&gt;<br>            &lt;h1 class=&quot;text-2xl font-bold text-white&quot;&gt;Merhaba&lt;/h1&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Now you can quickly design your pages using TailwindCSS and Tailblocks ready code blocks. In the rest of my article, I’ll be talking about how I use them and what I like about Tailwind.</p><p><strong>Tailblocks code blocks and usage examples within the project.</strong></p><blockquote>You can use the following block example to quickly prepare a photo catalog.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*FrnUI_zkuo9qOi__E054JQ.png" /><figcaption><a href="https://mertjf.github.io/tailblocks/">https://mertjf.github.io/tailblocks/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*E9urrsLCdg4ORs13gt2GrA.png" /><figcaption><a href="https://muratbenli.github.io/WhiteGoodsServices/">https://muratbenli.github.io/WhiteGoodsServices/</a></figcaption></figure><blockquote>You can design a page of different tabs and present it on your page in an interactive way.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*xUCAUx7P5IroRRmpQ-IXBQ.png" /><figcaption><a href="https://mertjf.github.io/tailblocks/">https://mertjf.github.io/tailblocks/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*3SpLTggflOPeOy52lhHfww.png" /><figcaption><a href="https://muratbenli.github.io/WhiteGoodsServices/">https://muratbenli.github.io/WhiteGoodsServices/</a></figcaption></figure><blockquote>You can quickly create a contact page and provide address information with Google maps.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*D5lSkYUz0XjR5UxdtHa2Yw.png" /><figcaption><a href="https://mertjf.github.io/tailblocks/">https://mertjf.github.io/tailblocks/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*LkB3KrPEFbFnO0yFF2dxjw.png" /><figcaption><a href="https://muratbenli.github.io/WhiteGoodsServices/">https://muratbenli.github.io/WhiteGoodsServices/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*B6zsgLHL99cwRsI_CdBZvw.png" /><figcaption><a href="https://muratbenli.github.io/WhiteGoodsServices/">https://muratbenli.github.io/WhiteGoodsServices/</a></figcaption></figure><p><strong>Animate the element quickly with TailwindCSS</strong></p><blockquote>You can quickly animate the cards you use. You can easily animate the element you want to apply this feature by adding <strong>class=“transform transition duration-500 hover: scale-110”</strong> code.With the “hover:” feature, you can easily apply the hover selector feature. You can customize it using other prefixes such as “focus:”, “active:”, “group-hover:” and create easy animations.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fembed%2Fpreview%2FjOWJaZy%3Fheight%3D600%26slug-hash%3DjOWJaZy%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fdetails%2FjOWJaZy&amp;image=https%3A%2F%2Fassets.codepen.io%2F3863154%2Finternal%2Fscreenshots%2Fpens%2FjOWJaZy.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1595601401%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/622ff9618f9b65ad254fa6c6722781ec/href">https://medium.com/media/622ff9618f9b65ad254fa6c6722781ec/href</a></iframe><blockquote>You can even create Netflix slider animation by inserting your cards into a slider and applying this feature. In the example below I have not used a slider but you can test the animation on codepen.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fembed%2Fpreview%2FmdVoprE%3Fheight%3D600%26slug-hash%3DmdVoprE%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fpen%2FmdVoprE&amp;image=https%3A%2F%2Fassets.codepen.io%2F3863154%2Finternal%2Fscreenshots%2Fpens%2FmdVoprE.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1595601461%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/827428d3234dab2178837e5222415205/href">https://medium.com/media/827428d3234dab2178837e5222415205/href</a></iframe><blockquote>You can examine the example I made with the new animation classes that came with the TailwindCSS 1.6 update in the following study.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fembed%2Fpreview%2FxxZNoyX%3Fheight%3D600%26slug-hash%3DxxZNoyX%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fpen%2FxxZNoyX&amp;image=https%3A%2F%2Fassets.codepen.io%2F3863154%2Finternal%2Fscreenshots%2Fpens%2FxxZNoyX.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1596550788%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/e0aa080f881bef4a66260f8bfee711b8/href">https://medium.com/media/e0aa080f881bef4a66260f8bfee711b8/href</a></iframe><blockquote>Skeleton Loading Cards with Tailwind CSS 1.6 — animate-pulse</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fembed%2Fpreview%2FyLOYmgj%3Fheight%3D600%26slug-hash%3DyLOYmgj%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fpen%2FyLOYmgj&amp;image=https%3A%2F%2Fassets.codepen.io%2F3863154%2Finternal%2Fscreenshots%2Fpens%2FyLOYmgj.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1597300097%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/23f19b7262f95bfec69fed2c889916b7/href">https://medium.com/media/23f19b7262f95bfec69fed2c889916b7/href</a></iframe><p>I tried to convey my knowledge to you within my experience. If you would like to contact me about any of your comments, advice and feedback, please contact me through the following accounts. Thank you for taking the time to read this article.</p><ul><li><a href="https://www.linkedin.com/in/murat-benli/">Murat Benli - Web Developer - BilgeAdam | LinkedIn</a></li><li><a href="https://github.com/muratbenli">muratbenli - Overview</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a6b18a41e88" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/tailwind-css-reactjs-tailblocks-quick-start-combo-6a6b18a41e88">Tailwind CSS + ReactJS + Tailblocks = Quick Start Combo</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tailwind CSS + ReactJS + Tailblocks = Hızlı Başlangıç Combosu]]></title>
            <link>https://medium.com/batech/tailwind-css-reactjs-tailblocks-h%C4%B1zl%C4%B1-ba%C5%9Flang%C4%B1%C3%A7-combosu-517746aea66?source=rss-7d909fde142f------2</link>
            <guid isPermaLink="false">https://medium.com/p/517746aea66</guid>
            <category><![CDATA[tailblocks]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[tailwind]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Murat Benli]]></dc:creator>
            <pubDate>Fri, 24 Jul 2020 11:02:22 GMT</pubDate>
            <atom:updated>2020-07-24T11:13:46.511Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39SP5Q3V3TlhrxxbhD6c-A.png" /><figcaption>TailwindCss + ReactJS + tailblocks</figcaption></figure><p>Herkese merhaba, bu yazımda sizlere <strong>TailwindCSS</strong> , <strong>ReactJS</strong> ve <strong>Tailblocks</strong> kullanarak nasıl hızlı bir proje çıkarabileceğinizden bahsetmek istiyorum.</p><p>Öncelikle Teknolojileri tanıyarak başlayalım.</p><p><a href="https://tailwindcss.com/">Tailwind CSS - Rapidly build modern websites without ever leaving your HTML.</a></p><p><strong>Tailwind CSS</strong> <a href="https://medium.com/u/2bdb4734b294">Adam Wathan</a> tarafından geliştirilen bir CSS kütüphanesi. Hazır class’lar kullanarak elementlerinize CSS vermenize imkan sunuyor. Bootstrap gibi içerisinde hazır komponentler bulundurmaması ve sizin hayal gücünüz ve tasarım yeteneğinize göre daha özelleştirilebilir olması kod yazarken büyük esneklik sağlıyor.</p><p>Tabii bu farklılıklar beraberinde birçok eleştiride getiriyor. Hazır komponentleri olmadığı için çok fazla class isimlendirilmesi yaparak inline css yazmaktan pek farkı kalmadığını düşünenler var.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*hYZtwtOAVvVF_GwvqF0pAg.png" /><figcaption><a href="https://tailwindcss.com/components/buttons/#bordered">https://tailwindcss.com/components/buttons/#bordered</a></figcaption></figure><p>Ayrıca class isimlendirmelerinin semantik (anlamsal) olmaması, atomik düzeye çok yakın olması sebebi ile anlamanın zorlaştığı gibi eleştiriler alıyor. Bu konu hakkında aşağıda ki yazıyı okumanızı tavsiye ederim.</p><ul><li><a href="https://maintainablecss.com/chapters/semantics/">Semantics</a></li><li><a href="https://reactjs.org/">React</a></li></ul><p><strong>ReactJS</strong> hakkında söylenecek çok şey var ama artık insanlarda farkındalık olduğunu düşünüyorum duymayan kalmamıştır herhalde. Detaylı bilgi için aşağıda ki yazıyı ve ReactJS’ in kendi dökümanını okumanızı tavsiye ederim.</p><ul><li><a href="https://medium.com/t%C3%BCrkiye/nedir-bu-react-neden-kullanmal%C4%B1y%C4%B1z-nas%C4%B1l-ba%C5%9Flar%C4%B1z-neler-yapabiliriz-f473e3ae0a7e">Nedir Bu React? Neden Kullanmalıyız, Nasıl başlarız, Neler Yapabiliriz</a></li><li><a href="https://github.com/mertJF/tailblocks">GitHub - mertJF/tailblocks: Ready-to-use Tailwind CSS blocks.</a></li></ul><p><strong>Tailblocks</strong> nedir? Tailblocks<a href="https://github.com/mertJF"> <em>Mert Cukuren</em></a><em> </em>tarafından Github üzerinde geliştirilen ve TailwindCSS kullanarak oluşturulmuş kod bloklardan oluşan bir kod reposu. Ben kendi projelerimde severek kullanıyorum ve mükemmel bir hız kazandırdığına inanıyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etsU5Wjuz-I4wweD9_IVlg.gif" /><figcaption><a href="https://github.com/mertJF/tailblocks/blob/master/public/preview.gif">https://github.com/mertJF/tailblocks/blob/master/public/preview.gif</a></figcaption></figure><p>15 farklı kategoride hazırlanmış bu kod blokları responsive desteği, dark/light mode desteği ve farklı renk temaları ile çok büyük bir kolaylık sağlıyor. Bu kod blokları hızlı bir şekilde kopyalayarak kullanmaya başlayabilir ve kendinize göre özelleştirebilirsiniz. React projeleriniz için bu hazır kod bloklarını jsx’e dönüştürerek rahatça kullanabilirsiniz.</p><h4>Projemize başlayalım.</h4><p>Yakın zamanda bir yakınım için bir teknik servis web sitesi hazırladım ve bunun için çok fazla vaktim olmamasına rağmen bahsettiğim kütüphaneleri kullanarak hızlı bir proje yapabildim. Bu projeyi yaparken nasıl bir yol izlediğimi ve TailwindCSS’in sevdiğim özelliklerinden ve Tailblocks projesinden nasıl faydalandığımdan bahsetmek istiyorum. Bahsettiğim projenin linki aşağıdadır.</p><p><a href="https://github.com/muratbenli/WhiteGoodsServices">muratbenli/WhiteGoodsServices</a></p><p>Bilgisayarımızda Node kurulu olduğunu varsayarak create-react-app kullanarak hızlıca ReactJS projemizi oluşturuyoruz. (<a href="https://nodejs.org/en/">Node &gt;= 8.10 and npm &gt;= 5.6</a>)</p><pre>npx create-react-app my-app</pre><pre>cd my-app</pre><pre>npm start</pre><p>Sonrasında create-react-app ile gelen kullanmayacağımız dosyaları kaldırdım projemizin sayfalandırma yapısını kontrol edebilmek için <a href="https://www.npmjs.com/package/react-router-dom">react-router-dom</a>’u dahil ettim.</p><h4>TailwindCSS kütüphanemizi dahil edelim.</h4><pre>yarn add tailwindcss postcss-cli autoprefixer -D</pre><p>yarn add komutunu kullanarak gerekli bağımlılıkları projemize dahil ettikten sonra aşağıdaki komutu çalıştırıyoruz. Bu komut projemize <em>tailwind.config.js dosyasını oluşturuyor.</em></p><pre>npx tailwind init —full</pre><p>Tailwind bir build process’e ihtiyaç duyuyor ve biz bunun için PostCSS kullanıyoruz. Bunun için bulunduğumuz dizine postcss.config.js dosyasını oluşturuyoruz.</p><pre>touch postcss.config.js</pre><p>Ve dosyamızın içerisine aşağıdaki kodları yazıyoruz.</p><pre>module.exports = {<br>    plugins: [<br>        require(&#39;tailwindcss&#39;),<br>        require(&#39;autoprefixer&#39;)<br>    ],<br>};</pre><p>TailwindCSS’ projeye dahil sürecimizi tamamlamak için birkaç adım kaldı. src dizinin altına styles adında bir dosya oluşturuyor ve içerisine tailwind.css isimli bir style dosyası açıyoruz. İçerisine aşağıdaki kodları dahil ediyoruz ve bu şekilde Tailwind’in gerekli paketlerden CSS kodlarını import etmesini sağlıyoruz.</p><pre>@tailwind base;<br><br>@tailwind components;<br><br>@tailwind utilities;</pre><p>Son adım olarak package.json dosyamızda scripts bölümünü aşağıdaki kodlar ile değiştiriyoruz.</p><pre>&quot;scripts&quot;: {<br>    &quot;start&quot;: &quot;npm run build:css &amp;&amp; react-scripts start&quot;,<br>    &quot;build&quot;: &quot;npm run build:css &amp;&amp; react-scripts build&quot;,<br>    &quot;test&quot;: &quot;react-scripts test&quot;,<br>    &quot;eject&quot;: &quot;react-scripts eject&quot;,<br>    &quot;build:css&quot;: &quot;postcss src/styles/tailwind.css -o src/styles/main.css&quot;<br>  },</pre><p>Uygulamamızı başlatıyoruz.</p><pre>yarn start</pre><p>Projemizde yer alan app.js dosyasına ./styles/main.css dosyasını import ederek projemiz rahatlıkla TailwindCSS kullanabilir hale geliyor.</p><pre>import React from &#39;react&#39;;<br>import &#39;./styles/main.css&#39;;<br><br>function App() {<br>  return (<br>    &lt;div class=&quot;h-64&quot;&gt;<br>        &lt;div class=&quot;p-4 m-4 bg-green-600&quot;&gt;<br>            &lt;h1 class=&quot;text-2xl font-bold text-white&quot;&gt;Merhaba&lt;/h1&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Artık rahatça TailwindCSS ve Tailblocks hazır kod bloklarını kullanarak hızlıca sayfalarınızı tasarlayabilirsiniz. Yazımın devamında benim bunları nasıl kullandığımdan ve Tailwind’in sevdiğim özelliklerinden bahsediyor olacağım.</p><h4>Tailblocks kod blokları ve proje içerisinde kullanım örnekleri.</h4><p>Hızlıca bir fotoğraf katoloğu hazırlamak için aşağıdaki blok örneğinden faydalanabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOBrIpt_XCFCNzlUxc0vuw.png" /><figcaption><a href="https://mertjf.github.io/tailblocks/">https://mertjf.github.io/tailblocks/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QvZXLmyMPCe1y3bKwOYsBg.png" /><figcaption><a href="https://muratbenli.github.io/WhiteGoodsServices/">https://muratbenli.github.io/WhiteGoodsServices/</a></figcaption></figure><p>Farklı sekmelerden oluşan bir sayfa tasarlayarak interaktif bir şekilde sayfanızda sunabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kStmHliKyveYXwtabfTe9Q.png" /><figcaption><a href="https://mertjf.github.io/tailblocks/">https://mertjf.github.io/tailblocks/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3CUYgJoQNc7V53Es7U33g.png" /><figcaption><a href="https://muratbenli.github.io/WhiteGoodsServices/">https://muratbenli.github.io/WhiteGoodsServices/</a></figcaption></figure><p>Hızlı bir şekilde bir iletişim sayfası oluşturabilir ve adres bilgilerini Google haritalar ile birlikte sunabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-VWZbElCMZn9CEloOQpUA.png" /><figcaption><a href="https://mertjf.github.io/tailblocks/">https://mertjf.github.io/tailblocks/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDOm1Dvt9W6y05BpQChA1g.png" /><figcaption><a href="https://muratbenli.github.io/WhiteGoodsServices/">https://muratbenli.github.io/WhiteGoodsServices/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5j83OwPqyIyZFIFakkFYHw.png" /><figcaption><a href="https://muratbenli.github.io/WhiteGoodsServices/">https://muratbenli.github.io/WhiteGoodsServices/</a></figcaption></figure><h4>TailwindCSS ile hızlı bir şekilde elemente animasyon vermek</h4><p>Hızlı bir şekilde kullandığınız kartlara animasyon verebilirsiniz. Özelliği uygulamak istediğiniz elemente <strong>class=”transform transition duration-500 hover:scale-110”</strong> kodunu ekleyerek kolayca animasyon verebilirsiniz. “hover:” özelliği ile hover selector özelliğini kolayca uygulamak mümkün bunu “focus:” , “active:”, “group-hover:” gibi diğer ön ekleri kullanarak özelleştirebilir ve kolay animasyonlar yaratabilirsiniz.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fembed%2Fpreview%2FjOWJaZy%3Fheight%3D600%26slug-hash%3DjOWJaZy%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fpen%2FjOWJaZy&amp;image=https%3A%2F%2Fassets.codepen.io%2F3863154%2Finternal%2Fscreenshots%2Fpens%2FjOWJaZy.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1595601401%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/c184c17fc0c2a29f91be907ea6cd95d2/href">https://medium.com/media/c184c17fc0c2a29f91be907ea6cd95d2/href</a></iframe><p>Bir slider içine kartlarınızı yerleştirip bu özelliği uygulayarak Netflix slider animasyonu bile verebilirsiniz. Aşağıdaki örnekte ben bir slider kullanmadım ama codepen üzerinde animasyonu test edebilirsiniz.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fembed%2Fpreview%2FmdVoprE%3Fheight%3D600%26slug-hash%3DmdVoprE%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fmuratbenli%2Fpen%2FmdVoprE&amp;image=https%3A%2F%2Fassets.codepen.io%2F3863154%2Finternal%2Fscreenshots%2Fpens%2FmdVoprE.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1595601461%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/827428d3234dab2178837e5222415205/href">https://medium.com/media/827428d3234dab2178837e5222415205/href</a></iframe><p>Arkadaşlar tecrübem dahilinde bilgilerimi aktarmaya çalıştım, yorum, tavsiye ve görüşleriniz ile ilgili herhangi bir konuda benimle iletişime geçmek isterseniz bana aşağıdaki hesaplar üzerinden ulaşabilirsiniz. Zaman ayırıp okuduğunuz için teşekkür ederim.</p><ul><li><a href="https://www.linkedin.com/in/murat-benli/">Murat Benli - Web Developer - BilgeAdam | LinkedIn</a></li><li><a href="https://github.com/muratbenli">muratbenli - Overview</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=517746aea66" width="1" height="1" alt=""><hr><p><a href="https://medium.com/batech/tailwind-css-reactjs-tailblocks-h%C4%B1zl%C4%B1-ba%C5%9Flang%C4%B1%C3%A7-combosu-517746aea66">Tailwind CSS + ReactJS + Tailblocks = Hızlı Başlangıç Combosu</a> was originally published in <a href="https://medium.com/batech">BilgeAdam Teknoloji</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React projeleriniz için bir video oynatıcı incelemesi / react-player]]></title>
            <link>https://medium.com/batech/react-projeleriniz-i%C3%A7in-bir-video-oynat%C4%B1c%C4%B1-incelemesi-react-player-ab015b43ba91?source=rss-7d909fde142f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab015b43ba91</guid>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Murat Benli]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 12:46:45 GMT</pubDate>
            <atom:updated>2020-04-26T07:26:09.064Z</atom:updated>
            <content:encoded><![CDATA[<p>react-player açık kaynak bir video oynatıcı komponentidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aLg1-G2UAlaKpBopRnmCRg.png" /></figure><p>Projenizde bir video oynatıcıya ihtiyaç duyuyorsanız ve bunu hızlı bir şekilde yapmanız gerekiyorsa bence doğru yerdesiniz.</p><p><strong>react-player</strong> standart video formatlarının yanı sıra birçok video barındırma hizmetini video kaynağı olarak kullanmanıza olanak veren bir video oynatıcı komponentidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLG55GPUxo2AHsygJdHx2A.png" /><figcaption><a href="https://github.com/CookPete/react-player">https://github.com/CookPete/react-player</a></figcaption></figure><p>Bu proje <a href="http://twitter.com/CookPete"><strong>@CookPete</strong></a> tarafından 2 yıl önce geliştirilmeye başlanmış ve bu yazıyı yazdığım tarihlerde 65 farklı kişinin projeye katkısı ile açık kaynak olarak geliştirilmeye devam etmektedir. Şu anda react-player github üzerinde <strong>3.6k</strong> yıldıza sahiptir. npm paketi’nin de indirilme oranı haftalık <strong>180k </strong>’nın üzerindedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xDK2ol4Y0WVQtm68bEsHNA.png" /><figcaption><a href="https://www.npmjs.com/package/react-player">https://www.npmjs.com/package/react-player</a></figcaption></figure><p><strong>react-player </strong>’ın desteklediği formatlar ;</p><blockquote>mp4, ogv, webm, mp3, HLS(m3u8), DASH(mpd), YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia, Mixcloud ve DailyMotion.</blockquote><p><strong>Neler yapabiliriz?</strong></p><p>React projenize kolaylıkla dahil edip hızlıca yukarıda yazan formatlardaki kaynakları kullanarak video komponentini dahil edebilirsiniz ve komponentin “attribute”larini kullanarak “state”lerine erişebilir ve içeriğin izlenme , yüklenme, durdurulma, kalan zaman gibi birçok verisini kontrol edebilirsiniz.</p><p><strong>Projemize nasıl dahil ederiz?</strong></p><pre>npm install react-player — save<br># ya da<br>yarn add react-player</pre><pre><strong>import</strong> <em>React</em>, { <em>Component</em> } <strong>from</strong> &#39;react&#39;<br><strong>import</strong> <em>ReactPlayer</em> <strong>from</strong> &#39;react-player&#39;</pre><pre>class App extends Component {<br>  render () {<br>     <strong>return</strong> <strong>&lt;</strong>ReactPlayer <br>              url<strong>=</strong>&#39;https://www.youtube.com/watch?v=ysz5S6PUM-U&#39;<br>            <strong>/&gt;<br>  </strong>}<br>}</pre><p>Komponenti, projenize ekledikten sonra istediğiniz gibi özelleştirebilir ve kompleks hale getirebilirsiniz. Bunun için projenin <a href="https://github.com/CookPete/react-player/blob/master/src/demo/App.js"><strong>demo</strong></a> kodlarını inceleyebilirsiniz.</p><pre><strong>&lt;ReactPlayer</strong>              <br>   ref={this.ref}              <br>   className=&#39;react-player&#39;            <br>   width=&#39;100%&#39;           <br>   height=&#39;100%&#39;            <br>   url={url}          <br>   pip={pip}           <br>   playing={playing}           <br>   controls={controls}           <br>   light={light}           <br>   loop={loop}           <br>   playbackRate={playbackRate}            <br>   volume={volume}           <br>   muted={muted}           <br>   onReady={() =&gt; console.log(&#39;onReady&#39;)}           <br>   onStart={() =&gt; console.log(&#39;onStart&#39;)}            <br>   onPlay={this.handlePlay}           <br>   onEnablePIP={this.handleEnablePIP}           <br>   onDisablePIP={this.handleDisablePIP}          <br>   onPause={this.handlePause}           <br>   onBuffer={() =&gt; console.log(&#39;onBuffer&#39;)}          <br>   onSeek={e =&gt; console.log(&#39;onSeek&#39;, e)}          <br>   onEnded={this.handleEnded}          <br>   onError={e =&gt; console.log(&#39;onError&#39;, e)}           <br>   onProgress={this.handleProgress}          <br>   onDuration={this.handleDuration}            <br><strong>/&gt;</strong></pre><p>Gördüğünüz gibi komponenti istediğiniz gibi kontrol edebilir ve ihtiyacanız olan verileri kolaylıkla toplayabilirsiniz. Bu demo’yu canlı olarak <a href="https://cookpete.com/react-player/">https://cookpete.com/react-player/ </a>üzerinde test edebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b5N7gIBjUQYf5TlMcn9Q2A.png" /><figcaption><a href="https://cookpete.com/react-player/">https://cookpete.com/react-player/</a></figcaption></figure><p>Yukarıda gördüğünüz gibi react-player’ın desteklediği fotmatları ve özellikleri test edebilir, ulaşabileceğiniz verilerin önizlemesini yapabilirsiniz.</p><h4>Başka neler var ?</h4><p>react-player birçok video barındırma hizmetini desteklemektedir, siz de yukarıda anlattığım komponenti bu hizmetlerin tamamı için kullanabilirsiniz. Eğer isterseniz bütün hepsini desteklemesi yerine içlerinden bir tanesini destekleyen komponenti de tercih edebilirsiniz. Bütün tekil komponentlerin listesine <a href="https://github.com/CookPete/react-player/tree/master/src/players"><strong>buradan</strong></a> ulaşabilirsiniz.</p><pre><strong>import</strong> YouTubePlayer <strong>from</strong> &#39;react-player/lib/players/YouTube&#39;<br><br><strong>&lt;YouTubePlayer</strong><br>  url=&#39;https://www.youtube.com/watch?v=d46Azg3Pm4c&#39;<br>  playing<br>  controls <br>  //diğer parametleri de kullanmaya devam edebilirsiniz.<br><strong>/&gt;</strong></pre><p><strong>react-player’ı React projelerimiz dışında da kullanabilir miyiz ?</strong></p><p>Evet React kullanmıyorsanız, bağımsız olarak geliştirilmiş kütüphane ile bu video oynatıcıyı projelerinizde kullanabilirsiniz.</p><pre><strong>&lt;script</strong> <strong>src</strong>=&#39;https://unpkg.com/react-player/dist/ReactPlayer.standalone.js&#39;<strong>&gt;&lt;/script&gt;</strong></pre><pre><strong>&lt;script&gt;</strong></pre><pre><em>const</em> container <strong>=</strong> document.getElementById(&#39;container&#39;);<br><em>const</em> url <strong>=</strong> &#39;https://www.youtube.com/watch?v=d46Azg3Pm4c&#39;;</pre><pre><strong>renderReactPlayer</strong>(container, { url, playing<strong>:</strong> <em>true</em> })</pre><pre><em>function</em> <strong>pausePlayer</strong> () {<br><strong>renderReactPlayer</strong>(container, { url, playing<strong>:</strong> <em>false</em> })<br>}</pre><pre><strong>&lt;/script&gt;</strong></pre><p><strong>Kaynaklar;</strong></p><ul><li><a href="https://github.com/CookPete/react-player">GitHub - cookpete/react-player: A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion</a></li><li><a href="https://www.npmjs.com/package/react-player">react-player</a></li><li><a href="https://cookpete.com/react-player/">ReactPlayer Demo</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab015b43ba91" width="1" height="1" alt=""><hr><p><a href="https://medium.com/batech/react-projeleriniz-i%C3%A7in-bir-video-oynat%C4%B1c%C4%B1-incelemesi-react-player-ab015b43ba91">React projeleriniz için bir video oynatıcı incelemesi / react-player</a> was originally published in <a href="https://medium.com/batech">BilgeAdam Teknoloji</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>