<?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: Emenike onyedikachi sunday</title>
    <description>The latest articles on DEV Community by Emenike onyedikachi sunday (@lordsage).</description>
    <link>https://dev.to/lordsage</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%2F921377%2Ff0b596c3-bcbf-4d55-b725-e24d670f2eab.jpeg</url>
      <title>DEV Community: Emenike onyedikachi sunday</title>
      <link>https://dev.to/lordsage</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lordsage"/>
    <language>en</language>
    <item>
      <title>Getting Started with Python Programming: A Beginner's Guide</title>
      <dc:creator>Emenike onyedikachi sunday</dc:creator>
      <pubDate>Sun, 25 Jun 2023 21:48:59 +0000</pubDate>
      <link>https://dev.to/lordsage/getting-started-with-python-programming-a-beginners-guide-5g4o</link>
      <guid>https://dev.to/lordsage/getting-started-with-python-programming-a-beginners-guide-5g4o</guid>
      <description>&lt;p&gt;&lt;strong&gt;P&lt;/strong&gt;ython is a popular programming language noted for its ease of use and adaptability. Python is a wonderful language, to begin with if you are an aspiring programmer or a curious individual wishing to dip your toes into the world of coding. In this post, we'll give you a gentle introduction to Python programming, walking you through the fundamentals and preparing you to begin your coding journey /lcife.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What exactly is Python?
&lt;/h2&gt;

&lt;p&gt;Python is a computer language that prioritizes readability and ease of use. It was designed to be simple to learn and write, making it an excellent alternative for novices. Python's syntax is intended to be intuitive and human-friendly, allowing you to express your thoughts naturally.&lt;/p&gt;

&lt;h2&gt;
  
  
  2.Installing Python:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Download the newest version of Python from the official Python website (python.org).&lt;/li&gt;
&lt;li&gt;To install Python on your PC, run the installer and follow the instructions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Writing Your First Program:
&lt;/h2&gt;

&lt;p&gt;Once Python is installed, open a text editor (such as Notepad, Sublime Text, or Vs Code) to write your code.&lt;/p&gt;

&lt;p&gt;Let's start with creating a python file by naming the new file you created "name.py" the ".py" is very important because that what tell the text editor that the file is python file ,and inside it lets start with a simple "Hello, World!" program, which is a common programming starting point. In a text editor, enter the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello, World!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xoWCMza4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v5gf8g55c2ie4cwmsufo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xoWCMza4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v5gf8g55c2ie4cwmsufo.png" alt="Image description" width="722" height="616"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Running Python Code:
&lt;/h2&gt;

&lt;p&gt;So for the code to run you have to Open the command prompt or terminal and navigate to the directory where you saved your Python file.&lt;/p&gt;

&lt;p&gt;Type python filename.py and press Enter to run the program. In this case, it would be python hello.py.&lt;br&gt;
You should see the output "Hello, World!" displayed on the screen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hJePd2BX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/icm4nxxsnsbspqsjfwwb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hJePd2BX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/icm4nxxsnsbspqsjfwwb.png" alt="Image description" width="766" height="756"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  5. Variables and Data Types:
&lt;/h2&gt;

&lt;p&gt;Variables are used to store values in Python. The equals (=) sign is used to assign a value to a variable. Python supports a wide range of data types, including:&lt;br&gt;
Integers (whole numbers) and floating-point numbers (decimal numbers) are the two types of numbers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Strings: character sequences contained in single (' ') or double (" ") quotes.&lt;/li&gt;
&lt;li&gt;Booleans: can be either True or False.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"John"&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;strings&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;
&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;integers&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;
&lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;9.99&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;floating&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;point&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;
&lt;span class="n"&gt;is_valid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;booleans&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  6.Basic Operations:
&lt;/h2&gt;

&lt;p&gt;Python allows you to perform arithmetic operations like addition (+), subtraction (-), multiplication (*), division (/), and more.&lt;br&gt;
You can also use comparison operators like equals (==), greater than (&amp;gt;), less than (&amp;lt;), and logical operators like and, or, and not.&lt;/p&gt;
&lt;h2&gt;
  
  
  7.Flow of Control:
&lt;/h2&gt;

