<?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: Michał Górnicki</title>
    <description>The latest articles on DEV Community by Michał Górnicki (@michalgornicki).</description>
    <link>https://dev.to/michalgornicki</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%2F790361%2Faa9220d3-e775-48c4-9042-a10eb536c85f.jpg</url>
      <title>DEV Community: Michał Górnicki</title>
      <link>https://dev.to/michalgornicki</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michalgornicki"/>
    <language>en</language>
    <item>
      <title>Interesting technical interview</title>
      <dc:creator>Michał Górnicki</dc:creator>
      <pubDate>Mon, 07 Feb 2022 09:18:03 +0000</pubDate>
      <link>https://dev.to/michalgornicki/interesting-technical-interview-56hc</link>
      <guid>https://dev.to/michalgornicki/interesting-technical-interview-56hc</guid>
      <description>&lt;p&gt;I had very good and enlightening technical interview with IT company from Cracov last thursday. I learned that I must expand my knowledge about advanced React concepts. Now I'm working on creating React tutorial website. It will be live later this week. Cheers!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NAA8gU6q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zdu8xv5gw3gmj2mfbucc.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NAA8gU6q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zdu8xv5gw3gmj2mfbucc.gif" alt="Image description" width="250" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>My new project is almost done!</title>
      <dc:creator>Michał Górnicki</dc:creator>
      <pubDate>Wed, 19 Jan 2022 13:50:38 +0000</pubDate>
      <link>https://dev.to/michalgornicki/my-new-project-is-almost-done-39a7</link>
      <guid>https://dev.to/michalgornicki/my-new-project-is-almost-done-39a7</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;My cat adoption website project is almost done.&lt;br&gt;
You can see it here: &lt;a href="https://michalgornicki.github.io/cats"&gt;https://michalgornicki.github.io/cats&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can search for your companion, browse database with filter options, browse cat profiles and get contact number to current cat owner. You can also sign up to your account. Some informations are available only for logged users. &lt;/p&gt;

&lt;p&gt;Functionalities in development:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Adding cats to favourites visible in subpage.&lt;/li&gt;
&lt;li&gt;Creating new cat cards for users.&lt;/li&gt;
&lt;li&gt;Replace local JSON with online database (probably in MongoDB).&lt;/li&gt;
&lt;li&gt;Adjusting page for mobile users.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Most simplistic tutorial to React Router - create routing in 2 minutes</title>
      <dc:creator>Michał Górnicki</dc:creator>
      <pubDate>Thu, 13 Jan 2022 10:20:13 +0000</pubDate>
      <link>https://dev.to/michalgornicki/most-simplistic-tutorial-to-react-router-create-routing-in-2-minutes-4a6e</link>
      <guid>https://dev.to/michalgornicki/most-simplistic-tutorial-to-react-router-create-routing-in-2-minutes-4a6e</guid>
      <description>&lt;p&gt;Hi!&lt;br&gt;
I wanted to create very fast guide to React Router because first time I routing it was big struggle.&lt;/p&gt;

&lt;p&gt;So, let's begin.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;After creating app by command npx create-react-app "your-app-name" install React Router with command  &lt;code&gt;npm install react-router-dom@6&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;In main file mostly called App.jsx import React Router components by adding in the beginning &lt;code&gt;import { Route, HashRouter as Router, Routes } from "react-router-dom";&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Again in App.jsx create structure like this:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;Router&amp;gt;
      &amp;lt;div&amp;gt;
        &amp;lt;Navbar /&amp;gt;
        &amp;lt;Routes&amp;gt;
          &amp;lt;Route path="/" element={&amp;lt;Home /&amp;gt;} /&amp;gt;
          &amp;lt;Route path="/SubPageOne" element={&amp;lt;SubPageOne/&amp;gt;} /&amp;gt;
          &amp;lt;Route path="/SubPageTwo" element={&amp;lt;SubPageTwo/&amp;gt;} /&amp;gt;
        &amp;lt;/Routes&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/Router&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;As you can see there are few react components (Navbar, Home, SubPageOne, SubPageTwo). I've created Navbar component outside of Routes container so it can be available on every subpage.&lt;/li&gt;
