mdbootstrap4-pro
Version:
MDBootstrap 4 PRO
54 lines (33 loc) • 5.87 kB
HTML
<!--Section: Tutorial content-->
<section>
<p class="h5">Step 1</p>
<p>If you haven't downloaded MDB package yet, go to <a href="https://mdbootstrap.com/getting-started/"><strong>Getting Started</strong></a> page and download it now.</p>
<p class="h5 mt-4">Step 2</p>
<p>Unzip downloaded package and open <strong>index.html</strong> file using your favorite text editor</p>
<p>PS: Many people ask us what program do we recommend to write code. Well, it doesn't matter that much, but personally,
we love <a href="https://code.visualstudio.com/">Visual Studio Code</a> and <a href="https://www.sublimetext.com/3">Sublime Text</a> :)</p>
<img class="mb-3" src="https://mdbootstrap.com/wp-content/themes/mdbootstrap4/Tutorials/bootstrap/_img/quick-start/extract.gif"
alt="">
<p>You should see the following code:</p>
<pre class="code-toolbar"><code class="language-markup">
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Material Design Bootstrap</title> <!-- Font Awesome --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css"> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- Material Design Bootstrap --> <link href="css/mdb.min.css" rel="stylesheet"> <!-- Your custom styles (optional) --> <link href="css/style.css" rel="stylesheet"> </head> <body> <!-- Start your project here--> <div style="height: 100vh"> <div class="flex-center flex-column"> <h1 class="animated fadeIn mb-2">Material Design for Bootstrap</h1> <h5 class="animated fadeIn mb-1">Thank you for using our product. We're glad you're with us.</h5> <p class="animated fadeIn text-muted">MDB Team</p> </div> </div> <!-- /Start your project here--> <!-- SCRIPTS --> <!-- JQuery --> <script type="text/javascript" src="js/jquery-3.1.1.min.js"></script> <!-- Bootstrap tooltips --> <script type="text/javascript" src="js/tether.min.js"></script> <!-- Bootstrap core JavaScript --> <script type="text/javascript" src="js/bootstrap.min.js"></script> <!-- MDB core JavaScript --> <script type="text/javascript" src="js/mdb.min.js"></script> </body> </html>
</code></pre>
<p>All necessary files are already linked, so everything is ready to start. If you read comments carefully, you will easily
figure our what is the responsibility of all imported files.</p>
<p>Let's add the first MDB component to our index.html file.</p>
<p class="h5 mt-4">Step 3</p>
<p>Between the comments <code><!--Start your project here--></code> you will find a sample code. Remove it.
</p>
<p class="h5 mt-4">Step 4</p>
<p>Copy and paste the following code just below <code><body></code> tag, between the comments <code><!--Start your project here--></code></p>
<pre class="code-toolbar"><code class="language-markup">
<!--Card--> <div class="card m-5" style="width: 22rem;"> <!--Card image--> <div class="view overlay hm-white-slight"> <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20%287%29.jpg" class="img-fluid" alt=""> <a href="#"> <div class="mask"></div> </a> </div> <!--Card content--> <div class="card-body"> <!--Title--> <h4 class="card-title">Card title</h4> <!--Text--> <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> <a href="#" class="btn btn-primary">Button</a> </div> </div> <!--/.Card-->
</code></pre>
<p class="h5 mt-4">Step 5</p>
<p>Save the file and open it in you browser. You will see a gorgeus, responsive and interactive card.</p>
<p class="h5 mt-4">Step 6</p>
<p>Explore our documentation (menu on the left). Choose components you like, copy it to your project and compose your website.
And yes, it's that simple!</p>
<img src="https://mdbootstrap.com/wp-content/themes/mdbootstrap4/Tutorials/bootstrap/_img/quick-start/copy-paste.gif" class="img-fluid">
</section>
<!--Section: Tutorial content-->