&lt;p&gt;Python has control flow statements that can be used to make decisions and repeat activities. If-else statements and loops are two examples.&lt;br&gt;
If-else statements allow your software to take alternative actions depending on certain conditions.&lt;br&gt;
Loops, such as the for and while loops, allow you to repeat a block of code several times.&lt;/p&gt;
&lt;h2&gt;
  
  
  8. Functions:
&lt;/h2&gt;

&lt;p&gt;Functions are reusable blocks of code that perform specific tasks. They help organize your code and make it more modular. Python provides built-in functions, and you can also create your own functions.&lt;/p&gt;

&lt;p&gt;Python has built-in functions, but you can also create your own functions using the def keyword. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sayhello&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello, "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s"&gt;"!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;sayhello&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Emenike"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion:
&lt;/h2&gt;

&lt;p&gt;There are still many stuffs to learn python but for now as a beginner this is the basic you need to learn and there are site you can go to learn more like w3school, Udemy, YouTube .etc..&lt;br&gt;
I will still be dropping more soon , please fell to comment  below . and another Enjoy your journey.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>python</category>
    </item>
    <item>
      <title>How to install tailwind CSS on a next JS project : a step by step guide</title>
      <dc:creator>Emenike onyedikachi sunday</dc:creator>
      <pubDate>Fri, 16 Jun 2023 07:41:51 +0000</pubDate>
      <link>https://dev.to/lordsage/how-install-tailwind-css-on-a-next-js-project-a-step-by-step-guide-1p6d</link>
      <guid>https://dev.to/lordsage/how-install-tailwind-css-on-a-next-js-project-a-step-by-step-guide-1p6d</guid>
      <description>&lt;p&gt;Table of Contents:&lt;/p&gt;

&lt;p&gt;Introduction&lt;br&gt;
Prerequisites&lt;br&gt;
Setting up a Next.js Project&lt;br&gt;
What is tailwind CSS&lt;br&gt;
Benefits of using tailwind CSS&lt;br&gt;
Installing Tailwind CSS&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using npm&lt;/li&gt;
&lt;li&gt;Using Yarn
Setting up Tailwind CSS Styles
Testing Tailwind CSS Setup
Conclusion&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Visually appealing websites are essential in the current digital era. Beautiful web page design greatly benefits from the use of cascading style sheets (CSS). The installation of Tailwind CSS on a Next.js project will be explained to you in this article as a layperson. In order to quickly create cutting-edge user interfaces, you can use the well-liked utility-first CSS framework Tailwind CSS.&lt;/p&gt;
&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;In order to Participate in the Tutorial part of this, it is recommended that you have&lt;br&gt;
A Fundamental understanding of Basic Html, CSS, and JavaScript .&lt;br&gt;
Node installed on your System.&lt;br&gt;
Basic Knowledge of react.js.&lt;br&gt;
It will also be useful to be familiar with package managers like npm or yarn and Next.js.&lt;/p&gt;
&lt;h2&gt;
  
  
  Setting up a Next.js Project
&lt;/h2&gt;

&lt;p&gt;I won't discuss preparing for the next.js You can read my other article to learn how to set up a next, but I'll focus on a next.js project here. An example of a next.js project is available at &lt;a href="https://dev.to/lordsage/learning-nextjs-layout-creation-a-step-by-step-guide-579m"&gt;https://dev.to/lordsage/learning-nextjs-layout-creation-a-step-by-step-guide-579m&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What is tailwind CSS
&lt;/h2&gt;

&lt;p&gt;Tailwind is a CSS framework that provides us with single-purpose utility classes which are opinionated for the most part, and which help us design our web pages from right inside our markup or . js/. jsx/. ts/. tsx files. OR you can say that  tailwind CSS is &lt;/p&gt;

&lt;p&gt;A well-liked utility-first CSS framework called Tailwind CSS aids programmers in swiftly and effectively creating user interfaces. To put it simply, it gives you a collection of already-made CSS classes that you can use to design your HTML components.&lt;/p&gt;
&lt;h2&gt;
  
  
  Benefits of using tailwind CSS
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Easy to Get Started&lt;/li&gt;
&lt;li&gt;Faster Development&lt;/li&gt;
&lt;li&gt;Customizable&lt;/li&gt;
&lt;li&gt;Reduces code small&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Installing Tailwind CSS Using npm
&lt;/h2&gt;

&lt;p&gt;Launch the terminal in the vs-code project directory.&lt;/p&gt;