&lt;li&gt;In Navbar component where we want to have navigation to every subpage create links to them:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;Link to="/"&amp;gt;strona główna&amp;lt;/Link&amp;gt;
&amp;lt;Link to="/Database"&amp;gt;baza danych&amp;lt;/Link&amp;gt;
&amp;lt;Link to="/Create"&amp;gt;stwórz nowe ogłoszenie&amp;lt;/Link&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that's everything. Your React Router is done and fully working!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>New project - cat adoption website!</title>
      <dc:creator>Michał Górnicki</dc:creator>
      <pubDate>Wed, 12 Jan 2022 16:39:23 +0000</pubDate>
      <link>https://dev.to/michalgornicki/new-project-cat-adoption-website-1m4i</link>
      <guid>https://dev.to/michalgornicki/new-project-cat-adoption-website-1m4i</guid>
      <description>&lt;p&gt;Hello everyone,&lt;/p&gt;

&lt;p&gt;I'm very excited to start building my next project, cat adoption portal. There will be options to search database of cats ready to find new home, create your account and follow informations about cat adoptions or publish your notice about cat looking for new owner.&lt;/p&gt;

&lt;p&gt;For now I'm creating design of this project in Figma.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ibYUR7x0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrsardw3ja5f99r0jrj6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ibYUR7x0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrsardw3ja5f99r0jrj6.png" alt="Image description" width="880" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Hello Twitter!</title>
      <dc:creator>Michał Górnicki</dc:creator>
      <pubDate>Tue, 11 Jan 2022 19:04:18 +0000</pubDate>
      <link>https://dev.to/michalgornicki/hello-twitter-20lg</link>
      <guid>https://dev.to/michalgornicki/hello-twitter-20lg</guid>
      <description>&lt;p&gt;Do you have Twitter account? If so please let me know. &lt;br&gt;
Follow me on: &lt;a href="https://twitter.com/Michal_FrontEnd"&gt;https://twitter.com/Michal_FrontEnd&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KLna4Rv2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qdebbkkzz2907ei3n3ge.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KLna4Rv2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qdebbkkzz2907ei3n3ge.gif" alt="Image description" width="500" height="278"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>twitter</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Working on Figma</title>
      <dc:creator>Michał Górnicki</dc:creator>
      <pubDate>Tue, 11 Jan 2022 15:09:18 +0000</pubDate>
      <link>https://dev.to/michalgornicki/working-on-figma-3m3f</link>
      <guid>https://dev.to/michalgornicki/working-on-figma-3m3f</guid>
      <description>&lt;p&gt;Today I was working on Figma, to discover its capabilities.&lt;br&gt;
It is really great software, inspiring to create design of websites for example. I have created today my new resume in Figma, you can check it &lt;a href="https://drive.google.com/file/d/1I1lG3QZc-MVfu6g4f0wOXtLK5QfMHnOz/view?usp=sharing"&gt;here&lt;/a&gt;.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Objects animation when visible in window viewport</title>
      <dc:creator>Michał Górnicki</dc:creator>
      <pubDate>Tue, 11 Jan 2022 14:24:18 +0000</pubDate>
      <link>https://dev.to/michalgornicki/objects-animation-when-visible-in-window-viewport-p8p</link>
      <guid>https://dev.to/michalgornicki/objects-animation-when-visible-in-window-viewport-p8p</guid>
      <description>&lt;p&gt;I used to hard-code proper height for javascript function to animate object with property &lt;code&gt;window.pageYOffset&lt;/code&gt;. It mostly worked well but sometimes created problems, for example with viewing page on mobile phones.&lt;br&gt;
Better way to solve this problem is to use &lt;code&gt;getBoundingClientRect()&lt;/code&gt; - this method returns the size of an element and its position relative to the viewport. So if you write &lt;code&gt;getBoundingClientRect().top&lt;/code&gt; you will get distance in pixels from bottom of viewport to top of selected object.&lt;/p&gt;

&lt;p&gt;Example of use of this method:&lt;br&gt;
 &lt;code&gt;if (document.getElementById("container").getBoundingClientRect().top &amp;lt; 0) {&lt;br&gt;
document.getElementById("container").style.backgroundColor="black"}&lt;br&gt;
else {document.getElementById("container").style.backgroundColor="white"}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In this case if top of "container" will touch beginning of our viewport background color of this object will turn to black.&lt;br&gt;
Feel free to use my code.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Hello there!</title>
      <dc:creator>Michał Górnicki</dc:creator>
      <pubDate>Tue, 11 Jan 2022 14:11:19 +0000</pubDate>
      <link>https://dev.to/michalgornicki/hello-there-5f60</link>
      <guid>https://dev.to/michalgornicki/hello-there-5f60</guid>
      <description>&lt;p&gt;I would like to say hello to you. &lt;/p&gt;

&lt;p&gt;I'm a developer from Warsaw in Poland and I will write here about my journey with front end developing. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
      <category>css</category>
    </item>
  </channel>
</rss>
