Add RSVP
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
class HomeController < ApplicationController
|
||||
def index
|
||||
@rsvp_by_date = rsvp_by_date
|
||||
end
|
||||
|
||||
def rsvp_by_date
|
||||
ENV["RSVP_DATE"] || "April 20, 2025"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -17,9 +17,7 @@
|
||||
<a href="#registry" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Registry</a>
|
||||
<a href="#our-story" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">How We Met</a>
|
||||
<a href="#more-info" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">More Info</a>
|
||||
|
||||
|
||||
<!-- <a href="#rsvp" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white pb-4">RSVP</a> -->
|
||||
<a href="/rsvp" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white pb-4">RSVP</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -39,8 +37,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container mx-auto flex flex-col items-center py-4 hidden">
|
||||
<button class="text-3xl rounded-lg bg-emerald-700 px-4 py-4 text-slate-300 hover:bg-emerald-600">RSVP</button>
|
||||
<div class="container mx-auto flex flex-col items-center text-center py-4">
|
||||
<a href="/rsvp" class="text-xl rounded-lg bg-emerald-600 px-4 py-4 mb-4 lg:mr-4 w-1/4 text-slate-100 hover:bg-emerald-500">RSVP</a>
|
||||
</div>
|
||||
|
||||
<div class="container mx-auto flex flex-col items-center pt-4 pb-8">
|
||||
@@ -54,8 +52,6 @@
|
||||
<a href="#registry" class="block mt-4 lg:inline-block lg:mt-0 hover:text-slate-500 px-12">Registry</a>
|
||||
<a href="#our-story" class="block mt-4 lg:inline-block lg:mt-0 hover:text-slate-500 px-12">How We Met</a>
|
||||
<a href="#more-info" class="block mt-4 lg:inline-block lg:mt-0 hover:text-slate-500 px-12">More Info</a>
|
||||
<!-- <a href="#registry" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white mr-24">Registry</a> -->
|
||||
<!-- <a href="#rsvp" class="block mt-4 lg:inline-block lg:mt-0 hover:text-white">RSVP</a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -140,8 +136,8 @@
|
||||
choose something meaningful to you!
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex flex-col my-4 lg:flex-row lg:w-1/3 lg:mx-auto lg:my-12 text-center items-center justify-center">
|
||||
<a class="text-xl rounded-lg bg-emerald-600 px-4 py-4 mb-4 lg:mr-4 w-1/3 text-slate-100 hover:bg-emerald-500" href="https://withjoy.com/adam-and-jillian-jun-25/registry">Registry</a>
|
||||
<div class="flex flex-col pt-4 lg:flex-row lg:w-1/3 lg:mx-auto lg:my-12 text-center items-center justify-center">
|
||||
<a class="text-xl rounded-lg bg-emerald-600 px-4 py-4 mb-4 lg:mr-4 w-1/3 text-slate-100 hover:bg-emerald-500" href="/registry">Registry</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,8 @@ Rails.application.routes.draw do
|
||||
get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
|
||||
get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
|
||||
|
||||
get "/rsvp" => redirect("https://withjoy.com/adam-and-jillian-jun-25/rsvp")
|
||||
get "/registry" => redirect("https://withjoy.com/adam-and-jillian-jun-25/registry")
|
||||
get "*path" => redirect("/")
|
||||
# Defines the root path route ("/")
|
||||
# root "posts#index"
|
||||
|
||||
Reference in New Issue
Block a user