lib/frontview/contents/header_content.rb in frontview-1.1.2 vs lib/frontview/contents/header_content.rb in frontview-2.0.0
- old
+ new
@@ -2,26 +2,59 @@
module Contents
class HeaderContent < Rails::Generators::Base
def write_in_header_file
File.open("app/views/shared/_header.html.erb", "w+") {
|file| file.puts(
-'<header id="header">
- <div class="container main-menu">
- <div class="row align-items-center justify-content-between d-flex">
- <div id="logo">
- <a href="/"><img src="assets/logo.png" alt="" title="" /></a>
- </div>
- <nav id="nav-menu-container">
- <ul class="nav-menu">
- <li><a href="/">Home</a></li>
- <li><a href="#">Other Pics</a></li>
- <li><a href="#">Info</a></li>
- </ul>
- </nav>
- </div>
- </div>
-</header>'
- )
+ '<!-- Preloader Start -->
+ <div id="preloader-active">
+ <div class="preloader d-flex align-items-center justify-content-center">
+ <div class="preloader-inner position-relative">
+ <div class="preloader-circle"></div>
+ <div class="preloader-img pere-text">
+ <img src="assets/preloader.png" alt="">
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- Preloader Start -->
+
+ <header>
+ <!-- Header Start -->
+ <div class="header-area header-transparrent">
+ <div class="main-header header-sticky">
+ <div class="container">
+ <div class="row align-items-center">
+ <!-- Logo -->
+ <div class="col-xl-2 col-lg-2 col-md-2">
+ <div class="logo">
+ <a href="/"><img src="assets/logo.png" alt=""></a>
+ </div>
+ </div>
+ <div class="col-xl-10 col-lg-10 col-md-10">
+ <!-- Main-menu -->
+ <div class="main-menu f-right d-none d-lg-block">
+ <nav>
+ <ul id="navigation">
+ <li class="active"><a href="/">Home</a></li>
+ <li><a href="#services">Services</a></li>
+ <li><a href="#pricing">Pricing</a></li>
+ <li><a href="#about">About Us</a></li>
+ <li><a href="#contact">Contact</a></li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ <!-- Mobile Menu -->
+ <div class="col-12">
+ <div class="mobile_menu d-block d-lg-none"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- Header End -->
+ </header>'
+ )
}
end
end
end
end