&lt;p&gt;If you are Running npm, to install Tailwind CSS and its dependencies type this on the terminal "npm Install -D postfixer for tailwindcss".&lt;/p&gt;

&lt;p&gt;then run the init command to generate both tailwind.config.js and postcss.config.js&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;D&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt; &lt;span class="nx"&gt;postcss&lt;/span&gt; &lt;span class="nx"&gt;autoprefixer&lt;/span&gt;

&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt; &lt;span class="nx"&gt;init&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;p&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JDwipdcc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rmfgd3cvrprywtbyqmcj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JDwipdcc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rmfgd3cvrprywtbyqmcj.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the other hand, if you like working with Yarn type this&lt;br&gt;
: yarn add tailwindcss postcss autoprefixer&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;yarn&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt; &lt;span class="nx"&gt;postcss&lt;/span&gt; &lt;span class="nx"&gt;autoprefixer&lt;/span&gt;

&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;tailwindcss&lt;/span&gt; &lt;span class="nx"&gt;init&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;p&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Setting up Tailwind CSS
&lt;/h2&gt;

&lt;p&gt;after installing the tailwind css  there are many configuration that are still needed  for it to ran smoothly&lt;br&gt;&lt;br&gt;
first of all Open the tailwind.config.js file in your project directory. Locate the purge property and update it with the paths to your Next.js components and pages&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;module&lt;/span&gt;&lt;span class="nc"&gt;.exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;purge&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;'./src/components/**/*.{js,ts,jsx,tsx}'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;'./src/pages/**/*.{js,ts,jsx,tsx}'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;//&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JkBpctU2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kcpz5d78mooi6836wm13.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JkBpctU2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kcpz5d78mooi6836wm13.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;after you have done that next import the tailwind css style into the project&lt;br&gt;
Open the styles/globals.css file in your project folder&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@import&lt;/span&gt; &lt;span class="s2"&gt;'tailwindcss/base'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;@import&lt;/span&gt; &lt;span class="s2"&gt;'tailwindcss/components'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;@import&lt;/span&gt; &lt;span class="s2"&gt;'tailwindcss/utilities'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--e4rtW7mO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qxvg7b00tu13eo84vgau.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--e4rtW7mO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qxvg7b00tu13eo84vgau.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you have done that and saved you file you will have to test if it is working so what you have to do is to go your "index.js file" give the div class name and in the class name add this "bg-blue-500" to give background color of blue&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;Home&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"bg-blue-500 "&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
   &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Welcome to my Next.js project with Tailwind CSS!&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tMXcnd2k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/csrbhm84jx0diovmpdqz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tMXcnd2k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/csrbhm84jx0diovmpdqz.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and another thing there an more straight forward way of when you are installing next js  you will see where you are allowed to to select if are going to work with tailwind css so that the system can install it automatically for you instead of manually installing it  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J1LXhWvv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ybp14tunojir209u1uh2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J1LXhWvv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ybp14tunojir209u1uh2.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conclusion&lt;br&gt;
best of luck! Tailwind CSS has been successfully installed Next.js work. You can now use Tailwind CSS to build amazing and responsive designs for your websites by following the instructions in this article. Explore the official Tailwind Css site for more &lt;a href="https://tailwindcss.com/"&gt;https://tailwindcss.com/&lt;/a&gt;  and for beginners  search for tailwind cheat-sheet "" this will help you in using tailwind css feel free to comment&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>tailwindcss</category>
      <category>css</category>
    </item>
    <item>
      <title>Learning Next.js Layout Creation: A Step-by-Step Guide</title>
      <dc:creator>Emenike onyedikachi sunday</dc:creator>
      <pubDate>Sun, 11 Jun 2023 21:11:24 +0000</pubDate>
      <link>https://dev.to/lordsage/learning-nextjs-layout-creation-a-step-by-step-guide-579m</link>
      <guid>https://dev.to/lordsage/learning-nextjs-layout-creation-a-step-by-step-guide-579m</guid>
      <description>&lt;p&gt;You may have come across websites where their nav bar or their footer or a particular part of the site appears on all pages of the site and you wondered how they were created or done, This is call layout. There are different methods to achieve this and they can be achieved in different projects like react js, vue js, next js project too, etc. don’t worry it is not complicated to understand.&lt;br&gt;
