Your very first page
Your page
Let’s create your very own home/about/cv page.
There is a great starter kit from StartBoostrap here:
https://github.com/startbootstrap/startbootstrap-resume
You will need to download this file (or clone the repository locally if you already have git installed)
https://github.com/StartBootstrap/startbootstrap-resume/archive/refs/heads/master.zip
There is a lot of code included, but the only items we need for this tutorial are inside the dist folder.
Responsive Web
Back in 2010 browsing websites using phones and tablets started to be popular, so Responsive Web Design was born to as a need to have the same website displayed consistently for different screen sizes and orientations, instead of having different versions for different screen sizes (as a mobile.* domain/website)
Bootstrap is a popular framework that simplifies that, and you might probably have seen that style and icons around. Let’s open the live demo (below) and see what happens if you resize the browser size/orientation and/or if you open that site with a phone/tablet. Click the different menu/options of that page as well.
https://startbootstrap.github.io/startbootstrap-resume/
Having all information avaiable without needing to open a new page is what is known as Single Page Application (or similar). In this case there is only one file to use: index.html.
Bootstrap works this way: there is a navigation/menu area that uses the href attribute to display, inside the same page, a section of information like “skills”, “education” etc. Look for the “href=#*” attributes:
1 |
|
Then if you scroll down inside index.html there are sections with matching id, like this for interests:
1 |
|
Try to update that and other areas with your information.
You may also completely remove sections that don’t apply to your profile or page.
If you want to create a new section menu follow that pattern of adding a menu option with code like this
1 |
|
Galleries
You can customize it even more by adding extra items like a gallery to your page.
As an example, a good extension for galleries is this one:
https://mdbootstrap.com/docs/standard/extended/gallery/
To use it you need to add this to the header, before the styles.css section:
1 |
|
Then add this at the end of the document, before the scripts.js section
1 |
|
Then create a menu pointing to a gallery and a section for it
1 |
|
Style
The hacker way to customize the page colors is to update the style.css file inside dist. For instance, the orange color can be updated to turquoise with the following change in the dist/style.css file:
before:
1 |
|
after:
1 |
|
A more elegant way to update it is to use the original source files
For that we need to update the files and settings inside the scss folder then regenerate the dist folder with NodeJS.
That requires to install NodeJS and using Visual Studio Code or similar.
If you want to try that then you will need to change the scss/variables/_colors.scss with any desired color. You can browse the following site for palettes/color inspiration:
https://coolors.co/palettes/trending
This is what’s inside the file /src/scss/variables/_colors.scss. That is then compiled o transformed into common CSS/style in the dist folder
1 |
|
To run that process you will need to run the following commands:
- npm i (only once)
- node scripts/build-scss.js (every time you make a color/style change)
Hosting
Once you are done updating your very own page, you can start thinking about hosting options.
There are couple free alternatives that are oriented to developers and others options more oriented to general public, couple of the latest options also give you a @domain email account. Will not cover that here as the list is long and sadly “it depends” might be the answer to which one to choose.
However, if you are in New Zealand, one local business you can support is moreweb, from Oamaru (south island)
I host one .nz domain and a email box there, great service/pricing (honest review, no sponsored link nor anything like that)
https://moreweb.nz/
Recap
At the end of this tutorial you may know how to create a simple responsive page, how to edit different types of contents, how to change a bit the style and how to add extra items like a gallery.
While there are couple tools/services that can do the same with fancy graphic interfaces at the end of the day both generate more or less the same type of archives, so is always best to understand a bit the language of what’s behind that magic, as sometimes you may need to change or fix particular website details.
So congratulations on getting this far, I hope that this approach from general into details may be helpful and fun for you.