Skip to content

Commit

Permalink
feat: added lighthouse report to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecarr committed Jan 2, 2023
1 parent 6c92606 commit 7f8be1c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
9 changes: 9 additions & 0 deletions templates/about-me.stpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<section id="about-me">
<h2>about me</h2>
<blockquote>
<p><strong>Hi there! &#128075;</strong></p>
<p>I&apos;m a <%= age %> y/o from the UK, currently working as a <strong>Software Developer</strong> at <strong>Sitel Group</strong>.</p>
<p>As far as open source projects go, I enjoy working on anything and everything related to <strong>education &#127979;</strong>, <strong>privacy &#128064;</strong>, and <strong>data analysis/engineering &#128451;</strong>.</p>
<p>I currently spend most of time in <strong>Rust</strong> and <strong>TypeScript</strong>, and I take pride in writing code that&apos;s <strong>lightweight &#127811;</strong> and <strong>performant &#128170;</strong>!</p>
</blockquote>
</section>
21 changes: 2 additions & 19 deletions templates/index.stpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,8 @@
<% include!("./head.stpl"); %>
<body>
<% include!("./header.stpl"); %>
<section id="about-me">
<h2>about me</h2>
<blockquote>
<p><strong>Hi there! &#128075;</strong></p>
<p>I&apos;m a <%= age %> y/o from the UK, currently working as a <strong>Software Developer</strong> at <strong>Sitel Group</strong>.</p>
<p>As far as open source projects go, I enjoy working on anything and everything related to <strong>education &#127979;</strong>, <strong>privacy &#128064;</strong>, and <strong>data analysis/engineering &#128451;</strong>.</p>
<p>I currently spend most of time in <strong>Rust</strong> and <strong>TypeScript</strong>, and I take pride in writing code that&apos;s <strong>lightweight &#127811;</strong> and <strong>performant &#128170;</strong>!</p>
</blockquote>
</section>
<section id="about-the-site">
<h2>about this site</h2>
<blockquote>
<p>This site is built using a <strong>custom static site generator</strong> made with <strong>Rust</strong><a href="#site-ref-1"><sup>[1]</sup></a>.</p>
<p>It has <strong>no CSS or JavaScript</strong> and each page weighs in at a <strong>few kilobytes</strong>.</p>
<p>The site is hosted on Cloudflare Pages, using GitHub Actions to automate building and deployment when a new tag is pushed.</p>
<hr>
<p id="site-ref-1"><sup>[1]</sup> <a href="https://github.com/rust-sailfish/sailfish" target="_blank" rel="noopener">Sailfish</a> is used for templating. The entire generator codebase comes in at &lt;100 LOC.</p>
</blockquote>
</section>
<% include!("./about-me.stpl"); %>
<% include!("./site-details.stpl"); %>
<% include!("./footer.stpl"); %>
</body>
</html>
4 changes: 2 additions & 2 deletions templates/nav.stpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav id="nav">
<a href="/">home</a>
<a href="/links">links</a>
<a href="index.html">home</a>
<a href="links.html">links</a>
</nav>
12 changes: 12 additions & 0 deletions templates/site-details.stpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<section id="about-the-site">
<h2>about this site</h2>
<blockquote>
<p>The site is built using a <strong>custom static site generator</strong> made with <strong>Rust</strong><a href="#site-ref-1"><sup>[1]</sup></a>.</p>
<p>It has <strong>no CSS or JavaScript</strong> and each page weighs in at a <strong>few kilobytes</strong>.</p>
<p>The site is hosted on Cloudflare Pages, using GitHub Actions to automate building and deployment when a new tag is pushed.</p>
<p>The site has a perfect <strong>Google Lighthouse</strong><a href="#site-ref-2"><sup>[2]</sup></a> rating for both desktop and mobile devices, ensuring that it's both performant and accessible.</p>
<hr>
<p id="site-ref-1"><sup>[1]</sup> <a href="https://github.com/rust-sailfish/sailfish" target="_blank" rel="noopener">Sailfish</a> is used for templating. The entire generator codebase comes in at &lt;100 LOC.</p>
<p id="site-ref-2"><sup>[2]</sup> <a href="https://github.com/GoogleChrome/lighthouse" target="_blank" rel="noopener">Lighthouse</a> is a tool maintained by Google that analyzes web apps to evaluate best practices, performance, and accessibility.</p>
</blockquote>
</section>

0 comments on commit 7f8be1c

Please sign in to comment.