<?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: Pierre Bresson</title>
    <description>The latest articles on DEV Community by Pierre Bresson (@pierrebresson).</description>
    <link>https://dev.to/pierrebresson</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%2F719750%2F82055b58-8be1-4045-807e-f88d2881ba27.jpeg</url>
      <title>DEV Community: Pierre Bresson</title>
      <link>https://dev.to/pierrebresson</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pierrebresson"/>
    <language>en</language>
    <item>
      <title>Building a 11ty website in a weekend</title>
      <dc:creator>Pierre Bresson</dc:creator>
      <pubDate>Thu, 17 Nov 2022 12:18:49 +0000</pubDate>
      <link>https://dev.to/pierrebresson/building-a-11ty-website-in-a-weekend-4k3a</link>
      <guid>https://dev.to/pierrebresson/building-a-11ty-website-in-a-weekend-4k3a</guid>
      <description>&lt;p&gt;Until now, my personal website was using a Gatsby with a beautiful template named &lt;a href="https://github.com/alxshelepenok/gatsby-starter-lumen"&gt;Lumen&lt;/a&gt;. Since I don't want to re-write my website every year to follow the latest trend in React world and since I couldn't change much without learning the framework, I've decided to switch to something else. Many &lt;a href="https://jamstack.org/generators/"&gt;static site generators&lt;/a&gt; needs several days or weeks to be mastered, so I went for the simpler solution to be able to build the first version of my website in a weekend: &lt;a href="https://www.11ty.dev/"&gt;11ty&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I chose Eleventy, because it's crazy easy, low effort and lightweight. I recommend &lt;a href="https://dev.to/psypher1/lets-learn-eleventy-1a67"&gt;this great tutorial&lt;/a&gt; if you are new to Eleventy which help me to build the first version of my new website so quickly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Styling
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--__iW9NO2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e2vn5859jxdmtcg8j75h.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--__iW9NO2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e2vn5859jxdmtcg8j75h.jpeg" alt="css is crap" width="500" height="423"&gt;&lt;/a&gt;&lt;br&gt;
In my opinion, CSS sucks. Fortunately, Tailwind is here to the rescue and allowed me to build something beautiful, very quickly. Tailwind is so easy to use that I did not even felt the need to prototype anything in Figma. Bonus, the framework is even styling articles for you if you render it inside a &lt;code&gt;&amp;lt;article&amp;gt;&amp;lt;/article&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built for speed ⚡️
&lt;/h2&gt;

&lt;p&gt;I built the website with the requirement to get a perfect lighthouse score and following some &lt;a href="https://github.com/NMF-earth/low-impact-website-checklist"&gt;low-impact website guidelines&lt;/a&gt;. I still need to optimize the &lt;code&gt;pictures&lt;/code&gt; section, but for the rest I managed to get a score of 100. In this first version, I used &lt;code&gt;font-sans&lt;/code&gt; that use OS font and avoid downloading any font.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5QvoCnEu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jcn0tvc6h506qnfo3txl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5QvoCnEu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jcn0tvc6h506qnfo3txl.png" alt="light house score" width="635" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Alpine.js
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://alpinejs.dev/"&gt;Alpine&lt;/a&gt; is a lightweight library that helped me to build the menu for mobile screen. I use the attribute &lt;code&gt;x-bind&lt;/code&gt; for hiding/showing the hamburger menu. Very easy, I recommend it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hosting
&lt;/h2&gt;

&lt;p&gt;I tried to make host my 11ty website on Github page and followed several tutorials, but nothing worked for me, so I end-up hosting it on Netlify.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limitations 🫣
&lt;/h2&gt;

&lt;p&gt;It's really nice to be able to create some kind of reusable components like &lt;code&gt;badge&lt;/code&gt; in &lt;code&gt;src/_includes/shortcodes&lt;/code&gt;, but I also got some issues with templating and extending elements, and that's why I have similar templates with duplicate code inside &lt;code&gt;_layouts&lt;/code&gt; (base, baseWithMenu, baseWithoutFooter) since I could not use extends as I wanted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next steps
&lt;/h2&gt;

