From: Aidan Cornelius-Bell Date: Mon, 7 Oct 2024 23:33:23 +0000 (+1030) Subject: Added join page X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=8bbb4b0feb46f926ba2a4143208f6e59c7b87a9d;p=arelpe.git Added join page --- diff --git a/app/controllers/pubview_controller.rb b/app/controllers/pubview_controller.rb index bfbd85a..c1aa555 100644 --- a/app/controllers/pubview_controller.rb +++ b/app/controllers/pubview_controller.rb @@ -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) diff --git a/app/views/pubview/index.html.erb b/app/views/pubview/index.html.erb index b6dda0e..d2005a2 100644 --- a/app/views/pubview/index.html.erb +++ b/app/views/pubview/index.html.erb @@ -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 index 0000000..ef028d4 --- /dev/null +++ b/app/views/pubview/join.html.erb @@ -0,0 +1,23 @@ +
+ <%= link_to root_path do %> + <%= image_tag "icon-512.png", class: "logo" %> + <% end %> + <% content_for :title, "Join mind reader" %> +

Join mind reader

+ <%= link_to "↼ Back home...", "#{root_path}" %> +
+ +
+
+ <%= image_tag "growchart.svg", class: "porter" %> +

Below you can join mind reader and receive new dispatches via email.

+

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.

+

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.

+

If you’re looking to cancel an existing membership or subscription, please go to Buttondown.

+
+ + + +
+
+
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index ff3554d..2715b99 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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'