In this guide, you will create website builder a website landing page. It really is a really popular means of building alleged single-page tasks.
You will see a couple of techniques that are awesome
Producing a page Intro
Making use of masks and shadows
Developing a Contact Part
Making Use Of Bing Maps
Making use of the Font Awesome toolkit
Much like the tutorial that is previous at first, we will produce the fundamental framework of y our task.
Start the index.html file in assembling your project folder (the folder in which you have unzipped package that is MDB and paste the next rule below label.
Now we are going to develop a navigation club. Head to Navbar Docs and copy the code for Basic Navbar. Then paste it between starting s tags.
Make sure to spot .container within your navbar to be able to focus backlinks.
We need to make one change that is significant the Navbar rule.
Include the class .fixed-top into the Navbar.
While you would expect, that produces our navbar stay glued to the top of the display screen. It should be visible most of the time, even if you scroll down your page.
Now you have for one thing dazzling. Let us develop a page that is full intro for the splash page.
Paste this rule underneath the navbar and ahead of the closing label:
I would ike to explain the way the rule above works.
.view is really a wrapper for our back ground image, which allows us to put in a mask to it. By way of this mask we could make our image darker or lighter, that will help us to create your content more noticeable.
.mask may be the element with absolute place, that makes it protect our history image. And since it covers the image, we could put it to use being a mask and manipulate the colors.
We have additionally set for the .view element. We will require that in an additional.
You will notice that nothing has changed when you save the file and refresh your browser. Which is because we truly need some CSS rule to really make it work.
Firstly, we will make use of CSS that is separate file our customized designs. Open the file style.css (when you look at the “css” folder) and paste in code below:
We set height: 100% to all or any the parent components of our history image because just by doing so we could protect the screen that is entire the image
We set #intro to an effective path that is URL the image. You can make use of whatever image you desire.
Then, we supply the value address to the background-size home. That produces the image address every one of the available area on the screen.
The CSS prefixes -webkit- , -moz- and -o- make sure our rule works precisely while using the browsers.
Save the file andlet the happen that is magic. When you start your web browser you’ll see a lovely image addressing your intro. There are some things which we’re able to enhance, but we will look after that within the next class.
To be able to change the back ground image you simply need to alter the URL course. You’ll offer a web link into the image in your path or server into the supply file in your task’s files, for example: url(“/img/imageName.png”);
One last tip that is small
You need to use whatever image you would like, but you will find a rules that are few you need to follow.
Your image should be large enough to help keep the product quality but since small as possible so not to increase the page loading time. This is exactly why we recommend you ready your photo the following:
1. Resolution: 1920px / 1280px
2. JPEG extendable
3. The file is compressed (you may use the COMPRES JPG device)