In this Lab we'll be reproducing an existing design using Bootstrap.
The Significa website is a beautiful example of what can be achieved with some simple styling and a minimalist mindset.
You should aim to get as close to the original design as possible, while using as little custom CSS as possible.
First, let's download Bootstrap from the official website. Select the compiled CSS + JS version, and download the .zip
file. Inside, you'll find some of the compiled Bootstrap files we'll need to develop our Bootstrap-based website.
Copy the css/bootstrap.min.css
file to the folder stater-code/style
, and the js/bootstrap.bundle.js
to the folder stater-code/scripts
.
Inside of the head
tag in our index.html
let's import the following CSS files:
- A CSS reset, to normalize the base stylings between every browser.
- The minified version of Bootstrap's stylesheets,
style/bootstrap.min.css
. - Our custom styles,
styles/index.css
.
Additionally, include the responsive meta tag.
At the bottom of the body
tag in our index.html
, include the following scripts:
- A minified version of jQuery, to provide Bootstrap with some of it's interactive functionalities.
- The minified version of Bootstrap's scripts,
scripts/bootstrap.bundle.js
. - Our custom scripts,
scripts/script.js
.
To start, focus on the general layout of the page. Use semantically appropriate HTML tags to outline the contents of your page, and include Bootstrap components when relevant.
Don't waste time on the minutia at this stage. Your priority should be placing things where they should be.
At this stage, you'll find its particularly useful to use the following Bootstrap classes: container
, row
and col
.
Remember, you are not allowed to use custom CSS at this stage.
It's time to make things look good.
Using Bootstrap utilities, try to approximate your page as much as possible to the original.
Remember, you are not allowed to use custom CSS at this stage.
Now lets make it perfect.
By writing custom CSS in the style/index.css
file, you should make your website look as close as possible to the original. You might want to use a custom font loaded from the Google Fonts website.
Deploy your project to Netlify or GitHub Pages.
Happy Coding! 💙