diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 2ae8980..e53a155 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -19,9 +19,20 @@ class HomeController < ApplicationController Person.new(name, image, role, relationship, extra) end + Section = Struct.new(:id, :title) + + SECTIONS = [ + Section.new("ceremony", "Ceremony & Reception"), + Section.new("wedding-party", "Wedding Party"), + Section.new("accommodations", "Accommodations"), + Section.new("registry", "Registry"), + Section.new("our-story", "How We Met") + ].freeze + def index @rsvp_by_date = rsvp_by_date @wedding_party = PARTY_MEMBERS + @sections = SECTIONS end def rsvp_by_date diff --git a/app/views/home/_accommodations.html.erb b/app/views/home/_accommodations.html.erb new file mode 100644 index 0000000..be3588d --- /dev/null +++ b/app/views/home/_accommodations.html.erb @@ -0,0 +1,39 @@ +
+
+
+ + Accommodations +
+ +
+

We have a wedding block for our guests at the Holiday Inn Express, which is a few minutes away from the venue. The block is booked now, but there are other hotels close by.

+
+ +
+
+ +
+ Holiday Inn + 3 minutes away + 610-399-4600 +
+
+
+ +
+ Home2 Suites + 7 minutes away + 484-354-2985 +
+
+
+ +
+ Residence Inn + 12 minutes away + 610-459-1190 +
+
+
+
+
diff --git a/app/views/home/_ceremony.html.erb b/app/views/home/_ceremony.html.erb new file mode 100644 index 0000000..c51d6d8 --- /dev/null +++ b/app/views/home/_ceremony.html.erb @@ -0,0 +1,55 @@ +
+ +
+
+
+
+

Ceremony & Reception

+
+
+
+ +
+
+

We're getting married! Come join us for our Ceremony at Penn Oaks Golf Club at 5:00pm June 7, 2025.

+

After, we will enjoy drinks and hors d'oeuvres on the patio for cocktail hour before moving into the ballroom to eat and dance for the reception until 11:00 pm.

+

We are looking forward to seeing you there!

+ +
+
+ + + + Formal Attire +
+
+ + +
+
+ + + + 150 Penn Oaks Dr, West Chester, PA 19382 +
+
+ +
+
+ + Wedding Party Color + + (Dusty Sage) +
+
+ +
+ +
+
+
+ +
+
+
+
diff --git a/app/views/home/_our-story.html.erb b/app/views/home/_our-story.html.erb new file mode 100644 index 0000000..39662ed --- /dev/null +++ b/app/views/home/_our-story.html.erb @@ -0,0 +1,34 @@ +
+
+
+

How we met

+
+
    +
  1. +
    + +

    Met Rock Climbing

    +
  2. +
  3. +
    + +

    Adam asked out Jillian in Italy (after climbing many stairs)

    +
  4. +
  5. +
    + +

    Moved to Philadelphia

    +
  6. +
  7. +
    + +

    Bought a house in Chalfont

    +
  8. +
  9. +
    + +

    5 year anniversary date and Proposal

    +
  10. +
+
+
diff --git a/app/views/home/_registry.html.erb b/app/views/home/_registry.html.erb new file mode 100644 index 0000000..088de63 --- /dev/null +++ b/app/views/home/_registry.html.erb @@ -0,0 +1,17 @@ +
+
+
+ Registry & Gifts +
+
+

+ Your presence is the best gift, but if you’d like to help us start our next chapter, + we’ve put together a registry with some things we love. Feel free to browse or + choose something meaningful to you! +

+
+
+ Registry +
+
+
diff --git a/app/views/home/_wedding-party.html.erb b/app/views/home/_wedding-party.html.erb new file mode 100644 index 0000000..ab5f852 --- /dev/null +++ b/app/views/home/_wedding-party.html.erb @@ -0,0 +1,43 @@ +
+
+
+

Wedding Party

+
+ + <% @wedding_party.each_slice(3) do |r| %> +
+ <% r.each do |person| %> +
+ <% if person.image %> + + <% else %> +
+ <% end %> +
<%= person.name %>
+
<%= person.role %>
+
<%= person.relationship %>
+
+ <% end %> +
+ <% end %> + + + <% @wedding_party.each_slice(1) do |r| %> +
+ <% r.each do |person| %> +
+ <% if person.image %> + + <% else %> +
+ <% end %> +
<%= person.name %>
+
<%= person.role %>
+
<%= person.relationship %>
+
+ <% end %> +
+ <% end %> + +
+
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 55ed856..51e9b93 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -11,12 +11,11 @@ @@ -43,202 +42,17 @@
-
- - -
- -
-
-
-
-

Ceremony & Reception

-
-
-
- -
-
-

We're getting married! Come join us for our Ceremony at Penn Oaks Golf Club at 5:00pm June 7, 2025.

-

After, we will enjoy drinks and hors d'oeuvres on the patio for cocktail hour before moving into the ballroom to eat and dance for the reception until 11:00 pm.

-

We are looking forward to seeing you there!

+ <% @sections.each do |s| %> + <%= s.title %> -
-
- - - - Formal Attire -
-
- - -
-
- - - - 150 Penn Oaks Dr, West Chester, PA 19382 -
-
- -
-
- - Wedding Party Color - - (Dusty Sage) -
-
- -
- -
-
-
- -
-
-
-
-
-
-
-

Wedding Party

-
- - <% @wedding_party.each_slice(3) do |r| %> -
- <% r.each do |person| %> -
- <% if person.image %> - - <% else %> -
<% end %> -
<%= person.name %>
-
<%= person.role %>
-
<%= person.relationship %>
- <% end %>
- <% end %> - - - <% @wedding_party.each_slice(1) do |r| %> -
- <% r.each do |person| %> -
- <% if person.image %> - - <% else %> -
- <% end %> -
<%= person.name %>
-
<%= person.role %>
-
<%= person.relationship %>
-
- <% end %> -
- <% end %> -
-
-
-
- - Accommodations -
-
-

We have a wedding block for our guests at the Holiday Inn Express, which is a few minutes away from the venue. The block is booked now, but there are other hotels close by.

-
- -
-
- -
- Holiday Inn - 3 minutes away - 610-399-4600 -
-
-
- -
- Home2 Suites - 7 minutes away - 484-354-2985 -
-
-
- -
- Residence Inn - 12 minutes away - 610-459-1190 -
-
-
-
-
-
-
-
- Registry & Gifts -
-
-

- Your presence is the best gift, but if you’d like to help us start our next chapter, - we’ve put together a registry with some things we love. Feel free to browse or - choose something meaningful to you! -

-
-
- Registry -
-
-
-
-
-
-

How we met

-
-
    -
  1. -
    - -

    Met Rock Climbing

    -
  2. -
  3. -
    - -

    Adam asked out Jillian in Italy (after climbing many stairs)

    -
  4. -
  5. -
    - -

    Moved to Philadelphia

    -
  6. -
  7. -
    - -

    Bought a house in Chalfont

    -
  8. -
  9. -
    - -

    5 year anniversary date and Proposal

    -
  10. -
-
-
+<% @sections.each do |section| %> +<%= render section.id, color: cycle("#ddd3be", "#b2c0b2") %> +<% end %>