<?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: Julia Kharlamova</title>
    <description>The latest articles on DEV Community by Julia Kharlamova (@juliettkhar).</description>
    <link>https://dev.to/juliettkhar</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%2F924329%2F70239193-9de4-481e-a775-124067391327.jpeg</url>
      <title>DEV Community: Julia Kharlamova</title>
      <link>https://dev.to/juliettkhar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/juliettkhar"/>
    <language>en</language>
    <item>
      <title>How to style form without changing the HTML markup.</title>
      <dc:creator>Julia Kharlamova</dc:creator>
      <pubDate>Fri, 22 Mar 2024 05:51:10 +0000</pubDate>
      <link>https://dev.to/juliettkhar/how-to-style-form-without-changing-the-html-markup-4j9n</link>
      <guid>https://dev.to/juliettkhar/how-to-style-form-without-changing-the-html-markup-4j9n</guid>
      <description>&lt;p&gt;This is a submission for DEV Challenge v24.03.20, Glam Up My Markup: Camp Activities_&lt;/p&gt;

&lt;p&gt;The main point of this challenge is not to change the HTML markup. So, I was started form the first point of my every day developers mindset. First of all I see the markup - there is nothing special. I decided to use codepen - it's very simple to use and give me many options to improve the initial markup.&lt;br&gt;
After logged in, I set up the pen's settings. Choose the preprocessor and normalize scss.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw4oulotvtf60cpghh2ad.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw4oulotvtf60cpghh2ad.png" alt="pen settings" width="800" height="540"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;After that I set up font and base styles in body (useful for case you don't want to reset styles on every element).&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvqf4tqe34k305g5e27op.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvqf4tqe34k305g5e27op.png" alt="set up font and base styles" width="786" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Because I was not allowed to change the HTML, I decided to write styles by selectors. For form's container I choose the flex positioning. Very easy and useful. And for the form I choose the grid positioning. In purpose not to duplicate styles for form's fields and button I write initial styles in one place and use the inheritance.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frcx4zunsgdmarz3ba1kn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frcx4zunsgdmarz3ba1kn.png" alt="write initial styles" width="652" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that add some styles for hover and small animation.&lt;br&gt;
Also I made a small js part for improve interactivity. There is no need to complex approaches. I coose the way to find parent element on document, and then search all his children (if needed) on parent, not on document.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg71az7jreswxypdysf9m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg71az7jreswxypdysf9m.png" alt="small js part for improve interactivity" width="753" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffmg38e7mczqithpl5wja.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffmg38e7mczqithpl5wja.png" alt="final step" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://codepen.io/juliettkhar/pen/oNOZymY?editors=0011"&gt;CodePen demo&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;This way helps me to create nice and adaptive form with minimum lines of code. And keeps it readable.&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>The essence of { Fetch API JS } in 256 characters.</title>
      <dc:creator>Julia Kharlamova</dc:creator>
      <pubDate>Thu, 21 Mar 2024 08:53:42 +0000</pubDate>
      <link>https://dev.to/juliettkhar/the-essence-of-fetch-api-js-in-256-characters-3ffm</link>
      <guid>https://dev.to/juliettkhar/the-essence-of-fetch-api-js-in-256-characters-3ffm</guid>
      <description>&lt;p&gt;Fetch API in JS is a tool for data exchange with servers. It handles HTTP requests and responses, using promises for asynchronous operations. Simple yet powerful, it suits any application requiring server communication.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fybu87y9xxv6odlpm7d6j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fybu87y9xxv6odlpm7d6j.png" alt="Right fetch usage" width="686" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
