<?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: Maru</title>
    <description>The latest articles on DEV Community by Maru (@marulucenat).</description>
    <link>https://dev.to/marulucenat</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%2F589700%2F839dd13f-ef7d-4b52-a838-6aea7f544c73.jpg</url>
      <title>DEV Community: Maru</title>
      <link>https://dev.to/marulucenat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marulucenat"/>
    <language>en</language>
    <item>
      <title>Trying the mobile-first approach (as a newbie)</title>
      <dc:creator>Maru</dc:creator>
      <pubDate>Mon, 29 Mar 2021 18:39:44 +0000</pubDate>
      <link>https://dev.to/marulucenat/trying-the-mobile-first-approach-as-a-newbie-1c4</link>
      <guid>https://dev.to/marulucenat/trying-the-mobile-first-approach-as-a-newbie-1c4</guid>
      <description>&lt;p&gt;Hello everyone!&lt;/p&gt;

&lt;p&gt;One of the things I've struggled a lot while building websites is to make the mobile version to look good, to me this was very important because I know nowadays most users access sites through their phones.&lt;/p&gt;

&lt;p&gt;When I started to make some research about responsiveness the first advice that appeared was 'to follow the mobile-first approach' and this made perfect sense, however, I did have to review a couple of things before trying it myself. So, I want to share my experience in case it helps other people!&lt;/p&gt;

&lt;p&gt;If you're like me and want to try this approach for the first time, I suggest you to pick a Frontend Mentor challenge and start from there. I chose the "Fylo Dark Theme Landing Page" for this.&lt;/p&gt;




&lt;h3&gt;
  
  
  What is the mobile first approach?
&lt;/h3&gt;

&lt;p&gt;This was my first question and here's the best answer I found: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Mobile-first is when we start by writing our CSS for mobile devices and then use media queries to add in styling for larger screen sizes." &lt;a href="https://www.freecodecamp.org/news/taking-the-right-approach-to-responsive-web-design/" rel="noopener noreferrer"&gt;Source&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h3&gt;
  
  
  My experience
&lt;/h3&gt;

&lt;p&gt;Like I mentioned, I chose a Frontend Mentor challenge for this. At first, it was very strange to focus on the mobile design because I had only done it the other way around (desktop-first) but you do get used to it.&lt;/p&gt;

&lt;p&gt;As I started writing the code I had to keep in mind that basically, the default styles would be smaller and then I would have to write media queries to make everything bigger. Also, the default styles would be one column (due to the design I picked).&lt;/p&gt;

&lt;p&gt;What made the most sense to me is that mobile designs are usually simpler and it's easier to start from there. Also, that if you start with the desktop design you'll find yourself writing media queries to override the complex styles.&lt;/p&gt;




&lt;h4&gt;
  
  
  My solution to the challenge:
&lt;/h4&gt;

&lt;p&gt;Mobile: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk0mdw5exqd1ytpv3udzd.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk0mdw5exqd1ytpv3udzd.PNG" alt="Mobile Version"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Desktop:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb3zw8aebskdg9uyfwl3o.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb3zw8aebskdg9uyfwl3o.PNG" alt="Desktop Version"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://marugy99.github.io/fylo-theme/" rel="noopener noreferrer"&gt;Live site&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.frontendmentor.io/challenges/fylo-dark-theme-landing-page-5ca5f2d21e82137ec91a50fd" rel="noopener noreferrer"&gt;Original challenge description&lt;/a&gt; &lt;/p&gt;




&lt;h3&gt;
  
  
  What I learned
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;During this process I learned that you can click this button in the browser Developer Tools to emulate a phone with different sizes. It's super useful!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3p80okcfg8qi0k3jjl8w.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3p80okcfg8qi0k3jjl8w.PNG" alt="Browser Tool"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When following this approach you have to use &lt;code&gt;min-width&lt;/code&gt; for the media queries and this is honestly the explanation that finally made me understand how it works:&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Min-width&lt;/strong&gt; is the minimum width at which a style will START to be applied. (Have to be ordered from smallest to largest to work properly, regular styles first). With min-width, styles START and continue forever as long as min-width is met, and no max-width is specified.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Max-width&lt;/strong&gt; is the maximum width at which a style will continue to be applied. After that, the style will STOP being applied. (Have to be ordered from largest to smallest to work properly, regular styles first). Styles STOP as soon as width greater than max-width is hit.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Thank you Stack Overflow&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;There are so many other ways to create a responsive layout without using media queries! For example, this to create responsive grids: &lt;code&gt;grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I can definitely see why this is the recommended approach for most cases but I know it really depends on your case. For now, I try to think first "What would make me write less code and not repeat myself?"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It was an amazing feeling to see that the website looks good on mobile! It's not perfect at all and I still have to work on other things, but overall I'm very happy with the result and I enjoyed the experience. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If you check out the live site please let me know if you have any feedback, I would appreciate it a lot 😊&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>webdev</category>
      <category>css</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Working On My First Projects (would love some feedback)</title>
      <dc:creator>Maru</dc:creator>
      <pubDate>Thu, 04 Mar 2021 20:24:13 +0000</pubDate>
      <link>https://dev.to/marulucenat/working-on-my-first-projects-would-love-some-feedback-2dib</link>
      <guid>https://dev.to/marulucenat/working-on-my-first-projects-would-love-some-feedback-2dib</guid>
      <description>&lt;p&gt;Hello! Recently I completed the Responsive Web Design Certification on freeCodeCamp and on this post I want to show you the projects I built, as well as some of my thoughts and things I learned in the process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Alert:&lt;/strong&gt; Please bear with me, I'm sorry if at one point I don't use the proper terminology.&lt;/p&gt;

&lt;h3&gt;
  
  
  #1 Project: Tribute Page
&lt;/h3&gt;