In this article, we’ll show you how to achieve this when you are working with ‘next.Js’ and walk you through the process of creating and achieving the layout in next Js.&lt;br&gt;
We will also demonstrate how to achieve the layout in real-life cases as your read on.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Prerequisites&lt;/li&gt;
&lt;li&gt; What is Next.Js ?&lt;/li&gt;
&lt;li&gt; Benefits of using next.js for layout &lt;/li&gt;
&lt;li&gt; Installing Next.js and Creating a new Next.js 
Project
&lt;/li&gt;
&lt;li&gt;Explaining what  component is:&lt;/li&gt;
&lt;li&gt; Creating a Basic Layouts Component&lt;/li&gt;
&lt;li&gt; Applying the layout effect &lt;/li&gt;
&lt;li&gt; Testing &lt;/li&gt;
&lt;li&gt; Conclusion &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Prerequisites:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;I&lt;/strong&gt;n order to Participate in the Tutorial part of this, it is recommended that you have &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A Fundamental understanding of Basic Html, CSS, and JavaScript .&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Node installed on your System.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Basic Knowledge of react.js.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  What is Next.js:
&lt;/h2&gt;

&lt;p&gt;Next.js can be said to be a helpful tool for developers to make websites and web applications. it makes it easier to create websites that can do cool things and change dynamically. it does this by giving developers ready-to-use parts and features that they can use to build their websites without starting from scratch.&lt;/p&gt;
&lt;h2&gt;
  
  
  Benefits of using next.js for layout:
&lt;/h2&gt;

&lt;p&gt;Below are the benefits of using next.js of using next.js for layout but I will not explain all the benefits enjoy&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Layout components or elements:&lt;br&gt;
Next.js has a component-based architecture that allows for the creation of reusable layout components. A layout component can be defined once and used on several pages, giving your application a unified look and feel. Headers, footers, navigation menus, sidebars, and other typical features can all be found in layout components.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;BUILT-IN ROUTING.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SERVER-SIDE RENDERING.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;EXTENSIBILITY&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Installing Next.js and creating a next.js project
&lt;/h2&gt;

&lt;p&gt;It is simple to set up Next.js. Here is a detailed instruction with code examples when using vs code &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;first of all, create a new folder for the project anywhere on your system&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;secondly, open the folder and right click and select open with vs code, this will let you open the folder inside vs code &lt;br&gt;
when you have done that&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D1Bg6vFr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sgf83lsimkvswlgcmjqb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D1Bg6vFr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sgf83lsimkvswlgcmjqb.jpg" alt="Image description" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open your terminal in vs code and type  "npx create-next-app@latest Project-name"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xwwcvcm8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ze0e3gveenbzowj3o8ju.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xwwcvcm8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ze0e3gveenbzowj3o8ju.png" alt="Image description" width="800" height="841"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npx&lt;/span&gt; &lt;span class="nx"&gt;create&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;next&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;latest&lt;/span&gt; &lt;span class="nx"&gt;Project&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Once you have done that you will be asked some questions just answer them according to what you want to work with. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--b0wAZT8L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m0dz9e8ii0f380b5is7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--b0wAZT8L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m0dz9e8ii0f380b5is7.jpg" alt="Image description" width="800" height="862"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;once next.js has been completely set up this will show or you will have this in the image below &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TvGHiJld--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/isz6ipxyn0b5xrcbf71w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TvGHiJld--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/isz6ipxyn0b5xrcbf71w.png" alt="Image description" width="800" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explaining what  component is:
&lt;/h2&gt;

&lt;p&gt;Before we continue you need to know what component a little bit because it is more of what you are going to be working with&lt;/p&gt;

&lt;p&gt;A component in Next.js is a piece of reusable code that encapsulates a particular collection of functions and user interface elements. The building pieces of a web application in Next.js are called components, and they can stand in for a variety of user interface elements like a header, navigation menu, or form.&lt;br&gt;
Examples  of components are  just navbar.js and footer.js which we created &lt;/p&gt;
&lt;h2&gt;
  
  
  Creating a Basic Layouts Component
&lt;/h2&gt;

