Creating An ASP.NET MVC 5 Site Using Bootstrap Custom Templates

Recently, I have struggled with a problem of how I would use custom free templates in my ASP.NET MVC project rather than using default ones. Here are the steps in making a beautiful bootstrap site using ASP.NET MVC 5.

  1. Download a free template or you can buy a premium template if you want. For our example, we will be using the free Freelancer template. After downloading, you should get the following files:

    files

  2. Open Visual Studio 2013 and create an ASP.NET Web Application.

    Application

    In configuring, the application must be MVC.

    I included Web API because I used them a lot in my application.

    The last part is very important, because it’s very hard to add an authentication module once the project has been created, trust me, based on experience.

    mvc

  3. Once the project has been created, the next thing that we should do is to copy the files from our downloaded template to our project. Make sure to overwrite any directories of the same name.

    project

  4. Open the BundleConfig.cs file in the App_Start directory and comment all contents in theRegisterBundles method as shown in the image below:

    configure

  5. Now we will modify the Views. In modifying the Views, all you need to do is to open the Index.html file included in the template and copy it to the corresponding Views.

    The first View that will modify is the _Layout.cshtml, which is located in the Views\Sharedfolder. Delete all the content and replace it with the code below.
    1. <!DOCTYPE html>  
    2. <html>  
    3.   
    4. <head>  
    5.     <meta charset="utf-8">  
    6.     <meta http-equiv="X-UA-Compatible" content="IE=edge">  
    7.     <meta name="viewport" content="width=device-width, initial-scale=1">  
    8.     <meta name="description" content="">  
    9.     <meta name="author" content="">  
    10.   
    11.     <!-- Bootstrap Core CSS -->  
    12.     <link href="/css/bootstrap.min.css" rel="stylesheet">  
    13.     <!-- Custom CSS -->  
    14.     <link href="~/css/freelancer.css" rel="stylesheet">  
    15.     <!-- Custom Fonts -->  
    16.     <link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">  
    17.     <link href="http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">  
    18.     <link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">  
    19.   
    20.     <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>  
    21.     <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>  
    22.     <![endif]-->  
    23. </head>  
    24.   
    25. <body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">  
    26. @RenderBody()  
    27. </body>  
    28. </html>  
  6. Next, is to modify the Index.cshtml, which is located in Views\Home. Delete all the content and replace it with the code below.
    1. <!DOCTYPE html>  
    2. <html lang="en">  
    3.   
    4. <head>  
    5.   
    6.     <meta charset="utf-8">  
    7.     <meta http-equiv="X-UA-Compatible" content="IE=edge">  
    8.     <meta name="viewport" content="width=device-width, initial-scale=1">  
    9.     <meta name="description" content="">  
    10.     <meta name="author" content="">  
    11.   
    12.     <title>Freelancer - Start Bootstrap Theme</title>  
    13.   
    14.     <!-- Bootstrap Core CSS - Uses Bootswatch Flatly Theme: http://bootswatch.com/flatly/ -->  
    15.     <link href="css/bootstrap.min.css" rel="stylesheet">  
    16.   
    17.     <!-- Custom CSS -->  
    18.     <link href="css/freelancer.css" rel="stylesheet">  
    19.   
    20.     <!-- Custom Fonts -->  
    21.     <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">  
    22.     <link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">  
    23.     <link href="http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">  
    24.   
    25.     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->  
    26.     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->  
    27.     <!--[if lt IE 9]>  
    28. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>  
    29. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>  
    30. <![endif]-->  
    31.   
    32. </head>  
    33.   
    34. <body id="page-top" class="index">  
    35.   
    36.     <!-- Navigation -->  
    37.     <nav class="navbar navbar-default navbar-fixed-top">  
    38.         <div class="container">  
    39.             <!-- Brand and toggle get grouped for better mobile display -->  
    40.             <div class="navbar-header page-scroll">  
    41.                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">  
    42. <span class="sr-only">Toggle navigation</span>  
    43. <span class="icon-bar"></span>  
    44. <span class="icon-bar"></span>  
    45. <span class="icon-bar"></span>  
    46. </button>  
    47.                 <a class="navbar-brand" href="#page-top">Start Bootstrap</a>  
    48.             </div>  
    49.   
    50.             <!-- Collect the nav links, forms, and other content for toggling -->  
    51.             <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">  
    52.                 <ul class="nav navbar-nav navbar-right">  
    53.                     <li class="hidden">  
    54.                         <a href="#page-top"></a>  
    55.                     </li>  
    56.                     <li class="page-scroll">  
    57.                         <a href="#portfolio">Portfolio</a>  
    58.                     </li>  
    59.                     <li class="page-scroll">  
    60.                         <a href="#about">About</a>  
    61.                     </li>  
    62.                     <li class="page-scroll">  
    63.                         <a href="#contact">Contact</a>  
    64.                     </li>  
    65.                 </ul>  
    66.             </div>  
    67.             <!-- /.navbar-collapse -->  
    68.         </div>  
    69.         <!-- /.container-fluid -->  
    70.     </nav>  
    71.   
    72.     <!-- Header -->  
    73.     <header>  
    74.         <div class="container">  
    75.             <div class="row">  
    76.                 <div class="col-lg-12">  
    77.                     <img class="img-responsive" src="img/profile.png" alt="">  
    78.                     <div class="intro-text">  
    79.                         <span class="name">Start Bootstrap</span>  
    80.                         <hr class="star-light">  
    81.                         <span class="skills">Web Developer - Graphic Artist - User Experience Designer</span>  
    82.                     </div>  
    83.                 </div>  
    84.             </div>  
    85.         </div>  
    86.     </header>  
    87.   
    88.     <!-- Portfolio Grid Section -->  
    89.     <section id="portfolio">  
    90.         <div class="container">  
    91.             <div class="row">  
    92.                 <div class="col-lg-12 text-center">  
    93.                     <h2>Portfolio</h2>  
    94.                     <hr class="star-primary">  
    95.                 </div>  
    96.             </div>  
    97.             <div class="row">  
    98.                 <div class="col-sm-4 portfolio-item">  
    99.                     <a href="#portfolioModal1" class="portfolio-link" data-toggle="modal">  
    100.                         <div class="caption">  
    101.                             <div class="caption-content">  
    102.                                 <i class="fa fa-search-plus fa-3x"></i>  
    103.                             </div>  
    104.                         </div>  
    105.                         <img src="img/portfolio/cabin.png" class="img-responsive" alt="">  
    106.                     </a>  
    107.                 </div>  
    108.                 <div class="col-sm-4 portfolio-item">  
    109.                     <a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">  
    110.                         <div class="caption">  
    111.                             <div class="caption-content">  
    112.                                 <i class="fa fa-search-plus fa-3x"></i>  
    113.                             </div>  
    114.                         </div>  
    115.                         <img src="img/portfolio/cake.png" class="img-responsive" alt="">  
    116.                     </a>  
    117.                 </div>  
    118.                 <div class="col-sm-4 portfolio-item">  
    119.                     <a href="#portfolioModal3" class="portfolio-link" data-toggle="modal">  
    120.                         <div class="caption">  
    121.                             <div class="caption-content">  
    122.                                 <i class="fa fa-search-plus fa-3x"></i>  
    123.                             </div>  
    124.                         </div>  
    125.                         <img src="img/portfolio/circus.png" class="img-responsive" alt="">  
    126.                     </a>  
    127.                 </div>  
    128.                 <div class="col-sm-4 portfolio-item">  
    129.                     <a href="#portfolioModal4" class="portfolio-link" data-toggle="modal">  
    130.                         <div class="caption">  
    131.                             <div class="caption-content">  
    132.                                 <i class="fa fa-search-plus fa-3x"></i>  
    133.                             </div>  
    134.                         </div>  
    135.                         <img src="img/portfolio/game.png" class="img-responsive" alt="">  
    136.                     </a>  
    137.                 </div>  
    138.                 <div class="col-sm-4 portfolio-item">  
    139.                     <a href="#portfolioModal5" class="portfolio-link" data-toggle="modal">  
    140.                         <div class="caption">  
    141.                             <div class="caption-content">  
    142.                                 <i class="fa fa-search-plus fa-3x"></i>  
    143.                             </div>  
    144.                         </div>  
    145.                         <img src="img/portfolio/safe.png" class="img-responsive" alt="">  
    146.                     </a>  
    147.                 </div>  
    148.                 <div class="col-sm-4 portfolio-item">  
    149.                     <a href="#portfolioModal6" class="portfolio-link" data-toggle="modal">  
    150.                         <div class="caption">  
    151.                             <div class="caption-content">  
    152.                                 <i class="fa fa-search-plus fa-3x"></i>  
    153.                             </div>  
    154.                         </div>  
    155.                         <img src="img/portfolio/submarine.png" class="img-responsive" alt="">  
    156.                     </a>  
    157.                 </div>  
    158.             </div>  
    159.         </div>  
    160.     </section>  
    161.   
    162.     <!-- About Section -->  
    163.     <section class="success" id="about">  
    164.         <div class="container">  
    165.             <div class="row">  
    166.                 <div class="col-lg-12 text-center">  
    167.                     <h2>About</h2>  
    168.                     <hr class="star-light">  
    169.                 </div>  
    170.             </div>  
    171.             <div class="row">  
    172.                 <div class="col-lg-4 col-lg-offset-2">  
    173.                     <p>Freelancer is a free bootstrap theme created by Start Bootstrap. The download includes the complete source files including HTML, CSS, and JavaScript as well as optional LESS stylesheets for easy customization.</p>  
    174.                 </div>  
    175.                 <div class="col-lg-4">  
    176.                     <p>Whether you're a student looking to showcase your work, a professional looking to attract clients, or a graphic artist looking to share your projects, this template is the perfect starting point!</p>  
    177.                 </div>  
    178.                 <div class="col-lg-8 col-lg-offset-2 text-center">  
    179.                     <a href="#" class="btn btn-lg btn-outline">  
    180.                         <i class="fa fa-download"></i> Download Theme  
    181.                     </a>  
    182.                 </div>  
    183.             </div>  
    184.         </div>  
    185.     </section>  
    186.   
    187.     <!-- Contact Section -->  
    188.     <section id="contact">  
    189.         <div class="container">  
    190.             <div class="row">  
    191.                 <div class="col-lg-12 text-center">  
    192.                     <h2>Contact Me</h2>  
    193.                     <hr class="star-primary">  
    194.                 </div>  
    195.             </div>  
    196.             <div class="row">  
    197.                 <div class="col-lg-8 col-lg-offset-2">  
    198.                     <!-- To configure the contact form email address, go to mail/contact_me.php and update the email address in the PHP file on line 19. -->  
    199.                     <!-- The form should work on most web servers, but if the form is not working you may need to configure your web server differently. -->  
    200.                     <form name="sentMessage" id="contactForm" novalidate>  
    201.                         <div class="row control-group">  
    202.                             <div class="form-group col-xs-12 floating-label-form-group controls">  
    203.                                 <label>Name</label>  
    204.                                 <input type="text" class="form-control" placeholder="Name" id="name" required data-validation-required-message="Please enter your name.">  
    205.                                 <p class="help-block text-danger"></p>  
    206.                             </div>  
    207.                         </div>  
    208.                         <div class="row control-group">  
    209.                             <div class="form-group col-xs-12 floating-label-form-group controls">  
    210.                                 <label>Email Address</label>  
    211.                                 <input type="email" class="form-control" placeholder="Email Address" id="email" required data-validation-required-message="Please enter your email address.">  
    212.                                 <p class="help-block text-danger"></p>  
    213.                             </div>  
    214.                         </div>  
    215.                         <div class="row control-group">  
    216.                             <div class="form-group col-xs-12 floating-label-form-group controls">  
    217.                                 <label>Phone Number</label>  
    218.                                 <input type="tel" class="form-control" placeholder="Phone Number" id="phone" required data-validation-required-message="Please enter your phone number.">  
    219.                                 <p class="help-block text-danger"></p>  
    220.                             </div>  
    221.                         </div>  
    222.                         <div class="row control-group">  
    223.                             <div class="form-group col-xs-12 floating-label-form-group controls">  
    224.                                 <label>Message</label>  
    225.                                 <textarea rows="5" class="form-control" placeholder="Message" id="message" required data-validation-required-message="Please enter a message."></textarea>  
    226.                                 <p class="help-block text-danger"></p>  
    227.                             </div>  
    228.                         </div>  
    229.                         <br>  
    230.                         <div id="success"></div>  
    231.                         <div class="row">  
    232.                             <div class="form-group col-xs-12">  
    233.                                 <button type="submit" class="btn btn-success btn-lg">Send</button>  
    234.                             </div>  
    235.                         </div>  
    236.                     </form>  
    237.                 </div>  
    238.             </div>  
    239.         </div>  
    240.     </section>  
    241.   
    242.     <!-- Footer -->  
    243.     <footer class="text-center">  
    244.         <div class="footer-above">  
    245.             <div class="container">  
    246.                 <div class="row">  
    247.                     <div class="footer-col col-md-4">  
    248.                         <h3>Location</h3>  
    249.                         <p>3481 Melrose Place<br>Beverly Hills, CA 90210</p>  
    250.                     </div>  
    251.                     <div class="footer-col col-md-4">  
    252.                         <h3>Around the Web</h3>  
    253.                         <ul class="list-inline">  
    254.                             <li>  
    255.                                 <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-facebook"></i></a>  
    256.                             </li>  
    257.                             <li>  
    258.                                 <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-google-plus"></i></a>  
    259.                             </li>  
    260.                             <li>  
    261.                                 <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-twitter"></i></a>  
    262.                             </li>  
    263.                             <li>  
    264.                                 <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-linkedin"></i></a>  
    265.                             </li>  
    266.                             <li>  
    267.                                 <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-dribbble"></i></a>  
    268.                             </li>  
    269.                         </ul>  
    270.                     </div>  
    271.                     <div class="footer-col col-md-4">  
    272.                         <h3>About Freelancer</h3>  
    273.                         <p>Freelance is a free to use, open source Bootstrap theme created by <a href="http://startbootstrap.com">Start Bootstrap</a>.</p>  
    274.                     </div>  
    275.                 </div>  
    276.             </div>  
    277.         </div>  
    278.         <div class="footer-below">  
    279.             <div class="container">  
    280.                 <div class="row">  
    281.                     <div class="col-lg-12">  
    282.                         Copyright © Your Website 2014  
    283.                     </div>  
    284.                 </div>  
    285.             </div>  
    286.         </div>  
    287.     </footer>  
    288.   
    289.     <!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) -->  
    290.     <div class="scroll-top page-scroll visible-xs visible-sm">  
    291.         <a class="btn btn-primary" href="#page-top">  
    292.             <i class="fa fa-chevron-up"></i>  
    293.         </a>  
    294.     </div>  
    295.   
    296.     <!-- Portfolio Modals -->  
    297.     <div class="portfolio-modal modal fade" id="portfolioModal1" tabindex="-1" role="dialog" aria-hidden="true">  
    298.         <div class="modal-content">  
    299.             <div class="close-modal" data-dismiss="modal">  
    300.                 <div class="lr">  
    301.                     <div class="rl">  
    302.                     </div>  
    303.                 </div>  
    304.             </div>  
    305.             <div class="container">  
    306.                 <div class="row">  
    307.                     <div class="col-lg-8 col-lg-offset-2">  
    308.                         <div class="modal-body">  
    309.                             <h2>Project Title</h2>  
    310.                             <hr class="star-primary">  
    311.                             <img src="img/portfolio/cabin.png" class="img-responsive img-centered" alt="">  
    312.                             <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p>  
    313.                             <ul class="list-inline item-details">  
    314.                                 <li>  
    315.                                     Client:  
    316.                                     <strong>  
    317. <a href="http://startbootstrap.com">Start Bootstrap</a>  
    318. </strong>  
    319.                                 </li>  
    320.                                 <li>  
    321.                                     Date:  
    322.                                     <strong>  
    323. <a href="http://startbootstrap.com">April 2014</a>  
    324. </strong>  
    325.                                 </li>  
    326.                                 <li>  
    327.                                     Service:  
    328.                                     <strong>  
    329. <a href="http://startbootstrap.com">Web Development</a>  
    330. </strong>  
    331.                                 </li>  
    332.                             </ul>  
    333.                             <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>  
    334.                         </div>  
    335.                     </div>  
    336.                 </div>  
    337.             </div>  
    338.         </div>  
    339.     </div>  
    340.     <div class="portfolio-modal modal fade" id="portfolioModal2" tabindex="-1" role="dialog" aria-hidden="true">  
    341.         <div class="modal-content">  
    342.             <div class="close-modal" data-dismiss="modal">  
    343.                 <div class="lr">  
    344.                     <div class="rl">  
    345.                     </div>  
    346.                 </div>  
    347.             </div>  
    348.             <div class="container">  
    349.                 <div class="row">  
    350.                     <div class="col-lg-8 col-lg-offset-2">  
    351.                         <div class="modal-body">  
    352.                             <h2>Project Title</h2>  
    353.                             <hr class="star-primary">  
    354.                             <img src="img/portfolio/cake.png" class="img-responsive img-centered" alt="">  
    355.                             <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p>  
    356.                             <ul class="list-inline item-details">  
    357.                                 <li>  
    358.                                     Client:  
    359.                                     <strong>  
    360. <a href="http://startbootstrap.com">Start Bootstrap</a>  
    361. </strong>  
    362.                                 </li>  
    363.                                 <li>  
    364.                                     Date:  
    365.                                     <strong>  
    366. <a href="http://startbootstrap.com">April 2014</a>  
    367. </strong>  
    368.                                 </li>  
    369.                                 <li>  
    370.                                     Service:  
    371.                                     <strong>  
    372. <a href="http://startbootstrap.com">Web Development</a>  
    373. </strong>  
    374.                                 </li>  
    375.                             </ul>  
    376.                             <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>  
    377.                         </div>  
    378.                     </div>  
    379.                 </div>  
    380.             </div>  
    381.         </div>  
    382.     </div>  
    383.     <div class="portfolio-modal modal fade" id="portfolioModal3" tabindex="-1" role="dialog" aria-hidden="true">  
    384.         <div class="modal-content">  
    385.             <div class="close-modal" data-dismiss="modal">  
    386.                 <div class="lr">  
    387.                     <div class="rl">  
    388.                     </div>  
    389.                 </div>  
    390.             </div>  
    391.             <div class="container">  
    392.                 <div class="row">  
    393.                     <div class="col-lg-8 col-lg-offset-2">  
    394.                         <div class="modal-body">  
    395.                             <h2>Project Title</h2>  
    396.                             <hr class="star-primary">  
    397.                             <img src="img/portfolio/circus.png" class="img-responsive img-centered" alt="">  
    398.                             <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p>  
    399.                             <ul class="list-inline item-details">  
    400.                                 <li>  
    401.                                     Client:  
    402.                                     <strong>  
    403. <a href="http://startbootstrap.com">Start Bootstrap</a>  
    404. </strong>  
    405.                                 </li>  
    406.                                 <li>  
    407.                                     Date:  
    408.                                     <strong>  
    409. <a href="http://startbootstrap.com">April 2014</a>  
    410. </strong>  
    411.                                 </li>  
    412.                                 <li>  
    413.                                     Service:  
    414.                                     <strong>  
    415. <a href="http://startbootstrap.com">Web Development</a>  
    416. </strong>  
    417.                                 </li>  
    418.                             </ul>  
    419.                             <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>  
    420.                         </div>  
    421.                     </div>  
    422.                 </div>  
    423.             </div>  
    424.         </div>  
    425.     </div>  
    426.     <div class="portfolio-modal modal fade" id="portfolioModal4" tabindex="-1" role="dialog" aria-hidden="true">  
    427.         <div class="modal-content">  
    428.             <div class="close-modal" data-dismiss="modal">  
    429.                 <div class="lr">  
    430.                     <div class="rl">  
    431.                     </div>  
    432.                 </div>  
    433.             </div>  
    434.             <div class="container">  
    435.                 <div class="row">  
    436.                     <div class="col-lg-8 col-lg-offset-2">  
    437.                         <div class="modal-body">  
    438.                             <h2>Project Title</h2>  
    439.                             <hr class="star-primary">  
    440.                             <img src="img/portfolio/game.png" class="img-responsive img-centered" alt="">  
    441.                             <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p>  
    442.                             <ul class="list-inline item-details">  
    443.                                 <li>  
    444.                                     Client:  
    445.                                     <strong>  
    446. <a href="http://startbootstrap.com">Start Bootstrap</a>  
    447. </strong>  
    448.                                 </li>  
    449.                                 <li>  
    450.                                     Date:  
    451.                                     <strong>  
    452. <a href="http://startbootstrap.com">April 2014</a>  
    453. </strong>  
    454.                                 </li>  
    455.                                 <li>  
    456.                                     Service:  
    457.                                     <strong>  
    458. <a href="http://startbootstrap.com">Web Development</a>  
    459. </strong>  
    460.                                 </li>  
    461.                             </ul>  
    462.                             <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>  
    463.                         </div>  
    464.                     </div>  
    465.                 </div>  
    466.             </div>  
    467.         </div>  
    468.     </div>  
    469.     <div class="portfolio-modal modal fade" id="portfolioModal5" tabindex="-1" role="dialog" aria-hidden="true">  
    470.         <div class="modal-content">  
    471.             <div class="close-modal" data-dismiss="modal">  
    472.                 <div class="lr">  
    473.                     <div class="rl">  
    474.                     </div>  
    475.                 </div>  
    476.             </div>  
    477.             <div class="container">  
    478.                 <div class="row">  
    479.                     <div class="col-lg-8 col-lg-offset-2">  
    480.                         <div class="modal-body">  
    481.                             <h2>Project Title</h2>  
    482.                             <hr class="star-primary">  
    483.                             <img src="img/portfolio/safe.png" class="img-responsive img-centered" alt="">  
    484.                             <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p>  
    485.                             <ul class="list-inline item-details">  
    486.                                 <li>  
    487.                                     Client:  
    488.                                     <strong>  
    489. <a href="http://startbootstrap.com">Start Bootstrap</a>  
    490. </strong>  
    491.                                 </li>  
    492.                                 <li>  
    493.                                     Date:  
    494.                                     <strong>  
    495. <a href="http://startbootstrap.com">April 2014</a>  
    496. </strong>  
    497.                                 </li>  
    498.                                 <li>  
    499.                                     Service:  
    500.                                     <strong>  
    501. <a href="http://startbootstrap.com">Web Development</a>  
    502. </strong>  
    503.                                 </li>  
    504.                             </ul>  
    505.                             <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>  
    506.                         </div>  
    507.                     </div>  
    508.                 </div>  
    509.             </div>  
    510.         </div>  
    511.     </div>  
    512.     <div class="portfolio-modal modal fade" id="portfolioModal6" tabindex="-1" role="dialog" aria-hidden="true">  
    513.         <div class="modal-content">  
    514.             <div class="close-modal" data-dismiss="modal">  
    515.                 <div class="lr">  
    516.                     <div class="rl">  
    517.                     </div>  
    518.                 </div>  
    519.             </div>  
    520.             <div class="container">  
    521.                 <div class="row">  
    522.                     <div class="col-lg-8 col-lg-offset-2">  
    523.                         <div class="modal-body">  
    524.                             <h2>Project Title</h2>  
    525.                             <hr class="star-primary">  
    526.                             <img src="img/portfolio/submarine.png" class="img-responsive img-centered" alt="">  
    527.                             <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p>  
    528.                             <ul class="list-inline item-details">  
    529.                                 <li>  
    530.                                     Client:  
    531.                                     <strong>  
    532. <a href="http://startbootstrap.com">Start Bootstrap</a>  
    533. </strong>  
    534.                                 </li>  
    535.                                 <li>  
    536.                                     Date:  
    537.                                     <strong>  
    538. <a href="http://startbootstrap.com">April 2014</a>  
    539. </strong>  
    540.                                 </li>  
    541.                                 <li>  
    542.                                     Service:  
    543.                                     <strong>  
    544. <a href="http://startbootstrap.com">Web Development</a>  
    545. </strong>  
    546.                                 </li>  
    547.                             </ul>  
    548.                             <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>  
    549.                         </div>  
    550.                     </div>  
    551.                 </div>  
    552.             </div>  
    553.         </div>  
    554.     </div>  
    555.   
    556.     <!-- jQuery -->  
    557.     <script src="js/jquery.js"></script>  
    558.   
    559.     <!-- Bootstrap Core JavaScript -->  
    560.     <script src="js/bootstrap.min.js"></script>  
    561.   
    562.     <!-- Plugin JavaScript -->  
    563.     <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>  
    564.     <script src="js/classie.js"></script>  
    565.     <script src="js/cbpAnimatedHeader.js"></script>  
    566.   
    567.     <!-- Contact Form JavaScript -->  
    568.     <script src="js/jqBootstrapValidation.js"></script>  
    569.     <script src="js/contact_me.js"></script>  
    570.   
    571.     <!-- Custom Theme JavaScript -->  
    572.     <script src="js/freelancer.js"></script>  
    573.   
    574. </body>  
    575.   
    576. </html>  

Now run your project. You should get this beautiful page in your localhost.

project

Read more articles on Bootstrap:

Up Next
    Ebook Download
    View all
    Learn
    View all