<?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: cmfdev</title>
    <description>The latest articles on DEV Community by cmfdev (@cmfdev).</description>
    <link>https://dev.to/cmfdev</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%2F605485%2Fdc6cf531-b7ad-4646-8849-219c0e9b3826.png</url>
      <title>DEV Community: cmfdev</title>
      <link>https://dev.to/cmfdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cmfdev"/>
    <language>en</language>
    <item>
      <title>Google Photos embed thingy</title>
      <dc:creator>cmfdev</dc:creator>
      <pubDate>Wed, 26 May 2021 17:30:08 +0000</pubDate>
      <link>https://dev.to/cmfdev/google-photos-embed-thingy-dhg</link>
      <guid>https://dev.to/cmfdev/google-photos-embed-thingy-dhg</guid>
      <description>&lt;p&gt;A while ago, I was trying to embed a Google Photos album into a new website I was creating. But I quickly found that there was no easy way to do this, and I resorted to creating my own plugin for this.&lt;/p&gt;

&lt;p&gt;The plugin has three basic parts that you must change from the demo:&lt;br&gt;
&lt;strong&gt;A cover image&lt;/strong&gt; (A square image, at least 300x300 pixels. I recommend hosting via &lt;a href="https://postimages.org/" rel="noopener noreferrer"&gt;postimages.org&lt;/a&gt;)&lt;br&gt;
&lt;strong&gt;Album Title&lt;/strong&gt; (What you'd like the album to show up as on the website)&lt;br&gt;
&lt;strong&gt;Google Photos Album URL&lt;/strong&gt; (You must include this or viewers won't see the album on click)&lt;/p&gt;

&lt;p&gt;The rest is already included in my code.&lt;/p&gt;

&lt;p&gt;Now, here's how to actually create it.&lt;br&gt;
&lt;em&gt;CSS&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  position: relative;
  width: 180px;
}
.image {
  display: block;
  width: 180px;
  height: auto;
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #757575;
  overflow: hidden;
  width: 180px;
  height: 0;
  transition: 0.5s ease;
  opacity: 0.8;
  border-radius: 5%;

}
.container:hover .overlay {
  height: 100%;
}
.text {
  color: #000000;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: 'Montserrat', sans-serif;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;

}
.container2 {
  position: relative;
  font-family: 'Montserrat', sans-serif;
}
.text-block {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: white;
  padding-left: 20px;
}
.cursor-on-hover{
cursor: none;
}
.cursor-on-hover:hover{
cursor: pointer;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;HTML&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;td&amp;gt;
&amp;lt;div class="container"&amp;gt;&amp;lt;div class="container2"&amp;gt;
  &amp;lt;img style="border-radius: 5%;" src="https://i.postimg.cc/"  class="image"&amp;gt;
  &amp;lt;div class="text-block"&amp;gt;
  &amp;lt;b&amp;gt;title&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;div class="overlay"&amp;gt;&amp;lt;div style="margin-top: 18px;"&amp;gt;&amp;lt;center&amp;gt;
  &amp;lt;img src="https://i.postimg.cc/bvjJn0C5/imageonline-co-transparentimage-8.png" width="150px" class="cursor-on-hover" onclick="window.location.href='https://photos.app.goo.gl/'"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;div class="text"&amp;gt;&amp;lt;a class="text" href="https://photos.app.goo.gl/"&amp;gt;&amp;lt;b&amp;gt;View album on Google Photos&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;/td&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll want to replace &lt;code&gt;https://i.postimg.cc/&lt;/code&gt; (&lt;em&gt;third line from the top&lt;/em&gt;) with the actual URL of the cover photo&lt;br&gt;
Also replace &lt;code&gt;title&lt;/code&gt; (&lt;em&gt;fifth line from the top&lt;/em&gt;) with the actual title of your Google Photos album.&lt;br&gt;
Replace &lt;code&gt;https://photos.app.goo.gl/&lt;/code&gt; (&lt;em&gt;on the seventh and eighth lines from the top&lt;/em&gt;) with your actual Google Photos album URL&lt;/p&gt;

&lt;p&gt;See &lt;a href="https://codepen.io/CMFdev/pen/NWpvxxr" rel="noopener noreferrer"&gt;this CodePen&lt;/a&gt; for an example.&lt;/p&gt;

</description>
      <category>googlephotos</category>
      <category>google</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>Simple, Easy HTML Dropdown</title>
      <dc:creator>cmfdev</dc:creator>
      <pubDate>Mon, 29 Mar 2021 16:34:11 +0000</pubDate>
      <link>https://dev.to/cmfdev/simple-easy-html-dropdown-2ekh</link>
      <guid>https://dev.to/cmfdev/simple-easy-html-dropdown-2ekh</guid>
      <description>&lt;p&gt;Make a simple dropdown menu with bare HTML!&lt;br&gt;
Use the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;details&amp;gt;
&amp;lt;summary&amp;gt;This text will always be visible&amp;lt;/summary&amp;gt;
This text is hidden until the dropdown is clicked
&amp;lt;/details&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

</description>
      <category>html</category>
    </item>
  </channel>
</rss>
