<?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: Elissavet Triantafyllopoulou</title>
    <description>The latest articles on DEV Community by Elissavet Triantafyllopoulou (@elissavettriant).</description>
    <link>https://dev.to/elissavettriant</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%2F620685%2F6fa01480-9a0f-429f-8c85-93ef6dafdea1.jpg</url>
      <title>DEV Community: Elissavet Triantafyllopoulou</title>
      <link>https://dev.to/elissavettriant</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/elissavettriant"/>
    <language>en</language>
    <item>
      <title>Unsplash photos not displaying? You might have a "hotlinking" issue.</title>
      <dc:creator>Elissavet Triantafyllopoulou</dc:creator>
      <pubDate>Thu, 29 Jun 2023 01:11:07 +0000</pubDate>
      <link>https://dev.to/elissavettriant/unsplash-photos-not-displaying-you-might-have-a-hotlinking-issue-591i</link>
      <guid>https://dev.to/elissavettriant/unsplash-photos-not-displaying-you-might-have-a-hotlinking-issue-591i</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Wait, what? Where all my photos from Unsplash have gone?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I hear you, I hear you...&lt;/p&gt;

&lt;p&gt;So, I experiment a lot using &lt;a href="https://codepen.io/"&gt;CodePen&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;My usual go-to place for gorgeous stock photography I can use on my code is &lt;a href="https://unsplash.com/"&gt;Unsplash&lt;/a&gt;, the "The internet’s source for visuals".&lt;/p&gt;

&lt;p&gt;So far so good. I used to search for the right photo(s) and use a formula, that looked something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;src='https://source.unsplash.com/' + photoID + '/500x320'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This used to work, up until last week I checked, but all my Pens are failing miserably, with a status code of 500 and I have a strong suspicion yours is too, that why you're here.&lt;/p&gt;

&lt;p&gt;I'm not sure when this happened, and why, if you do, please leave me a comment.&lt;/p&gt;

&lt;p&gt;With a quick search I found out that &lt;strong&gt;hotlinking&lt;/strong&gt; an Unsplash photo has its &lt;a href="https://help.unsplash.com/en/articles/2511271-guideline-hotlinking-images"&gt;guideline&lt;/a&gt;. This article was recently updated by the way. Go check it out, I'll wait.&lt;/p&gt;

&lt;p&gt;So, following the guideline, the source of the image should rather look something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://images.unsplash.com/photo-1559181567-c3190ca9959b?ixlib=rb-4.0.3&amp;amp;ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&amp;amp;auto=format&amp;amp;fit=crop&amp;amp;w=500&amp;amp;h=500&amp;amp;q=80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;Where do you get that code&lt;/strong&gt;?
&lt;/h2&gt;

&lt;p&gt;While you're browsing as usual, right click on the photo you want and select "Open image in a new tab". You'll find the basic code in the address bar. It's up to you to update the width/height/quality (w/h/q) it best fits on your design.&lt;/p&gt;

&lt;p&gt;So, there you have it, how to fix the "broken" Unsplash Photos not displaying or, in other words, how to properly use Unsplash Images in your code.&lt;/p&gt;

&lt;p&gt;Thank you, and happy coding!&lt;/p&gt;

</description>
      <category>unsplash</category>
      <category>api</category>
      <category>howto</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Responsive Image Grid with Lightbox Gallery (GLightbox)</title>
      <dc:creator>Elissavet Triantafyllopoulou</dc:creator>
      <pubDate>Mon, 12 Jun 2023 07:14:15 +0000</pubDate>
      <link>https://dev.to/elissavettriant/responsive-image-grid-with-lightbox-gallery-glightbox-joj</link>
      <guid>https://dev.to/elissavettriant/responsive-image-grid-with-lightbox-gallery-glightbox-joj</guid>
      <description>&lt;p&gt;Responsive Image Grid, styled with the &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout"&gt;CSS3 Grid Layout&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Complimentary Lightbox, made with the lightweight &lt;a href="https://biati-digital.github.io/glightbox/"&gt;GLightBox&lt;/a&gt;, a touchable pure JavaScript lightbox.&lt;/p&gt;

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

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