<?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 Aarushi Lal on Medium]]></title>
        <description><![CDATA[Stories by Aarushi Lal on Medium]]></description>
        <link>https://medium.com/@aarushilal?source=rss-9e1c6f4c3397------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kCy8QOWtCHEX4ek1.jpg</url>
            <title>Stories by Aarushi Lal on Medium</title>
            <link>https://medium.com/@aarushilal?source=rss-9e1c6f4c3397------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:22:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aarushilal/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[Using BEM with SCSS(“Sassy CSS”)]]></title>
            <link>https://aarushilal.medium.com/using-bem-with-scss-sassy-css-f805568bfb4a?source=rss-9e1c6f4c3397------2</link>
            <guid isPermaLink="false">https://medium.com/p/f805568bfb4a</guid>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[bem-css]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Aarushi Lal]]></dc:creator>
            <pubDate>Sun, 20 Dec 2020 10:30:58 GMT</pubDate>
            <atom:updated>2020-12-20T10:30:58.127Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u7JJ6DLO2WIDYGuW" /><figcaption>Photo by <a href="https://unsplash.com/@fbngsk?utm_source=medium&amp;utm_medium=referral">Fabian Gieske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>BEM</strong> stands for <strong>B</strong>lock <strong>E</strong>lement <strong>M</strong>odifier</p><p>Preprocessors are a great thing and they are providing us with a lot of benefits, and most importantly are a perfect match with <strong>BEM</strong> naming methodology.</p><p><strong>BEM</strong> is a specific concrete application of <strong>OOCSS(Object Oriented CSS).</strong></p><p>It speeds up the development process by arranging CSS classes into independent modules.</p><p><strong>Block: </strong>A block represents an object on your website. It represents the main structural chunks of your code. For eg: Header, Menu, Search Form, Card listing.</p><pre>// Blocks are named as standard CSS classes<br><strong>.block {}</strong></pre><p><strong>Element</strong>: An element is a component within the block that performs a particular function. For eg: Menu items inside a menu, Card description text, and image inside a card, or an input field inside a form.</p><pre>// Elements declared with 2 underscores, after block<br><strong>.block__element {}</strong></pre><p><strong>Modifier</strong>: A modifier is how we represent the variations of a block. For eg: An active menu item inside a menu, variation in size or fill color of a button.</p><pre>// Modifiers declared with 2 dashes, after block or after element<br><strong>.block--modifier {}</strong></pre><pre><strong>// </strong>element and modifier together<br><strong>.block__element--modifier {}</strong></pre><p>Consider the below sample card layout design to know how we can write <strong>SCSS</strong> and <strong>HTML</strong> structure using BEM methodology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*IxvjK-CSQ2IBjrfHFbyfQQ@2x.png" /></figure><p><strong>Block</strong>: The Card.</p><p><strong>Element:</strong> The top section(with the background image and icon), the description text and the buttons.</p><p><strong>Modifier</strong>: The variations are the font of the text and button styles.</p><p><strong>HTML Structure</strong></p><pre>&lt;section class=&quot;card-container&quot;&gt;<br> &lt;article class=&quot;<strong>card</strong>&quot;&gt;<br>    &lt;header class=&quot;card<strong>__header</strong>&quot;&gt;<br>      &lt;img src=&quot;&quot;  class=&quot;card<strong>__header--icon</strong>&quot; alt=&quot;Card Icon&quot; /&gt;<br>    &lt;/header&gt;<br>    &lt;div class=&quot;card<strong>__body</strong>&quot;&gt;<br>      &lt;h2 class=&quot;card__body<strong>--title</strong>&quot;&gt;<br>        ...<br>      &lt;/h2&gt;<br>      &lt;p class=&quot;card<strong>_</strong>_body<strong>--subtitle</strong>&quot;&gt;<br>        ...<br>      &lt;/p&gt;<br>   &lt;/div&gt;<br>   &lt;footer class=&quot;card<strong>__footer</strong>&quot;&gt;<br>      &lt;button class=&quot;card__footer--<strong>button-outline</strong>&quot;&gt;Learn    <br>      More&lt;/button&gt;<br>      &lt;button class=&quot;card__footer--<strong>button-primary</strong>&quot;&gt;Learn    <br>      More&lt;/button</pre><pre>   &lt;/footer&gt;<br> &lt;/article&gt;<br>&lt;/section&gt;</pre><p>Block Class: <strong>card</strong></p><p>Element Classes:<strong> </strong>card<strong>__header, </strong>card<strong>__body,</strong>card<strong>__footer</strong></p><p>Modifier Classes: card__header <strong>— icon</strong>, card__body<strong> — title, </strong>card<strong>_</strong>_body — <strong>subtitle, </strong>card__footer — <strong>button-outline, </strong>card__footer — <strong>button-primary</strong></p><p><strong>SCSS Structure</strong></p><pre>.card{<br>    &amp;__header{<br>      &amp;--icon{<br>      }<br>    }<br>    &amp;__body{<br>      &amp;--title{<br>      }<br>      &amp;--subtitle{<br>      }<br>    }</pre><pre>    &amp;__footer{<br>      &amp;--button-outline{<br>      }<br>      &amp;--button-primary{<br>      }<br>    }<br>}</pre><blockquote>The big question, what are the pros of using BEM?</blockquote><p>CSS code is easy to append or overwrite, which can turn into a mess. It is like keeping coins on top of one another and building a tall tower until it reaches a point where it scatters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WMoM-gLYZvcxtXDH" /><figcaption>Photo by <a href="https://unsplash.com/@angiejj?utm_source=medium&amp;utm_medium=referral">Angie J</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Choose because</strong>:</p><ul><li>Provides better communication between the technologies and the people using them. The team can easily analyze how the project design is made.</li><li>Rendering engines evaluate CSS Selectors from right to left, resulting in better rendering performance.</li></ul><blockquote>Hope you all start exploring and using this methodology in your projects.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f805568bfb4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interactive Smile using React + GSAP]]></title>
            <link>https://aarushilal.medium.com/interactive-smile-using-react-gsap-ed339f2ed3ce?source=rss-9e1c6f4c3397------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed339f2ed3ce</guid>
            <category><![CDATA[react-hook]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[gsap]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Aarushi Lal]]></dc:creator>
            <pubDate>Sun, 01 Nov 2020 19:05:03 GMT</pubDate>
            <atom:updated>2020-11-05T18:15:05.582Z</atom:updated>
            <content:encoded><![CDATA[<p>Integrating GSAP with your React application</p><h3>What you’ll be able to do</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Dglkudnr9Q4bwJWi7toXDQ.gif" /><figcaption>Demo</figcaption></figure><h3>Installing GSAP</h3><p>I like to install GSAP using <strong>npm</strong>. If you’d prefer to use yarn or another method, check out the <a href="https://greensock.com/docs/v3/Installation">various installation methods</a> in the GSAP docs.</p><pre>$ npm install gsap</pre><p>Next you’ll import GSAP at the head of the file, here we are going to use TweenMax and Power3.</p><pre>import { TweenMax, Power3 } from &#39;gsap&#39;</pre><p>Now your file is ready to call GSAP methods.</p><p><strong>You have to be familiar with how React Hooks work before you try out this tutorial.</strong> Next, import the react hooks.</p><pre>import React, { useRef, useEffect, useState } from &#39;react&#39;;</pre><pre>import { TweenMax, Power3 } from &quot;gsap&quot;;</pre><p>Create the component to be viewed in the return statement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*3Vgwr1HrhLVP2h_d8G0g8g.png" /></figure><p>Import the css for the component</p><pre>import &#39;./App.css&#39;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2WQqE-0SMQRWdiJwIj7xqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*XmQEGJk5IIQWDUm_Wmyk_A.png" /></figure><p>Now create a reference to each element that we have,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WB4VtWDiJmYDH1rzQvxpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*REgSyayAPN8GXLC264uuCQ.png" /></figure><p>Inside useEffect, we are going to define the initial transition of circles from left and opacity using TweenMax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ljj7vRIqTW00GAkUZXThoQ.png" /></figure><p>Now, add the click handler on a circle with a useState to expand and shrink on toggle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*cBPd3u_1XmJB2fTDsTYc8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Be8Br27ah6SHnTPX_MTL9w.png" /></figure><p>Define the GSAP Animations inside those functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tlG_ajm-f-I72TYDtnCmtA.png" /></figure><p>And run your react app,</p><p>Voila!!! You will get the desired output :)</p><p><strong>Github</strong> URL for the source code: <a href="https://github.com/aarushil/react-gsap">https://github.com/aarushil/react-gsap</a></p><h3>Happy Coding!!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed339f2ed3ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EmotionJS: Style effectively!!]]></title>
            <link>https://aarushilal.medium.com/emotionjs-style-effectively-e4ee2cc49e62?source=rss-9e1c6f4c3397------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4ee2cc49e62</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[emotionjs]]></category>
            <category><![CDATA[styled-components]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[libraries]]></category>
            <dc:creator><![CDATA[Aarushi Lal]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 17:20:11 GMT</pubDate>
            <atom:updated>2020-10-20T17:20:11.146Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is Emotion?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yZvr4CWpVoq076gD" /><figcaption>Photo by <a href="https://unsplash.com/@tengyart?utm_source=medium&amp;utm_medium=referral">Tengyart</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Well, I cant deny that the name of the library also caught my attention to look more into it. The above image demonstrates emotions in expressions!</p><p>Likewise <strong>EmotionJS</strong> use expressions to effectively build styles of UI components in an application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p236DRigU2r56RfNuPhzuQ.png" /><figcaption>Logo of EmotionJS library</figcaption></figure><p>A <strong>CSS-in-JS</strong> library designed for writing CSS styles with JavaScript.</p><ul><li><strong>It allows you to style apps quickly.</strong></li><li><strong>It accepts strings and objects.</strong></li><li><strong>Has support for auto vendor-prefixing, nested selectors, and media queries.</strong></li></ul><p><em>One of the very powerful </em><strong><em>patterns CSS-in-JS</em></strong><em> enables is state-based styling. Technically it is usually implemented as a JavaScript function which receives a state object and returns </em><strong><em>CSS</em></strong><em> properties. As a result, a </em><strong><em>CSS</em></strong><em> rule is generated that corresponds to the state of an element.</em></p><p>In this article you will learn how to style a component in React using the <strong>emotion</strong> CSS-in-<strong>JS</strong> library</p><h3>To install Emotion to your React Project</h3><p>Run this command in your node terminal.</p><p><em>npm i @emotion/styled @emotion/core</em></p><h3><strong>How to use emotion with React</strong></h3><p>Creating a button component with the <strong>styled.div</strong> style API for creating components from Emotion</p><figure><img alt="A basic code to create a button component in react code" src="https://cdn-images-1.medium.com/max/890/0*Zh0m-IeUlroE5NqS" /></figure><p><strong>Result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*AV5bpItYAZU6kRw7sA2cTQ.png" /><figcaption>Button rendered with the styles</figcaption></figure><h3>Changing based on props</h3><p>Any interpolations or arguments that are functions in styled are called with props, this allows you to change the styles of a component based on the props.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oBYr2MLR3GNRpz7M" /></figure><p><strong>To add a hover to button</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iO5wwrXfWyptuiIX" /></figure><p><strong>Result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*12lLxeF_Sw8p9pZ1gfbvlg.png" /><figcaption>Button on hover</figcaption></figure><p><strong>Using props to distinguish between buttons using different styles</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/0*Os4wZQaxxC_1ICFs" /></figure><p><strong>Result</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*cCVfhXQnbwRuO5H6UO0vmA.png" /><figcaption>Button style changed based on condition provided with props</figcaption></figure><p>When the prop attribute “primary” is used with the Button Component</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*vEerA0sxkT5bPhIH4ysfKA.png" /></figure><p>‘</p><p><strong>Result</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*AV5bpItYAZU6kRw7sA2cTQ.png" /><figcaption>Button style changed according to the state provided</figcaption></figure><blockquote>That’s how you can style with emotion in your React app!</blockquote><p>Hope you guys find this useful and start incorporating it in your projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4ee2cc49e62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How often do people say “I’m so inspired”.]]></title>
            <link>https://aarushilal.medium.com/how-often-do-people-say-im-so-inspired-8a6d98590aeb?source=rss-9e1c6f4c3397------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a6d98590aeb</guid>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[inventions]]></category>
            <category><![CDATA[human-centered-design]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[design-thinking]]></category>
            <dc:creator><![CDATA[Aarushi Lal]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 17:00:12 GMT</pubDate>
            <atom:updated>2020-09-28T05:02:39.102Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Quite A lot!! Isn’t it?</strong></p><p>The most is through some random quotes that we see, one such example is below:</p><figure><img alt="A clock communicating with a countdown timer, saying even you have to enjoy the now even if you are programmed otherwise." src="https://cdn-images-1.medium.com/max/564/1*qLgo0ylnz3n9-71v4Hlf3w.jpeg" /></figure><p><strong>Inspire</strong> comes from the Latin word that means to inflame or to blow in to.</p><p>A coal with high potential energy needs an extra push to get it all fired up, likewise to get inspired we need a feeling of enthusiasm that we can get from someone or something, which can turn us into a conceptualist who can create productive ideas.</p><p>I would like to share my insights here while I was taking a certification on <strong>HCD(Human Centred Design) </strong>from<strong> IDEO.org.</strong></p><p><strong>HCD </strong>follows various design research methods. One such method is <strong>analogous</strong> <strong>inspiration</strong> or <strong>analogous</strong> <strong>empathy, </strong>where the designers completely switch their contexts in order to get a fresh perspective<strong>.</strong></p><p>While doing research in order to build a product, we get many research results, however, analysing those results can sometimes be confusing and you get stuck, that’s when<strong> analogies</strong> turn out to be a powerful tool for developing insights that aren’t obvious in a direct approach. Analogous needﬁnding(<em>a process through which we can understand our user needs better</em>) spaces can bring up inspiration, a way to get unstuck, or a useful work-around when direct observation is unachievable.</p><p>Or in a simpler way if I can describe my mind in an analogy it would be:</p><blockquote><strong><em>“My mind is like my web browser. 19 tabs are open, 3 are frozen and I have no idea where the music is coming from.</em></strong><em>”</em></blockquote><figure><img alt="An owl smiling" src="https://cdn-images-1.medium.com/max/1024/1*0AHWqKLXyJeIZMSG0-8a3w.jpeg" /></figure><p>Analogies allow us to express our ideas or to explain complex matters in an understandable and motivating way. Seeking analogous inspiration makes us look outside our context and spark our own creativity. <strong>IDEO</strong> took this initiative to incorporate this as a part of their research method that could possibly give meaningful insights.</p><p>Here is a simple sketch of a flowchart to explain this research method in an easier way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C47-5gMKEVunSks70sX0AQ.jpeg" /></figure><p>Basically, this research method provides us with innovative insights and Eureka Moments by not being goal oriented and related to criteria alone !!</p><p>During my quest, I came across some examples of analogous inspiration, one that led to the discovery of velcro that we use today is one of the most amazing inventions by <strong>George de Mestral</strong>. He said he was “<strong>Inspired by nature</strong>”.</p><p>The story that led to the invention started when the Swiss engineer with his dog goes on a hiking trip through the woods. He found burrs clinging to his pants and also to his dog’s fur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/0*rm0BmFP39HO2ofjl" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*tVOXwnHUzJc5bLI5hkCDYw.jpeg" /><figcaption>On closer inspection, he found that the burr’s hooks would cling to anything loop-shaped. This accidental discovery led him to the invention of hook and loop fasteners.‘What makes burrs so difficult to remove?’ de Mestral wondered. When he returned home, de Mestral examined one under his microscope and ultimately invented a hook-and-loop fastener of his own. The principle was simple. The cocklebur is a maze of thin strands with burrs (or hooks) on the ends that cling to fabrics or animal fur. By the accident of the cockleburs sticking to his jacket, George de Mestral recognized the potential for a practical new fastener. Today his invention — <strong>Velcro</strong> — can be found on everything from clothing and lunch bags to space suits and spacecraft.</figcaption></figure><p>Another example of analogous inspiration is <strong>Henry Ford’s</strong> assembly line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*fyee1s50hVkbybRF" /><figcaption>It<strong> </strong>was inspired by observing systems within slaughterhouses and grain warehouses. The creation of the assembly line in December 1913 by Henry Ford at his Highland Park plant revolutionised the automobile industry and the concept of manufacturing worldwide. The assembly line significantly decreased the assembly time per vehicle and increased the profit margin. The impact was immediate and revolutionary. It allowed for a continuous workflow, worker specialisation, less waste and a higher quality of the end product.</figcaption></figure><p>However, the <strong>methodology</strong> adopted in both the scenarios were the same.</p><p>To explain more about the methodology lets go though the assignment topic that we had, it was “<strong>How to encourage young social entrepreneurs in implementing their ideas</strong>”,</p><p>The step by step approach for the research:</p><ul><li>Choose a target to achieve(Encourage Social Entrepreneurs) and take a paper and fold it into 3 columns.</li></ul><p><strong>First Column:</strong> Breakdown the target into a series of simple interactions.</p><p><strong>Second Column:</strong> Simplify each of the items listed above.</p><p><strong>Third Column:</strong> Turn these simplified things into a totally new thing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJfmAcw2FVxxdHbo5bcA1w.png" /></figure><ul><li>Choose the one thing from the above list that is the most exciting and related according to your gut feel.</li><li>Experience it.</li><li>If you have not got the eureka moment or revelation during the experience, come back and list down the leisure points and pain points or switch to another experience and repeat the same process.</li></ul><p>Next step was to create a mockup app with all the features that we could analyse from the overall research.</p><p>I know what’s on your mind, following this research method can be a little scary and risky, which means it is possible that you get zero meaningful insights from your analogous research experience, but as a matter of fact with most things in our life, with high risks comes the potential for high rewards.</p><blockquote><strong>SWITCH CONTEXTS,</strong></blockquote><blockquote><strong>SWITCH HEADSPACE</strong></blockquote><blockquote><strong>AND</strong></blockquote><blockquote><strong>GET THAT EUREKA MOMENT!!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a6d98590aeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>