&lt;p&gt;I couldn't code everything in a weekend, so I've decided in to postpone some features for later, such as improved SEO and social images, internalization and Netlify CMS integration. Pull requests are welcome 👋&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;If you want to create a small lightweight website, easy to maintain and build, I highly recommend &lt;a href="https://www.11ty.dev"&gt;11ty&lt;/a&gt; with the combination of &lt;a href="https://tailwindcss.com/"&gt;Tailwind&lt;/a&gt; and &lt;a href="https://alpinejs.dev/"&gt;Alpine.js&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You view the result on &lt;a href="https://pierre.bresson.io/"&gt;pierre.bresson.io&lt;/a&gt; and check the code on &lt;a href="https://github.com/PierreBresson/pierre.bresson.io"&gt;Github&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XfJENoQk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oxpdwcr73tukdoohstp6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XfJENoQk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oxpdwcr73tukdoohstp6.png" alt="preview" width="880" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>11ty</category>
      <category>opensource</category>
      <category>tailwindcss</category>
    </item>
    <item>
      <title>Hacktoberfest 2021 - Carbon Diary &amp; Sustainable Guide</title>
      <dc:creator>Pierre Bresson</dc:creator>
      <pubDate>Tue, 05 Oct 2021 15:06:20 +0000</pubDate>
      <link>https://dev.to/pierrebresson/hacktoberfest-2021-nmf-earth-lb9</link>
      <guid>https://dev.to/pierrebresson/hacktoberfest-2021-nmf-earth-lb9</guid>
      <description>&lt;p&gt;Do you want to contribute to a beautiful &lt;strong&gt;React Native&lt;/strong&gt; app for hacktoberfest 2021? Search no more, help the fight against climate change right now.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is NMF.earth? 🌍
&lt;/h3&gt;

&lt;p&gt;It's an app to &lt;strong&gt;understand&lt;/strong&gt; and &lt;strong&gt;reduce&lt;/strong&gt; your &lt;strong&gt;carbon footprint&lt;/strong&gt;. Free and open-source, available in 10 languages for both &lt;a href="https://apps.apple.com/us/app/nmf-earth/id1494561829"&gt;iOS&lt;/a&gt; and &lt;a href="https://play.google.com/store/apps/details?id=nmf.earth"&gt;Android&lt;/a&gt;, it's built with Expo, Redux Toolkit and Typescript. You can see the design on &lt;a href="https://www.figma.com/community/file/967052407514062912"&gt;Figma community&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The app in numbers :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;758 commits&lt;/li&gt;
&lt;li&gt;331 &lt;a href="https://github.com/NMF-earth/nmf-app/runs/3752258911?check_suite_focus=true"&gt;tests&lt;/a&gt;, 126 snapshots&lt;/li&gt;
&lt;li&gt;248 stars ⭐️&lt;/li&gt;
&lt;li&gt;33 amazing contributors 🧑‍💻&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/NMF-earth/nmf-app/releases"&gt;8 major versions&lt;/a&gt; since the &lt;a href="https://github.com/NMF-earth/nmf-app/releases/tag/v0.1.0"&gt;first one&lt;/a&gt; in April 2020&lt;/li&gt;
&lt;li&gt;0 crash in prod&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What's in for me? 🎁
&lt;/h3&gt;

&lt;p&gt;In addition to digital ocean gift, I've tagged some issues like this &lt;a href="https://github.com/NMF-earth/nmf-app/issues/319"&gt;one&lt;/a&gt; with a &lt;em&gt;Stickers&lt;/em&gt; tag. If you complete any of these issues, you will receive a set of 3 gorgeous stickers made by &lt;a href="https://jenny-lelong.com/"&gt;Jenny Lelong&lt;/a&gt;. Usually you can buy them &lt;a href="https://ko-fi.com/s/6f2a17f053"&gt;here&lt;/a&gt;, but this time it's on me, from my own pocket, including the delivery.&lt;br&gt;
Note: If you have been working on a large task without the stickers tag, feel free to ask me for some free stickers ;)&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the goal of this hacktoberfest?
&lt;/h3&gt;

&lt;p&gt;I would love to finish the &lt;a href="https://github.com/NMF-earth/nmf-app/issues/269"&gt;eco-score&lt;/a&gt; feature (scan a bar code from a product to get its carbon footprint) and also complete the &lt;a href="https://github.com/NMF-earth/nmf-app/issues/254"&gt;recurring emissions&lt;/a&gt; feature.&lt;br&gt;
Beside these two big features, there is also some smaller tasks like the language change &lt;a href="https://github.com/NMF-earth/nmf-app/issues/249"&gt;mechanism&lt;/a&gt;, &lt;a href="https://github.com/NMF-earth/nmf-app/issues/325"&gt;FAQ&lt;/a&gt; screen and some other tiny &lt;a href="https://github.com/NMF-earth/nmf-app/labels/hacktoberfest"&gt;issues&lt;/a&gt; in the backlog.&lt;/p&gt;

&lt;h3&gt;
  
  
  Contributions
&lt;/h3&gt;

&lt;p&gt;Except if you already have merged some good code in this repo, I won’t assign any issue due to spam and beginners unable to complete a PR without a lot of help from my side - I do this app on my free time. &lt;br&gt;
However, feel free to leave a comment if you are working on an issue.&lt;/p&gt;

&lt;p&gt;Happy hacking ✌️&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/NMF-earth/nmf-app"&gt;Github&lt;/a&gt; - &lt;a href="https://nmf.earth/"&gt;Website&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
      <category>reactnative</category>
      <category>climatechange</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
