Skip to content

Commit

Permalink
Added footer
Browse files Browse the repository at this point in the history
  • Loading branch information
secretpray authored and secretpray committed Dec 29, 2021
1 parent d43741f commit 763cd7c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<%= render 'shared/service' %>
<!-- End tooltip for Home button container -->
<%= yield %>
<%# Footer -> Endless scroll %>
<%= render 'shared/footer' %>
</div>
<%= turbo_frame_tag 'modal', data: { modal_target: 'frame' } %>
<%= turbo_frame_tag :user_modal, data: { modal_user_target: 'form_frame' } %>
Expand Down
39 changes: 39 additions & 0 deletions app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<footer class="flex justify-center mt-12 px-4 text-gray-300 opacity-80 bg-gray-800">
<div class="container py-6">
<h1 class="text-center text-lg font-bold lg:text-2xl">
Join 31,000+ other and never miss <br> out on new tips, tutorials, and more.
</h1>

<div class="flex justify-center mt-6">
<div class="bg-gray-600 rounded-lg">
<div class="flex flex-wrap justify-between md:flex-row">
<input type="email"
class="m-1 p-2 appearance-none text-gray-300 text-sm border-transparent rounded-lg outline-none focus:outline-none focus:ring-0 focus:border-yellow-600"
placeholder="Enter your email">
<button class="w-full m-1 p-2 text-sm text-gray-400 bg-gray-900 opacity-80 rounded-lg transform hover:scale-95 hover:bg-gray-800 hover:opacity-100 duration-300 font-semibold uppercase lg:w-auto">
subscribe
</button>
</div>
</div>
</div>

<hr class="h-px mt-6 bg-gray-700 border-none">

<div class="flex flex-col items-center justify-between mt-6 md:flex-row">
<div>
<a href="https://github.com/secretpray/Hotwire-CRUD-MODAL"
class="text-xl font-bold transform hover:scale-110 duration-300 hover:text-yellow-500">
Hotwire project
</a>
</div>
<div class="flex mt-4 md:m-0">
<div class="-mx-4">
<a href="https://www.linkedin.com/in/александр-рубан-83b93578/" class="px-4 text-sm transform hover:scale-110 duration-300 hover:text-yellow-500">About</a>
<a href="https://blog.corsego.com" class="px-4 text-sm transform hover:scale-110 duration-300 hover:text-yellow-500">Blog</a>
<a href="https://github.com/secretpray?tab=repositories" class="px-4 text-sm transform hover:scale-110 duration-300 hover:text-yellow-500">News</a>
<a href="https://github.com/secretpray" class="px-4 text-sm transform hover:scale-110 duration-300 hover:text-yellow-500">Contact</a>
</div>
</div>
</div>
</div>
</footer>
10 changes: 0 additions & 10 deletions config/initializers/pagy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,3 @@
ActiveSupport.on_load :action_view do
include Pagy::UrlHelpers
end

# Pagy::DEFAULT[:page] = 1 # default page to start with
# Pagy::DEFAULT[:items] = 10 # items per page
# Pagy::DEFAULT[:cycle] = true # when on last page, click "Next" to go to first page

# require 'pagy/extras/items'
# Pagy::DEFAULT[:max_items] = 200 # max items possible per page

# require 'pagy/extras/overflow'
# Pagy::DEFAULT[:overflow] = :last_page # default (other options: :empty_page and :exception)

0 comments on commit 763cd7c

Please sign in to comment.