Skip to content

ben-ruhlig/DNU_blog

 
 

Repository files navigation

Ben Ruhlig's Personal Webpage

I am a new developer with a background in finance, and my primary focus is on creating beautiful products and improving my skills in data analysis. I adopt a hands-on approach to learning and enhance my capabilities with a part-time Master's in Computer & Information Technology at UPenn.

To kickstart my website, I forked Matt Fantinel's sveltekit-static-blog-template. My goal is not to become a front-end engineer. My goal is not to become a front-end engineer but to understand the front-end language well enough to build good-looking minimum viable products (MVPs). By showcasing my projects on this website, I aim to achieve this objective.

Screenshot


Demo site

You can see the template live on the demo site. Additionally, you can check all components in isolation on Histoire.

Building & Running Locally

To run it locally, you simply have to run:

# First, install dependencies
npm install
# Then, run it on dev mode
npm run dev

The site should now be available at http://localhost:5173/ on your local machine, and your local machine's IP address on your network—great for testing on mobile OSes.

Histoire / Storybook

I've used Histoire, a Vite-based Storybook alternative to be able to see and develop components in isolation. To open it, run npm run story:dev.

Image Optimization

This website uses image-transmutation to automatically optimize images used in the site. This means that even if you use non-optimal image formats (like lossless PNGs), it will go over the images and convert images to WebP and AVIF for you, as long as you use the <Image /> component instead of <img />. This is done on build, so it doesn't change anything when running the website locally.

Managing Posts

All posts are Markdown files that are processed with MDsveX to allow using Svelte components inside them. In order to make it easier to manage posts, I highly recommend the Front Matter VS Code extension, which gives you a nice CMS-like UI.

Hosting

When you run npm run build, the website will be compiled into a static site, which means you can host it pretty much anywhere. Some free alternatives I recommend are GitHub Pages, Vercel and Netlify.

About

A personal portfolio and blog website for Benjamin Ruhlig.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 76.5%
  • TypeScript 10.4%
  • SCSS 10.1%
  • JavaScript 1.7%
  • HTML 1.3%