<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mounir Dekali</title>
    <description>The latest articles on DEV Community by Mounir Dekali (@starman1999).</description>
    <link>https://dev.to/starman1999</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F896072%2Fdfd160af-9d0f-4997-8530-5e31773d8ce5.jpeg</url>
      <title>DEV Community: Mounir Dekali</title>
      <link>https://dev.to/starman1999</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/starman1999"/>
    <language>en</language>
    <item>
      <title>why figma units look bigger in react app ?</title>
      <dc:creator>Mounir Dekali</dc:creator>
      <pubDate>Fri, 28 Jul 2023 11:15:15 +0000</pubDate>
      <link>https://dev.to/starman1999/why-figma-units-look-bigger-in-react-app--215d</link>
      <guid>https://dev.to/starman1999/why-figma-units-look-bigger-in-react-app--215d</guid>
      <description>&lt;p&gt;I have a Figma designed by someone, but when i developed the navbar with the same units, the navbar elements looked odd and bigger than how they look in the design presentation.&lt;br&gt;
note that the desktop frame size in Figma is set to 1720px and the navbar links font is set to 24px ( Cairo font ): &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JPip5cZr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dbyjkadly0oiqdr4ruf4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JPip5cZr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dbyjkadly0oiqdr4ruf4.png" alt="Image description" width="228" height="143"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;while my screen size is 1366px&lt;br&gt;
I dont't want to change the pixels myself visually, I just want to do this professionally and find a way to adabt the figma frame units so they look just good. how to proceed with this please?&lt;/p&gt;

&lt;p&gt;SCREENSHOT OF MY SCREEN (navbar)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--foHfWcqa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6xis0cn4uudunla9bxv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--foHfWcqa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6xis0cn4uudunla9bxv.png" alt="Image description" width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SCREENSHOT OF THE DESIGN &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--G8laoV6w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/07jy3yvqdd9tynf32l7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--G8laoV6w--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/07jy3yvqdd9tynf32l7o.png" alt="Image description" width="800" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>figma</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>is there a good youtube channel about : Figma to React walkthrough?</title>
      <dc:creator>Mounir Dekali</dc:creator>
      <pubDate>Tue, 25 Jul 2023 16:45:25 +0000</pubDate>
      <link>https://dev.to/starman1999/is-there-a-good-youtube-channel-about-figma-to-react-walkthrough-4j58</link>
      <guid>https://dev.to/starman1999/is-there-a-good-youtube-channel-about-figma-to-react-walkthrough-4j58</guid>
      <description>&lt;p&gt;I would like to see the process of React devleopers to take the Figma web design to life from scratch please, i'm not talking about any css genrators or any of this, but just the process of react devs to analyze the website .&lt;/p&gt;

</description>
      <category>l</category>
      <category>react</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>why my image makes the website's width scrollable?</title>
      <dc:creator>Mounir Dekali</dc:creator>
      <pubDate>Fri, 09 Sep 2022 14:29:26 +0000</pubDate>
      <link>https://dev.to/starman1999/why-my-image-makes-the-websites-width-scrollable-4fj6</link>
      <guid>https://dev.to/starman1999/why-my-image-makes-the-websites-width-scrollable-4fj6</guid>
      <description>&lt;p&gt;As you can see in the image, I have a simple design element as an image, but I only want to show half of it in the edge,but moving it to the right makes the website scrollable on small devices which is weird. how can I simply cut the image if it overflows the devices's width please? &lt;br&gt;
thanks a bunch.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--n-_mayib--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uy6dht6j9iury2ryu912.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--n-_mayib--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uy6dht6j9iury2ryu912.png" alt="Image description" width="550" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>css</category>
      <category>html</category>
      <category>website</category>
    </item>
    <item>
      <title>I'm not sure how this CSS Class code works!</title>
      <dc:creator>Mounir Dekali</dc:creator>
      <pubDate>Fri, 22 Jul 2022 09:17:00 +0000</pubDate>
      <link>https://dev.to/starman1999/im-not-sure-how-this-css-class-code-works-2lob</link>
      <guid>https://dev.to/starman1999/im-not-sure-how-this-css-class-code-works-2lob</guid>
      <description>&lt;p&gt;I'm new to Web Development, and i've made a good progress so far.&lt;br&gt;
I've encountered this in a recent CSS tutorial while building my Portfolio:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
    width: var(--container-width-lg);&lt;br&gt;
    margin: 0 auto;&lt;br&gt;
 }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container.contact__container {&lt;br&gt;
    width: 50%;&lt;br&gt;
    display: grid;&lt;br&gt;
    grid-template-columns: 50% 50%;&lt;br&gt;
    gap: 12rem;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I have the .container Class in the main index.css file, which has &lt;strong&gt;width&lt;/strong&gt; and &lt;strong&gt;margin&lt;/strong&gt; as properties that's it. But in my Contact component, in contact.jsx I have one div element with the classes &lt;strong&gt;contact__container&lt;/strong&gt; and &lt;strong&gt;container&lt;/strong&gt;, and it's only div that has the &lt;strong&gt;contact__container&lt;/strong&gt;! :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div className="container contact__container"&amp;gt;
        &amp;lt;div className="contact__options"&amp;gt; 
         {stuff here}
        &amp;lt;/div&amp;gt;

        &amp;lt;form&amp;gt;
          {Stuff here}
        &amp;lt;/form&amp;gt;

&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My question is why we need to be specefic and write both the container class and the contact__container class ? In the video he said he needs to be specefic to be able to change the width, but what does that mean please? why I can't just do:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.contact__container {&lt;br&gt;
    width: 50%;&lt;br&gt;
    display: grid;&lt;br&gt;
    grid-template-columns: 50% 50%;&lt;br&gt;
    gap: 12rem;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Thanks a bunch&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
      <category>html</category>
      <category>react</category>
    </item>
  </channel>
</rss>
