Latest version of my personal website https://www.hallada.net
Go to file
2020-02-01 19:07:28 -05:00
_data Fix url and images config, add authors file 2017-07-11 15:21:28 -04:00
_includes Switch to https 2017-11-29 18:34:38 -05:00
_layouts More styling tweaks 2020-01-05 19:12:43 -05:00
_posts Make github pages redeploy 2020-02-01 19:07:28 -05:00
.well-known Add keybase proof to new .well-known folder 2017-02-08 16:03:17 -05:00
assets New blog draft 2016-01-06 21:50:51 -05:00
blog Add dark theme with theme switcher 2020-01-05 18:09:53 -05:00
css Styling tweaks 2020-01-05 18:57:45 -05:00
fonts Add icon font for buttons 2015-01-11 16:20:37 -05:00
img New blog post: icosahedrons and hexspheres in rust 2020-02-01 19:06:09 -05:00
js Complete options panel 2015-01-11 15:13:07 -05:00
laundry Double quotes in html tags. No link self-end tags. 2016-04-22 18:46:36 -04:00
magic Show options on desktop 2015-01-13 15:01:33 -05:00
resume Double quotes in html tags. No link self-end tags. 2016-04-22 18:46:36 -04:00
_config.yml Specify post excerpts with comment separator 2018-04-26 23:50:52 -04:00
.gitignore Initial jekyll set-up & homepage 2014-07-11 17:40:46 -04:00
CNAME Create CNAME 2020-01-05 18:42:14 -05:00
favicon.png Add favicon 2014-07-21 12:03:08 -04:00
feed.xml Add SEO tags to all pages 2017-07-11 15:10:00 -04:00
Gemfile Update jekyll conf. New post w/ assets. 2015-06-03 22:38:59 -04:00
index.html Add dark theme with theme switcher 2020-01-05 18:09:53 -05:00
README.md Add dark theme with theme switcher 2020-01-05 18:09:53 -05:00
resume.pdf 2018 resume update 2018-03-23 10:38:11 -04:00

thallada.github.io

This is the latest version of my personal website. It is a static website built with Jekyll.

See it at https://www.hallada.net/.

Build Locally

To run a version of the site in development locally. Checkout this repo and then:

  1. cd thallada.github.io
  2. Install Jekyll
  3. Run bundle install
  4. Run bundle exec jekyll serve
  5. Visit http://localhost:4000 to view the website

Magic

Most of the development work of this website went into creating what I like to call "magic", or the dynamic background to my homepage. A few seconds after loading the page, a branching web of colored tendrils will grow in a random position on the page, followed soon after by other "spells" sprouting in random locations across the background. Clicking on the background will also initiate a starting point for a new spell to appear.

It is meant to represent the imaginative and infinite wonders of programming as described eloquently by Fred Brooks in one of my favorite quotes from him in his book The Mythical Man-Month, which is featured on the page.

A canvas element spans the entire background and my script leverages AnimationFrame to animate the construction of procedurally generated trees of B-splines for a random range of time. I adapted a large portion of the code from Maissian's tutorial on simulating vines, making it more random, colorful, and more CPU efficient.

It was really fun to tweak various variables in the script and see how the animation reacted. It didn't take much tweaking to get the lines to appear like lightning flashing in the distant background, or like cracks splitting the screen, or like growing forest of sprouting trees.

You can play around with these variables yourself on the /magic page which has sliders for tweaking the animations in realtime.

Layout & CSS

I use a grid system devised by Adam Kaplan and with some pieces from Jorden Lev. It is set-up by scratch in my main.css. I decided on this so that I would not have to load a huge framework like Bootstrap since I would only be using the grid system out of it.

As an introduction to this system:

Wrap everything in a div element with the container class.

<div class="container"></div>

To create rows add div elements with the row and clearfix classes.

<div class="container">
    <div class="row clearfix"></div>
</div>

To create columns add div elements with the column class. Then add a class to describe the width of the column with respect to the container. The possible widths are:

CSS class name width percentage
full 100%
two-thirds 66.7%
half 50%
third 33.3%
fourth 25%
three-fourths 75%

These are purely for convienence. A more precise width can be specified in the CSS if desired with the width attribute.

<div class="container">
    <div class="row clearfix">
        <div class="column full"></div>
    </div>
</div>

Columns stack up right to left. To force a column out of order all the way to the right use the flow-opposite class on the column (but remain first on smaller screens).

<div class="container">
    <div class="row clearfix">
        <div class="column half"></div>
        <div class="column half flow-opposite"></div>
    </div>
</div>

To hide an element on mobile phones add the class hide-mobile. To hide on desktop, use hide-desktop instead.

<div class="container">
    <div class="row clearfix">
        <div class="column half hide-mobile"></div>
        <div class="column half hide-desktop"></div>
    </div>
</div>

I had an issue with displaying elements on desktop that had the class "hide-mobile", so you can add the following classes to make sure they redisplay in the right display type correctly:

  • hide-mobile-block
  • hide-mobile-inline-block
  • hide-mobile-inline
  • hide-deskop-block
  • hide-desktop-inline-block
  • hide-desktop-inline

I could add more for each display property, but I'm trying to find a better way of fixing this without adding these second classes.

Another note: I use box-sizing (as suggested by Paul Irish), which I think makes dealing with sizing elements a lot more sane.

Light & Dark Themes

In 2020, I created a dark theme for the website. The dark theme is used if it detects that the user's OS is set to prefer a dark theme using the prefers-color-scheme @media query.

To allow the user to select a theme separate from their OS's theme, I have also included a switch that can toggle between the two themes.

Attributions

Book designed by Nherwin Ardoña from the Noun Project.

Profile designed by Ryan Beck from the Noun Project.

Photos designed by Ryan Beck from the Noun Project.