<!DOCTYPE html>
<html>

<head>
  <title>LibraryMgmtSys</title>
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <%= csrf_meta_tags %>
  <%= csp_meta_tag %>

  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
  <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>

<body>
  <%= render 'layouts/header' %>
  <% if params[:controller] == 'home' && params[:action] == 'index' %>
  <%= render 'home/slider' %>
  <% end %>
  <%= render 'layouts/flash' %>
  <div class="container" style="padding-bottom: 50px">
    <%= yield %>
  </div>
  <%= render 'layouts/footer' %>
</body>

</html>