Skip to content

Commit 3bb1008

Browse files
committed
add the form
1 parent 170e971 commit 3bb1008

11 files changed

Lines changed: 89 additions & 17 deletions

File tree

app/assets/images/avo-logo.png

80.9 KB
Loading

app/controllers/home_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ def stamp_samples
1515

1616
def embassy_instructions
1717
end
18+
19+
def join
20+
end
1821
end

app/views/home/embassy_instructions.html.erb

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<!-- Print-optimized standalone page -->
44
<div class="max-w-3xl mx-auto px-6 py-12 print:px-4 print:py-4">
55

6+
<!-- Print tip (screen only) -->
7+
<div class="bg-blue-50 border border-blue-200 rounded-lg p-4 mb-8 print:hidden">
8+
<p class="text-blue-800 text-sm font-medium"><%= t('.print_tip') %></p>
9+
</div>
10+
611
<!-- Header -->
712
<header class="text-center mb-12 print:mb-6">
813
<p class="text-sm font-semibold tracking-widest uppercase text-[#9b1c31] mb-2"><%= t('.subtitle') %></p>
@@ -85,15 +90,21 @@
8590
</div>
8691
</section>
8792

88-
<!-- Print footer note -->
89-
<footer class="text-center text-sm text-slate-400 border-t border-slate-200 pt-6 print:pt-3">
90-
<p><%= t('.print_note') %></p>
93+
<!-- Print footer with branding -->
94+
<footer class="border-t border-slate-200 pt-6 print:pt-4 mt-12 print:mt-6">
95+
<div class="flex flex-col items-center gap-3">
96+
<div class="flex items-center gap-3">
97+
<img src="<%= asset_path "avo-logo.png" %>" alt="Avo" class="h-6">
98+
</div>
99+
<p class="text-sm text-slate-400"><%= t('.print_note') %></p>
100+
<p class="text-xs text-slate-300"><%= t('.print_note_url') %></p>
101+
</div>
91102
</footer>
92103

93104
<!-- Print button (hidden in print) -->
94105
<div class="text-center mt-8 print:hidden">
95106
<button onclick="window.print()" class="btn-primary cursor-pointer">
96-
<span>🖨</span> Print this page
107+
<span>🖨</span> Print these instructions
97108
</button>
98109
<a href="<%= organizer_path %>" class="inline-flex items-center gap-2 px-5 py-3 ml-3 bg-white border border-slate-300 text-slate-700 font-medium rounded-lg hover:bg-slate-50 transition-all">
99110
← Back to organizer guide

app/views/home/index.html.erb

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,27 @@
134134
</h2>
135135

136136
<div class="flex flex-wrap justify-center gap-3">
137-
<span class="event-badge">Rails World</span>
138-
<span class="event-badge">Friendly.rb</span>
139-
<span class="event-badge">Euruko '25</span>
140-
<span class="event-badge">Rocky Mountain Ruby</span>
141-
<span class="event-badge">SF Ruby</span>
142-
<span class="event-badge">Dresden.rb</span>
143-
<span class="event-badge">PLRUG</span>
144-
<span class="event-badge">KRUG</span>
145-
<span class="event-badge">Barcelona.rb</span>
137+
<a href="https://rubyonrails.org/world/" class="event-badge" target="_blank" rel="noopener">Rails World</a>
138+
<a href="https://friendlyrb.com/" class="event-badge" target="_blank" rel="noopener">Friendly.rb</a>
139+
<a href="https://euruko.org/" class="event-badge" target="_blank" rel="noopener">Euruko</a>
140+
<a href="https://rockymtnruby.dev/" class="event-badge" target="_blank" rel="noopener">Rocky Mountain Ruby</a>
141+
<a href="https://sfruby.com/" class="event-badge" target="_blank" rel="noopener">SF Ruby</a>
142+
<a href="https://dresdenrb.onruby.de/" class="event-badge" target="_blank" rel="noopener">Dresden.rb</a>
143+
<a href="https://plrug.pl/" class="event-badge" target="_blank" rel="noopener">PLRUG</a>
144+
<a href="https://krug.org.pl/" class="event-badge" target="_blank" rel="noopener">KRUG</a>
145+
<a href="https://www.meetup.com/barcelona-rb/" class="event-badge" target="_blank" rel="noopener">Barcelona.rb</a>
146146
<a href="https://www.linkedin.com/feed/update/urn:li:groupPost:15477023-7408164988919599104/" class="event-badge" target="_blank" rel="noopener">Munich Rubyshift</a>
147-
<span class="event-badge">RubyZG</span>
148-
<span class="event-badge">Hamburg on Ruby</span>
147+
<a href="https://rubyzg.org/" class="event-badge" target="_blank" rel="noopener">RubyZG</a>
148+
<a href="https://hamburg.onruby.de/" class="event-badge" target="_blank" rel="noopener">Hamburg on Ruby</a>
149149
<a href="https://rubycon.it/" class="event-badge" target="_blank" rel="noopener">Rubycon Italy</a>
150+
<a href="https://balkanruby.com/" class="event-badge" target="_blank" rel="noopener">Balkan Ruby</a>
151+
<a href="https://wrocloverb.com/" class="event-badge" target="_blank" rel="noopener">Wroclove.rb</a>
152+
<a href="https://brightonruby.com/" class="event-badge" target="_blank" rel="noopener">Brighton Ruby</a>
153+
<a href="https://www.rubycommunityconference.com/" class="event-badge" target="_blank" rel="noopener">RuCoCo</a>
154+
<a href="https://www.tropicalonrails.com/en/" class="event-badge" target="_blank" rel="noopener">Tropical on Rails</a>
155+
<a href="https://www.blastoffrails.com/" class="event-badge" target="_blank" rel="noopener">Blast Off Rails</a>
156+
<a href="https://blueridgeruby.com/" class="event-badge" target="_blank" rel="noopener">Blue Ridge Ruby</a>
157+
<a href="https://rbqconf.com/" class="event-badge" target="_blank" rel="noopener">RBQ</a>
150158
<a href="mailto:adrian@adrianthedev.com" class="event-badge bg-[#9b1c31] text-white border-[#9b1c31] hover:bg-[#7a1627]">
151159
<%= t('.events.your_event') %>
152160
</a>

