<?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: Leandro Barbosa</title>
    <description>The latest articles on DEV Community by Leandro Barbosa (@leandrobarbosafr).</description>
    <link>https://dev.to/leandrobarbosafr</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%2F1002669%2Fcacd24c9-58a7-432a-81d7-54c588d4fbd0.png</url>
      <title>DEV Community: Leandro Barbosa</title>
      <link>https://dev.to/leandrobarbosafr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leandrobarbosafr"/>
    <language>en</language>
    <item>
      <title>NEXT JS x SANITY.IO</title>
      <dc:creator>Leandro Barbosa</dc:creator>
      <pubDate>Wed, 02 Oct 2024 08:05:06 +0000</pubDate>
      <link>https://dev.to/leandrobarbosafr/next-js-x-sanityio-523k</link>
      <guid>https://dev.to/leandrobarbosafr/next-js-x-sanityio-523k</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Building Dynamic Websites with Next.js and Sanity.io: A Perfect Match for Modern Development&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;When it comes to creating fast, scalable, and dynamic websites, two technologies stand out: Next.js and Sanity.io. Pairing these two powerful tools can take your web development to the next level. Let’s dive into why this combo is so effective and how it can streamline your projects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Next.js?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Next.js, powered by React, is a versatile framework that allows you to build dynamic applications with server-side rendering (SSR) and static site generation (SSG). It's hybrid nature means that it offers the best of both worlds: dynamic pages for personalised content and static pages for faster load times.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key Features:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SSG and SSR: Deliver both static and dynamic content seamlessly.&lt;br&gt;
API Routes: Build full-stack applications by creating REST or GraphQL APIs directly within your project.&lt;br&gt;
Automatic Image Optimisation: Handle image resizing, format conversion, and performance enhancements out-of-the-box.&lt;br&gt;
Vercel Integration: Perfectly optimised for deployment on Vercel for speed and scalability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Sanity.io?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sanity.io is a headless CMS designed for flexibility and customisation. It allows developers to define custom content schemas and use real-time collaboration features to manage content more effectively. Sanity’s GROQ query language and its live preview features are a perfect match for the fast-paced development environment offered by Next.js.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key Features:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Real-Time Content Updates: Sanity.io enables editors to see changes instantly, and combined with Next.js' hot-reloading, it results in a seamless content editing experience.&lt;br&gt;
Custom Content Types: Tailor your content model exactly to your project’s needs with Sanity’s schema builder.&lt;br&gt;
Scalability: Whether it’s a small portfolio or a large-scale e-commerce platform, Sanity can handle your content needs.&lt;br&gt;
GROQ: A flexible query language that allows you to retrieve only the content you need—optimising performance and reducing API calls.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Use Them Together?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Speed and Performance: With Next.js’ static site generation and Sanity’s real-time updates, your site will not only load quickly but will also reflect changes instantly.&lt;br&gt;
Flexibility: Sanity.io’s highly customisable structure allows you to create complex content models, while Next.js handles how this content is delivered, either statically or dynamically.&lt;br&gt;
Developer Experience: Both tools provide excellent developer experiences—Next.js with its powerful framework and Sanity.io with its easy-to-use CMS interface.&lt;br&gt;
Scalability and Security: Both Next.js and Sanity.io are built to scale, and Sanity.io's secure APIs ensure your data is safe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcjpnfj23usqnkomrm7pi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcjpnfj23usqnkomrm7pi.jpg" alt="Image description" width="800" height="1329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5lb8uj823wwar2f81lks.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5lb8uj823wwar2f81lks.jpg" alt="Image description" width="800" height="1348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.sanity.io/" rel="noopener noreferrer"&gt;Sanity.io&lt;/a&gt; &lt;a href="https://nextjs.org/" rel="noopener noreferrer"&gt;Next.js&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>sanity</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Let's talk JS 🤪</title>
      <dc:creator>Leandro Barbosa</dc:creator>
      <pubDate>Fri, 06 Jan 2023 10:37:02 +0000</pubDate>
      <link>https://dev.to/leandrobarbosafr/lets-talk-js-1ad8</link>
      <guid>https://dev.to/leandrobarbosafr/lets-talk-js-1ad8</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe8gwrn455swfkyg8y95g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe8gwrn455swfkyg8y95g.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxor0yprnv8ucuf7rza93.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxor0yprnv8ucuf7rza93.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc5gpjh5zozqoe8tfcb6p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc5gpjh5zozqoe8tfcb6p.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F160ofpa1o7ji727r2suh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F160ofpa1o7ji727r2suh.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhg82tb5o7wtkj45248g5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhg82tb5o7wtkj45248g5.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkf4yaeds1xhujrwiajx3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkf4yaeds1xhujrwiajx3.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyzerdf73smd461dcloah.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyzerdf73smd461dcloah.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx9c29u85jhermlvysscr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx9c29u85jhermlvysscr.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fber0dl5hawktc9uv1h0y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fber0dl5hawktc9uv1h0y.png" alt="JS" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Let's talk about Types in javascript</title>
      <dc:creator>Leandro Barbosa</dc:creator>
      <pubDate>Fri, 06 Jan 2023 09:59:53 +0000</pubDate>
      <link>https://dev.to/leandrobarbosafr/lets-talk-about-types-in-javascript-5dcb</link>
      <guid>https://dev.to/leandrobarbosafr/lets-talk-about-types-in-javascript-5dcb</guid>
      <description>&lt;p&gt;In JavaScript, there are several types of data that you can work with in your code. Here is a list of the basic data types in JavaScript:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Number:&lt;/em&gt;&lt;/strong&gt; Numbers can be integers (e.g., 42) or floating-point values (e.g., 3.14). In JavaScript, all numbers are represented as double-precision floating-point values.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;String:&lt;/strong&gt;&lt;/em&gt; A string is a sequence of characters, represented in JavaScript by either single or double quotes (e.g., 'Hello, world!' or "Hello, world!").&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Boolean:&lt;/em&gt;&lt;/strong&gt; A boolean value represents a true or false value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;null:&lt;/em&gt;&lt;/strong&gt; The null value represents the absence of a value or a null reference.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;undefined:&lt;/em&gt;&lt;/strong&gt; The undefined value represents a value that has not been assigned a value.&lt;/p&gt;

