]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
Added join page
authorAidan Cornelius-Bell <[email protected]>
Mon, 7 Oct 2024 23:33:23 +0000 (10:03 +1030)
committerAidan Cornelius-Bell <[email protected]>
Mon, 7 Oct 2024 23:33:23 +0000 (10:03 +1030)
app/controllers/pubview_controller.rb
app/views/pubview/index.html.erb
app/views/pubview/join.html.erb [new file with mode: 0644]
config/routes.rb

index bfbd85afaf7e127680329993a584dc4e90ed482a..c1aa55530b09ad934c40c417cccd4f00b3505a0c 100644 (file)
@@ -26,6 +26,10 @@ class PubviewController < ApplicationController
       render 'error/error', status: :not_found
     end
   end
+  
+  def join
+    
+  end
 
   def post
     start_date = Date.new(params[:year].to_i, 1, 1)
index b6dda0eada80e1d6592c5214bfc5e5543a14fddb..d2005a24e805703a0ebd60474e667cd12dc2b320 100644 (file)
@@ -10,6 +10,7 @@
   <%= link_to "All", root_path(filter: 'all'), class: "button #{@filter == 'all' ? 'active' : ''}" %>
   <%= link_to "Dispatches", root_path(filter: 'posts'), class: "button #{@filter == 'posts' ? 'active' : ''}" %>
   <%= link_to "Bookmarks", root_path(filter: 'bookmarks'), class: "button #{@filter == 'bookmarks' ? 'active' : ''}" %>
+  <%= link_to "Join mind reader", join_path, class: "button" %>
   <% @pages.each do |pg| %>
   <%= link_to "#{pg.title}", public_page_path(pg.slug), class: "button" %>
   <% end %>
diff --git a/app/views/pubview/join.html.erb b/app/views/pubview/join.html.erb
new file mode 100644 (file)
index 0000000..ef028d4
--- /dev/null
@@ -0,0 +1,23 @@
+<div class="container" id="top">
+  <%= link_to root_path do %>
+       <%= image_tag "icon-512.png", class: "logo" %>
+  <% end %>
+  <% content_for :title, "Join mind reader" %>
+  <h1>Join mind reader</h1>
+  <%= link_to "↼ Back home...", "#{root_path}" %>
+</div>
+
+<div class="post">
+  <div class="container">
+       <%= image_tag "growchart.svg", class: "porter" %>
+       <h3>Below you can join mind reader and receive new dispatches via email.</h3>
+       <p>Joining by email means you never have to visit this (admittedly beautiful) website ever again. You’ll receive new posts straight in your email inbox. Bookmarks, however, are sent in digest to subscribers only – so if you’d like to see those, come back or keep reading.</p>
+       <p>Optionally, once you’ve signed up and confirmed your email address you are able to subscribe to mind reader financially by entering any non $0 AUD amount you wish. You are under no obligation to do this! Paid subscribers receive a digest of bookmarks and a monthly update from me on the state of the world that regular subscribers miss out on.</p>
+       <p>If you’re looking to cancel an existing membership or subscription, please go to <a href="https://buttondown.com/acb">Buttondown</a>.</p>
+       <form action="https://buttondown.com/api/emails/embed-subscribe/acb" method="post" target="popupwindow" onsubmit="window.open('https://buttondown.com/acb', 'popupwindow')" class="embeddable-buttondown-form">
+       <label for="bd-email">Enter your email</label>
+       <input type="email" name="email" id="bd-email" />
+       <input type="submit" value="Subscribe" />
+       </form>
+  </div>
+</div>
\ No newline at end of file
index ff3554dd092c0475f3bfb469be94c0c0441e8af6..2715b99bcca5fafe14c77c3ba62b50594f5e6c09 100644 (file)
@@ -20,6 +20,7 @@ Rails.application.routes.draw do
   resources :posts
   get '/feed', to: 'pubview#rss', as: 'rss', defaults: { format: 'rss' }
   get '/feed/dispatches', to: 'pubview#dispatches_rss', as: 'dispatches_rss', defaults: { format: 'rss' }
+  get '/join', to: "pubview#join"
   
   get '/:slug', to: 'pubview#show_public', as: 'public_page'
   get '/:year/:slug', to: 'pubview#post', as: 'public_post'