&lt;p&gt;For this one I chose Grace Hopper.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcp7e3uimargy6styoe8p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcp7e3uimargy6styoe8p.png" alt="Tribute Page by Maru"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://codepen.io/marugy99/full/abmrXxB" rel="noopener noreferrer"&gt;CodePen link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thoughts:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I had a very vague idea of the design I wanted, so I had to play around with the fonts and colors for a while until I was happy with the result.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To accomplish the dark background I wanted for the "Early life" section I learned that I could add &lt;code&gt;margin: 0&lt;/code&gt; to the &lt;code&gt;body&lt;/code&gt;, so the background color could cover the whole section.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Initially I had added &lt;code&gt;width: 100vw&lt;/code&gt; to the Early Life section, thinking it would help me have the (full width) dark background I wanted, but instead, this added a horizontal scrollbar, which was so annoying! Of course this took me a hot minute to identify and several hours reading forums. Solution: just removing the &lt;code&gt;width&lt;/code&gt; property, it wasn't necessary.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  #2 Project: Survey Form
&lt;/h3&gt;

&lt;p&gt;The topic I chose was "Work Burnout"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhu86bhnwacbiw6b8hgd2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhu86bhnwacbiw6b8hgd2.png" alt="Survey Form by Maru"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://codepen.io/marugy99/full/poNvJVr" rel="noopener noreferrer"&gt;CodePen link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Toughts:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I think the most challenging part this time was to style the form controls. This was a whole new world for me.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I learned about &lt;code&gt;box-sizing&lt;/code&gt; and its importance when styling block elements.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I learned that for vertical alignment (&lt;code&gt;align-items&lt;/code&gt;) the parent container should have a defined &lt;code&gt;height&lt;/code&gt; property and in order for the margin-auto technique to work it needs a defined &lt;code&gt;width&lt;/code&gt; property, but it can't be 100% (duh).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  #3 Project: Product Landing Page
&lt;/h3&gt;

&lt;p&gt;For this one I did take the time to pick the colors and even design a very simple logo, this saved me A LOT of time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2nwbpbeay7knhurb0xrk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2nwbpbeay7knhurb0xrk.png" alt="Product Landing Page by Maru"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://codepen.io/marugy99/full/rNWeqPx" rel="noopener noreferrer"&gt;CodePen link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thoughts:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I learned that less is more. Sometimes I come up with some very complicated (and unnecessary) ways to display the layout I want, and then it turns out that with just a few lines of code I can still get the desired result.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I learned how to add CSS icons, specifically Font Awesome's icons.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I learned about grouping selectors and its importance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The one issue I was not able to figure out was how to make the &lt;code&gt;iframe&lt;/code&gt; responsive, but overall, I feel very happy with the final result.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  #4 Project: Technical Documentation Page
&lt;/h3&gt;

&lt;p&gt;I had a lot of fun with this one. The topic I chose was CSS Flexbox.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffyvba63zjmp4s218v4df.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffyvba63zjmp4s218v4df.png" alt="Documentation Page by Maru"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fctffbzgi2s0om4vyhxi4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fctffbzgi2s0om4vyhxi4.png" alt="Documentation Page by Maru"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://codepen.io/marugy99/full/zYoZYXG" rel="noopener noreferrer"&gt;CodePen link&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The first challenge I had was to create the stationary sidebar, I didn't want to use &lt;code&gt;position: fixed&lt;/code&gt; so I learned more about &lt;code&gt;position: sticky&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I also learned about overflow and how using the &lt;code&gt;auto&lt;/code&gt; property helped me accomplish the layout I wanted.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I tried to use &lt;code&gt;position: absolute&lt;/code&gt; to place the "Made by Maru" at the bottom of the sidebar, which worked at first. However, since this removes the element from the regular flow, it was overlapping with the menu when I resized the window vertically so I decided to leave it on its original position.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  #5 Project: Personal Portfolio
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd794bm6tlkas3og3fwrz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd794bm6tlkas3og3fwrz.png" alt="Personal Portfolio by Maru"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://codepen.io/marugy99/full/OJbQaqa" rel="noopener noreferrer"&gt;CodePen link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thoughts:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;This one is actually the second version of the original project I submitted for freeCodeCamp.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For the progress bars I used some CSS I found online, it's not the best way to do it but for now it gets the job done.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I struggled a lot with media queries on this project, I wanted the mobile version to look good but I think I still have to do some research about this.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Overall, despite the things that I want to improve, I really liked it!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the process of working with these projects I discovered Figma and I've been using it ever since.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you made it this far, thank you so much for reading! I would love to receive some feedback too 🤓&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>webdev</category>
      <category>portfolio</category>
    </item>
    <item>
      <title>Beginner looking for a community</title>
      <dc:creator>Maru</dc:creator>
      <pubDate>Wed, 03 Mar 2021 13:49:28 +0000</pubDate>
      <link>https://dev.to/marulucenat/beginner-looking-for-a-community-4c39</link>
      <guid>https://dev.to/marulucenat/beginner-looking-for-a-community-4c39</guid>
      <description>&lt;p&gt;Hi! I've been learning web programming on my own for almost a year. It has been a very interesting journey, filled with ups and downs, especially because I didn't know where to start and wandered around for a long time.&lt;/p&gt;

&lt;p&gt;Now, I finally feel like I'm on the right track and this makes me very happy, however, I do feel a bit lonely. I really want to be part of a community where I can share my thoughts and insecurities about being a self-learner. And most importantly, interact with others that are going through the same.&lt;/p&gt;

&lt;p&gt;Recently I completed the Responsive Web Design Certification on freeCodeCamp and I'm currently on the JavaScript one.&lt;/p&gt;

&lt;p&gt;I hope I can meet some new people here :)&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>firstpost</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