&lt;p&gt;Here we get to business first we create a components folder in your project folder and in the components folder you just created you will create a Navbar component by selecting the component folder and clicking on the new file button and naming the new file "Navbar.js" your component can have any name that you want but it must have ".js" at the back after you have done that, you will have to make next.js to see the navbar.js as a component by adding this write up or you can call it arrow function in your &lt;br&gt;
navbar.js&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;Navbar&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Navbar&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nx"&gt;Navbar&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or you can just type "rafce" and press enter for it to generate the write-up above or the arrow function for you meaning "rafce" is the shortcut to do it&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4FKMwCaX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3i7xvgk314469r7hkylb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4FKMwCaX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3i7xvgk314469r7hkylb.png" alt="Image description" width="800" height="862"&gt;&lt;/a&gt;&lt;br&gt;
picture of the rafce&lt;/p&gt;

&lt;p&gt;and your navbar component is ready to use anywhere on your site &lt;/p&gt;

&lt;p&gt;after following this instruction your will have something like this&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LzJB3C4u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8x04646sby1hfgwisdkq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LzJB3C4u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8x04646sby1hfgwisdkq.png" alt="Image description" width="800" height="862"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After creating a navbar component you will have to create a footer component too and it is still the same process involved when creating a navbar component so what I mean is for you to repeat the same process above but you have to name it footer.js not navbar.js, you will now have something like this &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XOYeAlT---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rk3tavnddc79lbwnapi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XOYeAlT---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rk3tavnddc79lbwnapi.png" alt="Image description" width="800" height="862"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Applying the layout effect
&lt;/h2&gt;

&lt;p&gt;Now for the section of the day applying the layout effect, here I will show you how you can achieve the layout stuff or you can say magic!! &lt;/p&gt;

&lt;p&gt;In this part, we are going to work with the _app.js file that is located in the src folder&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bQsVcVIb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1tuaostw5tqstrxqy0b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bQsVcVIb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1tuaostw5tqstrxqy0b.png" alt="Image description" width="800" height="327"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the _app.js file you will have to make some editing  in it first we have to import the navbar and footer components at the top side by writing this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Navbar&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../../components/Navbar&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Footer&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../../components/Footer&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NNeLxMri--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k5r39s5enxqywsmvnocl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NNeLxMri--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k5r39s5enxqywsmvnocl.png" alt="Image description" width="800" height="862"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;once you have done that you will have to now make use of the nav and footer component you imported by wrapping "" (this stuff you are wrapping is The component returned in my _app.js is the individual page define in the pages folder, for example, the component in the index.js ) in another meaning it means what you are going to wrap with the nav and footer is the whole site.&lt;br&gt;
It is just like a container carries it so that no matter the page you open it will show without having to repeatedly import it into all the pages of the site manually&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@/styles/globals.css&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Navbar&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../../components/Navbar&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Footer&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../../components/Footer&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="c1"&gt;// import Layout from '../../components/layout'&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;pageProps&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Navbar&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Component&lt;/span&gt; &lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="nx"&gt;pageProps&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Footer&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;



    &lt;span class="p"&gt;&amp;lt;/&amp;gt;&lt;/span&gt;

  &lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--P1FSuNf6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/88j3pd0efw92mpqce7z6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P1FSuNf6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/88j3pd0efw92mpqce7z6.png" alt="Image description" width="800" height="862"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing
&lt;/h2&gt;

&lt;p&gt;you can now run your app and check if it is working when you navigate to any page of the site this will mean that you will need to create another page in the site like the details page to test if the nav and footer will appear there too you can just add a new page by detail.js file in the pages folder &lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Code reuse and maintainability are encouraged by Next.js layouts. Developers may design intricate and dynamic user interfaces because of the ability to alter and nest layouts. Next.js layouts improve the development process overall by streamlining the handling of layout-related issues and enhancing the overall user interface design.&lt;br&gt;
Thanks for allowing me to put you through this lesson I hope to enjoy it if you have any more issues just drop them in the comment section I will reply Or you email: &lt;a href="mailto:semenike60@gmail.com"&gt;semenike60@gmail.com&lt;/a&gt; or chat me up &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Understanding CSS For Beginners</title>
      <dc:creator>Emenike onyedikachi sunday</dc:creator>
      <pubDate>Fri, 03 Mar 2023 09:42:27 +0000</pubDate>
      <link>https://dev.to/lordsage/understanding-css-for-beginners-12j0</link>
      <guid>https://dev.to/lordsage/understanding-css-for-beginners-12j0</guid>
      <description>&lt;h2&gt;
  
  
  What is CSS:
