<?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: Giorgos Sarigiannidis</title>
    <description>The latest articles on DEV Community by Giorgos Sarigiannidis (@gsarig).</description>
    <link>https://dev.to/gsarig</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%2F404417%2Fa6f8f517-7e50-4bac-b7e1-c030afbbaa8f.jpeg</url>
      <title>DEV Community: Giorgos Sarigiannidis</title>
      <link>https://dev.to/gsarig</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gsarig"/>
    <language>en</language>
    <item>
      <title>Screen Ratio Comparison</title>
      <dc:creator>Giorgos Sarigiannidis</dc:creator>
      <pubDate>Fri, 24 Dec 2021 15:48:10 +0000</pubDate>
      <link>https://dev.to/gsarig/screen-ratio-comparison-2151</link>
      <guid>https://dev.to/gsarig/screen-ratio-comparison-2151</guid>
      <description>&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/gsarig/embed/rNGYOYd?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
    </item>
    <item>
      <title>Subtle cross when hovering on a grid's item corners (no JS)</title>
      <dc:creator>Giorgos Sarigiannidis</dc:creator>
      <pubDate>Mon, 28 Dec 2020 10:06:43 +0000</pubDate>
      <link>https://dev.to/gsarig/subtle-cross-when-hovering-on-a-grid-s-item-corners-no-js-5bkb</link>
      <guid>https://dev.to/gsarig/subtle-cross-when-hovering-on-a-grid-s-item-corners-no-js-5bkb</guid>
      <description>&lt;p&gt;Inspired from a Windows 10 Fluent Design effect on the Calculator App, where hovering over an item shows a subtle cross at the corner closest to the cursor. &lt;/p&gt;
&lt;p&gt;(&lt;a href="https://www.gsarigiannidis.gr/windows-fluent-design-css-cross-hover-corner/"&gt;Read the details&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/gsarig/embed/gOwXpRa?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>css</category>
    </item>
    <item>
      <title>Tabs on desktop, accordion on mobile (vanilla JS)</title>
      <dc:creator>Giorgos Sarigiannidis</dc:creator>
      <pubDate>Thu, 01 Oct 2020 10:50:55 +0000</pubDate>
      <link>https://dev.to/gsarig/tabs-on-desktop-accordion-on-mobile-vanilla-js-3o0p</link>
      <guid>https://dev.to/gsarig/tabs-on-desktop-accordion-on-mobile-vanilla-js-3o0p</guid>
      <description>&lt;p&gt;A tabbed component that turns into an accordion when tabs run out of space, using CSS and vanilla JavaScript. If you are on desktop, try to resize the screen and watch the tabs transforming to an accordion when they run out of space. 
&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/gsarig/embed/ExKJEoM?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>css</category>
      <category>javascript</category>
      <category>ux</category>
    </item>
    <item>
      <title>Maintain ratio on elements with unknown heights and contents</title>
      <dc:creator>Giorgos Sarigiannidis</dc:creator>
      <pubDate>Sun, 27 Sep 2020 21:05:08 +0000</pubDate>
      <link>https://dev.to/gsarig/maintain-ratio-on-elements-with-unknown-heights-and-contents-2o27</link>
      <guid>https://dev.to/gsarig/maintain-ratio-on-elements-with-unknown-heights-and-contents-2o27</guid>
      <description>&lt;p&gt;Maintain the aspect ratio on HTML elements with unknown heights and contents using SCSS &lt;a href="https://codepen.io/mixins"&gt;@mixins&lt;/a&gt; and CSS Custom Properties.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/gsarig/embed/xxVzzmY?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>css</category>
      <category>html</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Building an OpenStreetMap Gutenberg block for WordPress and rethinking the UX of adding locations</title>
      <dc:creator>Giorgos Sarigiannidis</dc:creator>
      <pubDate>Wed, 16 Sep 2020 08:15:25 +0000</pubDate>
      <link>https://dev.to/gsarig/building-an-openstreetmap-gutenberg-block-for-wordpress-and-rethinking-the-ux-of-adding-locations-4h68</link>
      <guid>https://dev.to/gsarig/building-an-openstreetmap-gutenberg-block-for-wordpress-and-rethinking-the-ux-of-adding-locations-4h68</guid>
      <description>&lt;p&gt;Google Maps is great and the free quota is more than enough, but having to ask your clients to register, and provide a valid credit card to use the API, can cause some inconvenience and even cost you a few extra hours of work just to provide support, making sure that the setup is successful.&lt;/p&gt;

&lt;p&gt;So, I thought I'd build a map block for Gutenberg that uses &lt;a href="https://www.openstreetmap.org/"&gt;OpenStreetMap&lt;/a&gt; and &lt;a href="https://leafletjs.com"&gt;Leaflet.js&lt;/a&gt;. It needs no API keys and works out of the box (or, out of the Block, if you prefer). Benefiting from Gutenberg's potential, the plugin tries a different take on how to add your locations on the map and rethinks a few things, UX-wise.&lt;/p&gt;

&lt;p&gt;Instead of manually adding coordinates for each marker, just click-and-drop them directly on the map, and drag to adjust their position. Instead of filling-in custom fields to set each marker's popup content, just open that popup and start writing in it, the Gutenberg way (it supports WYSIWYG editing, with links, images, and all). It can also store the map's zoom level as you use it so that you don't have to set it by hand.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/FGe7zJnrIgo"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;No need for API keys. Just install and use it.&lt;/li&gt;
&lt;li&gt;Support for multiple markers.&lt;/li&gt;
&lt;li&gt;Dead-simple interface. Don't search for coordinates and don't get overwhelmed by too many fields when using multiple markers. Just point and click on the map to add your marker where you want it and edit it's popup content directly from there.&lt;/li&gt;
&lt;li&gt;Remembers the zoom that you set when adding the markers and stores it so that you don't set it by hand (which you can do anyway if you prefer).&lt;/li&gt;
&lt;li&gt;Adjust the map height.&lt;/li&gt;
&lt;li&gt;Change the default marker icon with a custom one.&lt;/li&gt;
&lt;li&gt;Enable or disable map dragging.&lt;/li&gt;
&lt;li&gt;Enable or disable touch zoom.&lt;/li&gt;
&lt;li&gt;Enable or disable double-click zoom.&lt;/li&gt;
&lt;li&gt;Enable or disable scroll wheel zoom.&lt;/li&gt;
&lt;li&gt;Set a minimum and maximum limit that the user can zoom on the frontend. Setting the same value to both fields will lock the zoom at that level.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are interested to give it a try, you can find it here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wordpress.org/plugins/ootb-openstreetmap/"&gt;WordPress.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/gsarig/ootb-openstreetmap"&gt;GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;PS: For those who would like to read a few more details, I've also written an &lt;a href="https://www.gsarigiannidis.gr/wordpress-gutenberg-map-block-openstreetmap"&gt;article regarding a few interesting UX challenges&lt;/a&gt; that I've came across during its development. As I explain there, I believe that the location search with autocomplete capabilities is an essential tool for the plugin’s UI to be complete. It’s a big feature, though, which needs some good thinking and careful implementation to make it as user-friendly as possible. So, I thought I’d release that basic version first, so that people start using it, and fix possible bugs before continuing to implement new features.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>gutenberg</category>
      <category>openstreetmap</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
