<?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: Felix Nana Yaw Yeboah-Jefferson</title>
    <description>The latest articles on DEV Community by Felix Nana Yaw Yeboah-Jefferson (@jaeyholic).</description>
    <link>https://dev.to/jaeyholic</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%2F141280%2Fde2889e8-6045-48ce-98da-05189f01d830.jpg</url>
      <title>DEV Community: Felix Nana Yaw Yeboah-Jefferson</title>
      <link>https://dev.to/jaeyholic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jaeyholic"/>
    <language>en</language>
    <item>
      <title>Introduction to Gridsome</title>
      <dc:creator>Felix Nana Yaw Yeboah-Jefferson</dc:creator>
      <pubDate>Sun, 23 Jun 2019 11:53:48 +0000</pubDate>
      <link>https://dev.to/jaeyholic/introduction-to-gridsome-440b</link>
      <guid>https://dev.to/jaeyholic/introduction-to-gridsome-440b</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Gridsome is a Vue.js-powered, modern site generator for building the fastest possible websites for any Headless CMS, APIs or Markdown-files. Gridsome makes it easy and fun for developers to create fast, beautiful websites without needing to become a performance expert.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.imgur.com%2FdExQAI0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.imgur.com%2FdExQAI0.png" alt="gridsome"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Gridsome?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Local development with hot-reloading&lt;/strong&gt; - See code changes in real-time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data source plugins&lt;/strong&gt; - Use it for any popular Headless CMSs, APIs or Markdown-files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File-based page routing&lt;/strong&gt; - Quickly create and manage routes with files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Centralized data managment&lt;/strong&gt; - Pull data into a local, unified GraphQL data layer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vue.js for frontend&lt;/strong&gt; - A lightweight and approachable front-end framework.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-optimized code&lt;/strong&gt; - Get code-splitting and asset optimization out-of-the-box.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Static files generation&lt;/strong&gt; - Deploy securely to any CDN or static web host.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.imgur.com%2Fee4RxwN.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.imgur.com%2Fee4RxwN.png" alt="vuejs"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gridsome.org/docs/how-it-works" rel="noopener noreferrer"&gt;Learn more about how Gridsome works&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Install Gridsome CLI tool
&lt;/h3&gt;

&lt;p&gt;Using yarn:&lt;br&gt;
&lt;code&gt;yarn global add @gridsome/cli&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Using npm:&lt;br&gt;
&lt;code&gt;npm install --global @gridsome/cli&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Create a Gridsome project
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;gridsome create my-gridsome-site&lt;/code&gt; to create a new project &lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cd my-gridsome-site&lt;/code&gt; to open folder&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gridsome develop&lt;/code&gt; to start local dev server at &lt;code&gt;http://localhost:8080&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Happy coding 🎉🙌&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  3. Next steps
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Create &lt;code&gt;.vue&lt;/code&gt; components in the &lt;code&gt;/pages&lt;/code&gt; directory to create page routes.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;gridsome build&lt;/code&gt; to generate static files in a &lt;code&gt;/dist&lt;/code&gt; folder&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.imgur.com%2F6wM4lNE.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.imgur.com%2F6wM4lNE.png" alt="code"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://gridsome.org/docs/how-it-works" rel="noopener noreferrer"&gt;How it works&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gridsome.org/docs/pages" rel="noopener noreferrer"&gt;How Pages work&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gridsome.org/docs/deployment" rel="noopener noreferrer"&gt;How to deploy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>frontend</category>
      <category>coding</category>
      <category>vue</category>
    </item>
    <item>
      <title>Setting dynamic background images in Nuxt</title>
      <dc:creator>Felix Nana Yaw Yeboah-Jefferson</dc:creator>
      <pubDate>Fri, 01 Mar 2019 08:43:06 +0000</pubDate>
      <link>https://dev.to/jaeyholic/setting-dynamic-background-images-in-nuxt-3j2</link>
      <guid>https://dev.to/jaeyholic/setting-dynamic-background-images-in-nuxt-3j2</guid>
      <description>&lt;p&gt;I had a few problems days ago with how to set dynamic background images in Nuxt. I tried different ways of pulling this one out and yet I wasn't able to till yesterday. By the way, this is my first time using Nuxt for a project and I suggested this in the new firm I recently joined. Since I suggested it, I might as well be the first person to use it on our website. So yes, I started using the framework and I had a few challenges but throughout the journey, I found solutions to those challenges and yes I say, its a great learning curve and it also gave me the opportunity to explore more with the framework. Back to the challenge I faced, this challenge was something else. I did a lot of googling and also finding solutions online but none worked till I played around and found a solution. I shared my solution to few people and communities who might be in need also and I found this community to be a great one, decided to create an account and also share this here. I don't know but it might also help someone, if not today, might be tomorrow or another day.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi82sdmr1igic2uxqnlp7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi82sdmr1igic2uxqnlp7.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So I began by creating a computed property and created backgroundURL within the computed property and return the looped dynamic background images. The main problem why dynamic images does work when used on an element or a div is because, you should &lt;em&gt;require&lt;/em&gt; the images and since there's no way of requiring, that's why i created a computed proptery and required the images and after called the property on background image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flrxd1io3q17xt7767p0l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flrxd1io3q17xt7767p0l.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I bind the style since its a dynamic background-image and within the URL link, i placed in the computed property i created for the background image and added some styles to make the image look good.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdqvlnpiqq428i1isv59t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdqvlnpiqq428i1isv59t.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the end results of the dynamic background images with style in NUXT&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqphs4oaoop1wwejfa385.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqphs4oaoop1wwejfa385.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I used the same procedure and also created something nice with it for the services section.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsu44z00g1yh67z5kya60.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsu44z00g1yh67z5kya60.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope this helps someone and I am available to anyone who has questions or doesn't understand anything, feel free to hit me up on here or twitter &lt;a class="mentioned-user" href="https://dev.to/jaeyholic"&gt;@jaeyholic&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>vue</category>
      <category>nuxt</category>
    </item>
  </channel>
</rss>