app/views/home/join.html.erb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<% content_for(:title) { t('.title') } %>
2+
3+
<section class="py-16 px-6">
4+
<div class="max-w-3xl mx-auto text-center mb-12">
5+
<h1 class="text-3xl md:text-4xl lg:text-5xl font-bold text-slate-800 mb-4 leading-tight">
6+
<%= t('.heading') %>
7+
</h1>
8+
<p class="text-lg text-slate-600 leading-relaxed">
9+
<%= t('.subtitle') %>
10+
</p>
11+
</div>
12+
13+
<div class="max-w-3xl mx-auto">
14+
<iframe
15+
src="https://avo-hq.notion.site/ebd//48b7cce479dd4a96adeac48d4c625ad7"
16+
width="100%"
17+
height="1400"
18+
frameborder="0"
19+
allowfullscreen
20+
class="rounded-lg"
21+
></iframe>
22+
</div>
23+
</section>
24+
25+
<%= render "layouts/footer", back_path: root_path, back_label: t("layouts.footer.back_to_home") %>

app/views/layouts/_footer.html.erb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@
55
<%= back_label %>
66
</a>
77
<% end %>
8-
<p class="text-slate-400">
8+
<p class="text-slate-400 mb-4">
99
<%= t("layouts.footer.made_with_love") %>
1010
</p>
11+
<div class="flex items-center justify-center gap-3 text-slate-500 text-sm">
12+
<span><%= t("layouts.footer.brought_to_you") %></span>
13+
<a href="https://rubyevents.org" target="_blank" class="opacity-70 hover:opacity-100 transition-opacity">
14+
<img src="<%= asset_path "ruby-events-logo.png" %>" alt="RubyEvents.org" class="h-6">
15+
</a>
16+
<span>&</span>
17+
<a href="https://avohq.io" target="_blank" class="opacity-70 hover:opacity-100 transition-opacity">
18+
<img src="<%= asset_path "avo-logo.png" %>" alt="Avo" class="h-6">
19+
</a>
20+
</div>
1121
</div>
1222
</footer>

app/views/layouts/_navigation.html.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
class: "nav-link #{current_page?(organizer_path) ? 'nav-link-active' : ''}" %>
1818
<%= link_to t("layouts.navigation.stamp_samples"), stamp_samples_path,
1919
class: "nav-link #{current_page?(stamp_samples_path) ? 'nav-link-active' : ''}" %>
20+
<%= link_to t("layouts.navigation.join"), join_path,
21+
class: "inline-flex items-center gap-1 px-4 py-2 bg-[#9b1c31] text-white text-sm font-semibold rounded-lg hover:bg-[#7a1627] transition-colors" %>
2022

2123
<% if params.key?(:locale) || controller_name == "home" %>
2224
<span class="text-slate-300">|</span>
@@ -56,6 +58,8 @@
5658
class: "nav-link-mobile #{current_page?(organizer_path) ? 'nav-link-active' : ''}" %>
5759
<%= link_to t("layouts.navigation.stamp_samples"), stamp_samples_path,
5860
class: "nav-link-mobile #{current_page?(stamp_samples_path) ? 'nav-link-active' : ''}" %>
61+
<%= link_to t("layouts.navigation.join"), join_path,
62+
class: "nav-link-mobile font-semibold text-[#9b1c31]" %>
5963

6064
<% if params.key?(:locale) || controller_name == "home" %>
6165
<div class="flex items-center gap-2 px-3 pt-2 border-t border-slate-200 mt-2">

config/locales/en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ en:
55
home: "Home"
66
organizer_guide: "Organizer's Guide"
77
stamp_samples: "Stamp Samples"
8+
join: "Get the Passport"
89
footer:
910
made_with_love: "Made with ❤️ for the Ruby community"
11+
brought_to_you: "Proudly brought to you by"
1012
back_to_home: "Back to home"
1113
back_to_organizer: "Back to Organizer's Guide"

config/locales/home/embassy_instructions.en.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ en:
55
heading: "Embassy Worker Instructions"
66
subtitle: "The Ruby Embassy"
77
intro: "Welcome to the team! You're the friendly face helping attendees get their Ruby Passport set up. This sheet covers everything you need to know."
8+
print_tip: "Organizers — print this page and hand a copy to each embassy worker so they have it at the desk for quick reference."
89

910
steps:
1011
heading: "The process, step by step"
@@ -54,4 +55,5 @@ en:
5455
email: "adrian@adrian.com"
5556
subject_hint: "Put \"Ruby Embassy — Urgent\" in the subject line so it gets noticed quickly."
5657

57-
print_note: "Print this page and keep it at the Embassy desk for quick reference."
58+
print_note: "The Ruby Passport — made possible by Avo"
59+
print_note_url: "therubypassport.com"

config/locales/home/join.en.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
en:
2+
home:
3+
join:
4+
title: "Get the Ruby Passport at Your Event"
5+
heading: "Get the Ruby Passport at your event"
6+
subtitle: "Fill out the form below and we'll get in touch to set you up with passports, stamps, and everything you need."

0 commit comments

Comments
 (0)