12 Mar 2016
For more than half a decade - since my freshman year at college, I have spent thinking how cool it would be to have a website of my own and - at long last, I now have one! The plan is to post something interesting on a regular basis.
Now that it’s up, I wish I had done it sooner. We are never happy with ourselves! Aren’t we?
It took two weeks to create the design and code the website. Idea was to create something that is light and minimal. I created few mockups of what I wanted the site to look like:
It was fun coding. I deviated a bit from the wireframes in my pursuit to make the website as responsive as possible.
d3.transition kept the CPU usage of the browser pegged above 50% as two transitions are being applied to multiple polygons simultenously. So the animations are done frame-by-frame manually at a 12 fps speed. This approach dropped the CPU usage below 10%. In the about page, the contact form is actually a google from that submits the data to a hidden iframe.
The prototype was then used to create the theme (views) for Hugo to use. Hugo a static site generator written in Go. It’s an absolute delight to use. Hugo creates html pages from the markdown content using theme and templates. The workflow is something like the following. You will write your all your posts in markdown. Hugo then generates all the pages, does styling of the pages according to the page template, if configured adds pages to the lists, links the tags (if present) and, outputs the whole site in a folder. You would then replace the web server content with it. If you have enabled deploying your web site via git, uploading to server becomes really easy.