&lt;p&gt;In addition to these basic data types, JavaScript also has several composite data types, which are data structures that can hold multiple values. These composite data types include:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Array:&lt;/em&gt;&lt;/strong&gt; An array is a collection of values that are all of the same data type. Arrays are created using square brackets (e.g., [1, 2, 3]).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Object:&lt;/em&gt;&lt;/strong&gt; An object is a collection of key-value pairs. Objects are created using curly braces (e.g., {name: 'John', age: 30}).&lt;/p&gt;

&lt;p&gt;instagram @leandrobarbosa_____&lt;/p&gt;

</description>
      <category>jokes</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>Google Logo</title>
      <dc:creator>Leandro Barbosa</dc:creator>
      <pubDate>Thu, 05 Jan 2023 22:42:02 +0000</pubDate>
      <link>https://dev.to/leandrobarbosafr/google-logo-3kd1</link>
      <guid>https://dev.to/leandrobarbosafr/google-logo-3kd1</guid>
      <description>&lt;p&gt;here is my version of google logo with only css&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffo9rtxunzci9btjjp7jh.png" alt="The only div html" width="800" height="422"&gt;
&lt;/h2&gt;

&lt;p&gt;and here is the css code &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frykh9g02kp0gxdgbklet.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frykh9g02kp0gxdgbklet.png" alt="start with the body" width="512" height="380"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;and here our google-logo class&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frqirq9ep5nvpalwj7q5f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frqirq9ep5nvpalwj7q5f.png" alt="Ithe circle with differents colors" width="715" height="526"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;here we gonna create the retangle to do the G using the :before &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frlw4k0ysnl8n7jxuqswb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frlw4k0ysnl8n7jxuqswb.png" alt="Retangle" width="555" height="410"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;and finally the triangle to be able to do the same shape as a google logo, with :after&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzo82ua1rk7q55wxl1i3k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzo82ua1rk7q55wxl1i3k.png" alt="triangle" width="758" height="610"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;----------------------THE FINAL RESULTS-----------------------&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxp32k1yq7zm9t810ybjl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxp32k1yq7zm9t810ybjl.png" alt="google-logo" width="800" height="709"&gt;&lt;/a&gt;&lt;/p&gt;




</description>
      <category>css</category>
      <category>googlecloud</category>
      <category>javascript</category>
      <category>html</category>
    </item>
  </channel>
</rss>
