Skip to content

Commit 64d9677

Browse files
committed
hid campfire until id verified
1 parent 0a0450b commit 64d9677

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

app/views/home/index.html.erb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@
2727
</div>
2828
<% end %>
2929
<% end %>
30-
<%= render 'shared/card', class: 'py-0 col-span-1 md:col-span-2 border-bp-warning border-2 space-y-0 flex flex-row items-center' do %>
31-
<%= image_tag "campfire_smore.png", alt: "Campfire Smore", class: "w-20 mr-4 -my-4" %>
32-
<%= image_tag "campfire_banner.png", alt: "Campfire Banner", class: "h-20 mr-2 -my-4" %>
33-
<div class="grow mr-4 py-4">
34-
<p>Hack Club is running a hackathon with Open Sauce! Meet <a href="https://www.youtube.com/c/MichaelReeves" target="_blank" rel="noopener noreferrer" class="text-bp-warning font-semibold">Michael Reeves</a>, <a href="https://www.youtube.com/WilliamOsman" target="_blank" rel="noopener noreferrer" class="text-bp-warning font-semibold">Williams Osman</a>, and more! Get a ticket from the <a href="/toolbag" class="text-bp-warning font-semibold">Blueprint Shop</a> today</p>
30+
<% if current_user.ysws_verified %>
31+
<%= render 'shared/card', class: 'py-0 col-span-1 md:col-span-2 border-bp-warning border-2 space-y-0 flex flex-col md:flex-row md:items-center gap-3 md:gap-4' do %>
32+
<div class="flex items-center gap-2 shrink-0 pt-4 md:pt-0">
33+
<%= image_tag "campfire_smore.png", alt: "Campfire Smore", class: "w-16 md:w-20 h-auto md:-my-4" %>
34+
<%= image_tag "campfire_banner.png", alt: "Campfire Banner", class: "h-12 md:h-20 w-auto md:-my-4" %>
3535
</div>
36-
<div class="whitespace-nowrap">
36+
<div class="grow min-w-0 px-4 md:px-0 md:py-4">
37+
<p class="text-sm md:text-base">Hack Club is running a hackathon with Open Sauce! Meet <a href="https://www.youtube.com/c/MichaelReeves" target="_blank" rel="noopener noreferrer" class="text-bp-warning font-semibold">Michael Reeves</a>, <a href="https://www.youtube.com/WilliamOsman" target="_blank" rel="noopener noreferrer" class="text-bp-warning font-semibold">Williams Osman</a>, and more! Get a ticket from the <a href="/toolbag" class="text-bp-warning font-semibold">Blueprint Shop</a> today</p>
38+
</div>
39+
<div class="w-full md:w-auto px-4 pb-4 md:p-0">
3740
<%= render 'shared/button', text: "RSVP Now", url: "https://flagship.hackclub.com/?utm_source=c-blueprint" %>
3841
</div>
3942
<% end %>
43+
<% end %>
4044
<% unless current_user.is_pro %>
4145
<%= render 'shared/card', class: 'col-span-1 md:col-span-2 flex flex-col motion-safe:transition-colors border-2 border-bp-warning border-solid' do %>
4246
<p class="text-2xl md:text-3xl font-rc-full mb-8">Build your first hardware project. Start with Hackpad!</p>

0 commit comments

Comments
 (0)