&lt;/h2&gt;

&lt;p&gt;Cascading Style Sheets, or CSS, is a fundamental tool for building modern, responsive websites. CSS allows web developers to apply a variety of styles to HTML elements, including color, font size, spacing, and layout. With CSS, you can create visually appealing and user-friendly websites that work seamlessly across devices.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you're new to web development and want to learn CSS, here's a beginner's guide to get you started:
&lt;/h2&gt;

&lt;h2&gt;
  
  
  1.Understanding the basics of CSS syntax
&lt;/h2&gt;

&lt;p&gt;CSS uses a simple syntax to style HTML elements. To apply a style to an element, you first need to select it using a CSS selector. Selectors can be based on the element type, class, ID, or other attributes. Once you've selected an element, you can apply styles to it using CSS properties and values.&lt;/p&gt;

&lt;p&gt;For example, to style all paragraphs in your HTML document, you can use the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;P&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="py"&gt;Color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;16px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code above selects all p elements and applies a blue color and a font size of 16 pixels&lt;/p&gt;

&lt;h2&gt;
  
  
  2.Using CSS with HTML:
&lt;/h2&gt;

&lt;p&gt;To apply CSS to your HTML document, you need to link your CSS file to your HTML file. You can do this by adding the following code to the &lt;/p&gt; section of your HTML file:&lt;br&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;link rel="stylesheet" href="style.css"&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This code above tells the browser to load the style.css file and apply its styles to your HTML document.&lt;/p&gt;
&lt;h2&gt;
  
  
  3.CSS selectors
&lt;/h2&gt;

