Class: Frontview::Contents::HeaderContent

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/frontview/contents/header_content.rb

Instance Method Summary collapse

Instance Method Details

#write_in_header_fileObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/frontview/contents/header_content.rb', line 4

def write_in_header_file
  File.open("app/views/shared/_header.html.erb", "w+") {
    |file| file.puts(
'<header class="main_h">
  <div class="row">
    <a class="logo" href="/">
<i class="icon-size fa fa-laptop" aria-hidden="true"></i>
FontView
    </a>
    <div class="mobile-toggle">
<span></span>
<span></span>
<span></span>
    </div>
    <nav class="h-reposition d-none d-md-block d-lg-block d-xl-block">
<ul>
  <li><a href="#about">About Us</a></li>
  <li><a href="#service">Our Services</a></li>
  <li><a href="#contact">Contact Us</a></li>
</ul>
    </nav>

    <nav class="d-block d-md-none d-lg-none d-xl-none">
<ul>
  <li><a href="#about">About Us</a></li>
  <li><a href="#service">Our Services</a></li>
  <li><a href="#contact">Contact Us</a></li>
</ul>
    </nav>
  </div> 
</header>'
    )
  }
end