Tips for neat splash pages
I often encountered situations that required some visual presence on the web, like for university or personal projects but also for work.
The concept was always the same:
- a static page to be hosted anywhere
- visually appealing (!)
- mobile friendly
- smooth haptics
- quick setup
First of all what not to do: don’t start from scratch. Usually your time is pretty limited and you might rather want to focus on your actual content than on hassling with your CSS.
Instead, use the tons of good templates online! Just google for the keywords “static page template” or “html template” and you will find more designs than you could ever create.
What I found really useful were the free templates from html5up. I used two themes already.
- Story for Instagreens, a university project
- Dimension for #MilanoGis, an open afterwork meetup I organize
They already come with fantastic, adaptive designs, useful plugins and are mobile-friendly.
In both case above, I tweaked around a lot with the CSS and added more functionality to make it look how I wanted - which might seem little work, but in order to use other fonts that behave differently when resizing or adding interactive elements like d3 charts and maps are quite challenging.
Read the template documentation!
Picking a template is only the start. Read carefully through the docs in order to understand the different elements instead of overcomplicating things with custom sections.
According to statista, more than half of all website traffic worldwide came from mobile devices which means, that there is just no way around an adaptive design.
The templates above have it built-in, but lack convenient swiping actions on touchscreens. However, it’s pretty easy to add in Vanilla JS thanks to this answer on Stackoverflow.
Then just bind the swipe action to certain divs with
I implemented this feature for convenient swiping, as button-clicking is so Desktop-like. So why not have both? Guiding buttons and swiping enabled, just in case.
In the example below, by swiping you jump to a different section with
So swiping right over the div
#why brings you to the section
#about. Try it out!
A background picture (or even a video) is always a nice eyecatcher. For Instagreens I just added them to some sections to keep a nice balance of visually pleasant images and text.
For #MilanoGis, I discovered the amazing tool Worldview Snapshots from NASA enabling you to clip satellite images to your area of interest.
The night images are a fantastic background and interesting to look at.