&lt;p&gt;As mentioned earlier, CSS selectors are used to select HTML elements to apply styles to. There are several types of selectors you can use, including:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Element selectors: selects elements based on their tag name (e.g. p, h1, div).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Class selectors: selects elements with a specific class (e.g. .my-class).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ID selectors: selects a single element with a specific ID (e.g. #my-id).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Attribute selectors: selects elements with a specific attribute (e.g. [href], [target="_blank"]).&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, to select all elements with a class of my-class, you can use the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.my-class&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;bold&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code above applies a red color and bold font weight to all elements with the class my-class.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. CSS properties and values
&lt;/h2&gt;

&lt;p&gt;CSS properties and values are used to apply styles to selected HTML elements. There are many CSS properties you can use, including:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Color: changes the color of text and backgrounds (e.g. color: blue, background-color: yellow).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Font: changes the font family, size, and weight (e.g. font-family: Arial, font-size: 16px, font-weight: bold).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Padding and margin: changes the spacing around elements (e.g. padding: 10px, margin: 20px).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Display: changes how elements are displayed on the page (e.g. display: block, display: inline).&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  5. CSS box model
&lt;/h2&gt;

&lt;p&gt;Understanding the CSS box model is essential for creating well-designed layouts. The box model refers to the rectangular box that surrounds every HTML element, including its content, padding, border, and margin. You can use CSS properties like padding, border, and margin to control the size and spacing of the box model.&lt;/p&gt;

&lt;h2&gt;
  
  
  6.Responsive design with CSS
&lt;/h2&gt;

&lt;p&gt;Responsive design is the practice of creating websites that look good on all devices, including desktops, laptops, tablets, and smartphones. CSS is essential for creating responsive designs because it allows you to change the layout, font size, and&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>css</category>
      <category>codenewbie</category>
      <category>design</category>
    </item>
    <item>
      <title>Table of content intro what are customer call services prerequisites why are customer call services important Conclusion</title>
      <dc:creator>Emenike onyedikachi sunday</dc:creator>
      <pubDate>Wed, 05 Oct 2022 06:47:53 +0000</pubDate>
      <link>https://dev.to/lordsage/table-of-contentintrowhat-are-customer-call-servicesprerequisiteswhy-are-customer-call-services-importantconclusion-51ea</link>
      <guid>https://dev.to/lordsage/table-of-contentintrowhat-are-customer-call-servicesprerequisiteswhy-are-customer-call-services-importantconclusion-51ea</guid>
      <description>&lt;p&gt;Good day reader thanks for allowing me to share a little bit of my knowledge with you, so pls make yourself comfortable and feel at home as I am going to give you a ride through the world of "customer call service".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lZj27Lxg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7ixqe6outix5i9bnm82.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lZj27Lxg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7ixqe6outix5i9bnm82.jpg" alt="Image description" width="184" height="121"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  What are customer call services ?:
&lt;/h1&gt;

&lt;p&gt;Customer call service is the assistance and advice provided by a company to those people who buy or use its products or services. this work is one of the most important in the world of business and this work opportunity is available mainly for youths and it is very easy to do.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pVDQbPBD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e887zghxm94v5lzkeu2m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pVDQbPBD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e887zghxm94v5lzkeu2m.png" alt="Image description" width="117" height="126"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Prerequisites:
&lt;/h1&gt;

&lt;p&gt;So the prerequisites for this work for you to easily get the work or be better in it are:&lt;/p&gt;

&lt;p&gt;-Problem-solving skills: the number one skill you need to be good at customer service is problem-solving. every other part of the job is related to problem-solving abilities.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wFzkmhhe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qsuxp26zunfnnvm0h2ef.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wFzkmhhe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qsuxp26zunfnnvm0h2ef.jpg" alt="Image description" width="189" height="126"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;-Clear Communication: You will have a hard growing in the customer service s lane if you lack clear and good communication skills.&lt;br&gt;
Take note clearly and good communication isn't as easy as it sounds. it involves you being capable to put yourself in the client's shoes and using concise explanations to get to a solution as quickly as possible and often that means you will have to cut out the jargon in favor of language.&lt;/p&gt;

&lt;p&gt;-Customer focus and adaptability to different personality types:&lt;br&gt;
in this line of work, you will attend to or meet different people with different personalities or characters so you will have to be capable of not getting angry when communicating with so rude customers.&lt;/p&gt;

&lt;p&gt;-Friendly Attitude:&lt;br&gt;
People hate to be treated like a number. the majority of people prefer to interact with a human when faced with issues.&lt;br&gt;
the ability to stay  genuine and show clients that they matter to your business can make a whole world of a difference in their customer experience&lt;/p&gt;

&lt;p&gt;-Strong Time management&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--715LknIx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q7xxbh59mmo8wqfco0ld.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--715LknIx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q7xxbh59mmo8wqfco0ld.jpg" alt="Image description" width="612" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  WHY IS CUSTOMER CALL SERVICES  IMPORTANT:
&lt;/h1&gt;

&lt;p&gt;-Helps you retain customers&lt;br&gt;
-Boosts employee retention&lt;br&gt;
-Reinforces company values and brand &lt;br&gt;
-Generates referrals&lt;br&gt;
-Increases customer lifetime value&lt;br&gt;
-Proactively addresses customer issues &lt;br&gt;
-Strengthens company culture and streamlines processes &lt;br&gt;
-Give you a competitive advantage&lt;/p&gt;

&lt;h1&gt;
  
  
  CONCLUSION:
&lt;/h1&gt;

&lt;p&gt;Customer call service is one of the most important parts of any business  and it is a very good means of creating job opportunities,&lt;br&gt;
and thanks for allowing me to share a little bit of my knowledge with you, I hope you enjoyed the ride&lt;/p&gt;

&lt;p&gt;Writer: SAGE&lt;br&gt;&lt;br&gt;
linkedin:&lt;a href="https://www.linkedin.com/in/onyedikachi-emenike-35877420a/"&gt;https://www.linkedin.com/in/onyedikachi-emenike-35877420a/&lt;/a&gt;&lt;br&gt;
twitter: &lt;a href="https://twitter.com/sage1040"&gt;https://twitter.com/sage1040&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>career</category>
      <category>news</category>
      <category>leadership</category>
    </item>
    <item>
      <title>How to use the flex-wrap property</title>
      <dc:creator>Emenike onyedikachi sunday</dc:creator>
      <pubDate>Tue, 13 Sep 2022 04:08:01 +0000</pubDate>
      <link>https://dev.to/lordsage/flex-box-flex-wrap-understanding-and-appiling-flexwrap-under-flexbox-15bi</link>
      <guid>https://dev.to/lordsage/flex-box-flex-wrap-understanding-and-appiling-flexwrap-under-flexbox-15bi</guid>
      <description>&lt;p&gt;&lt;strong&gt;Table of content&lt;br&gt;
Intro&lt;br&gt;
Prerequisites&lt;br&gt;
What is flex-wrap?&lt;br&gt;
Why should you use flex wrap?&lt;br&gt;
How to use flex-wrap?&lt;br&gt;
Example &lt;br&gt;
Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Good day reader thanks for allowing me to share a little bit of my knowledge with you, so please make yourself comfortable and feel at home as I am going to give you a ride through the world of "flex-wrap"&lt;br&gt;
&lt;strong&gt;Prerequisites:&lt;/strong&gt;&lt;br&gt;
So for the prerequisites for you to easily understand this ride&lt;br&gt;
you have to be familiar with "CSS", "flex box layout"&lt;br&gt;
you can read the prerequisites I listed here so let's get to the better side.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is flex-wrap:&lt;/strong&gt;&lt;br&gt;
Flex-wrap is a CSS property under flex box layout sets whether flex items are forced onto one line or can wrap onto multiple lines. if the wrapping is allowed, it sets the direction in that lines are stacked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why should you use flex-wrap:&lt;/strong&gt;&lt;br&gt;
Here I will talk about flex-wrap a little because it is the parent&lt;br&gt;
of flex-wap&lt;br&gt;
CSS flex-box layout allows you to easily format HTML, it also makes it simple to arrange items on our site horizontally and vertically,&lt;br&gt;
when "display: flex" has been added to the particular container it aligns the content horizontal, which sometimes causes the content in the container to cause the site to flow, if the width of the container to which the flex was applied is now more than the page width and that's when flex-wrap comes, in if you add flex-wrap it will automatically arrange the contents in the flexed container to avoid overflowing in the site and no matter the size of the screen it automatically arrange the items that the flex was applied on , and flex-wrap has a different property,&lt;br&gt;
This makes our sites more Responsive&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to use flex-wrap:&lt;/strong&gt;&lt;br&gt;
let me tell you how to use or apply flex-wrap don't worry I will still show you an example below.&lt;br&gt;
Ok create a div-tag and add let us say 5 or more images in the div you created and give the images height and weight of 70px:70px the images you add in the box will be aligned vertically on default and sometimes it does not look nice to the eyes, so because of that, u will have to add flex-box layout to the div that contain the images by doing this.&lt;br&gt;
Give the div containing the image property of "display: flex"&lt;br&gt;
yes that's it are you surprised yes as easy as that you have&lt;br&gt;
added flex box to the div.&lt;br&gt;
So when "display:flex" has been added to the particular container it aligns the content horizontal,which sometimes causes the content in the container to cause the site to overflow if the width of the container which the flex was applied is now more than the page width,&lt;br&gt;
Note:&lt;br&gt;
most of the time this happens when the width of the devices on which the site is viewed is getting smaller(being viewed on a smaller device).&lt;br&gt;
So this is where our main topic "Flex-wrap" comes in,you will now add a flex-wrap property like this "flex-wrap: wrap;" yes you have&lt;br&gt;
added a flex-wrap property to the div containing the images now check it on the different screen sizes you will see it is automatically arranging the images.&lt;br&gt;
Ok let's see the examples below or click the link below to see the examples in a text editor&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;br&gt;
link: to the text editor&lt;br&gt;
&lt;a href="https://codepen.io/sage101/pen/eYrNyMp"&gt;https://codepen.io/sage101/pen/eYrNyMp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;image:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XxwlkQvz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dkf8b5atmcriv0dvpfh7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XxwlkQvz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dkf8b5atmcriv0dvpfh7.png" alt="Image description" width="800" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;link: this link is the link of one of my site that was built with only flex wrap and no css media queries:&lt;br&gt;
&lt;a href="https://meta-kitties.netlify.app/"&gt;https://meta-kitties.netlify.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Git hub link: &lt;a href="https://github.com/sundaysage"&gt;https://github.com/sundaysage&lt;/a&gt;;&lt;br&gt;
Email: &lt;a href="mailto:semenike60@gmail.com"&gt;semenike60@gmail.com&lt;/a&gt;;&lt;br&gt;
Twitter: &lt;a href="https://twitter.com/sage1040"&gt;https://twitter.com/sage1040&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;br&gt;
flex wrap automatically arrange the contents in the flexed container to avoid overflowing in the site and no matter the size of the screen it automatically arrange the items that the flex was applied on ,and flex-wrap has a different property&lt;br&gt;
and thanks for allowing me to share a little bit of my knowledge with you, I hope you enjoyed the ride&lt;/p&gt;

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