-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40af730
commit dfbd7db
Showing
25 changed files
with
123 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,74 @@ | ||
<div class="md:flex bg-red-200 px-3 py-5 md:pt-24 md:px-28 md:pb-0"> | ||
<div class="md:w-7/12 md:mr-4"> | ||
<h1 class="md:text-5xl text-purple-900"> | ||
Fun, free happiness-boosting activities to enjoy with your child | ||
</h1> | ||
<p class="text-md md:text-xl mt-6 md:mt-8 mb-0"> | ||
“A great guide and confidence builder knowing we were doing alot right and then fantastic guidance in what we can do and apply to further develop our child." - Ali's mum | ||
</p> | ||
<a href="/examples" class="btn btn-primary bg-purple-600 text-white md:w-1/3 w-full block mt-5 md:mt-10">See some examples</a> | ||
</div> | ||
<div class="hidden md:block w-5/12"> | ||
<%= image_tag "phones.png" %> | ||
<div class="absolute top-16 left-0"> | ||
<div class="md:flex bg-red-200 px-3 py-5 md:pt-24 md:px-28 md:pb-0"> | ||
<div class="md:w-7/12 md:mr-4"> | ||
<h1 class="md:text-5xl text-purple-900"> | ||
Fun, free happiness-boosting activities to enjoy with your child | ||
</h1> | ||
<p class="text-md md:text-xl mt-6 md:mt-8 mb-0"> | ||
“A great guide and confidence builder knowing we were doing alot right and then fantastic guidance in what we can do and apply to further develop our child." - Ali's mum | ||
</p> | ||
</div> | ||
<div class="hidden md:block w-5/12"> | ||
<%= image_tag "phones.png" %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="px-3 py-5 md:py-24 md:px-28 bg-amber-300 items-center"> | ||
<div class="flex justify-around"> | ||
<h2 class="md:text-4xl md:mb-20 mb-10 text-center w-5/6"> | ||
Get bite-sized activities that spark imagination and connection delivered to your phone, every week | ||
</h2> | ||
</div> | ||
<div class="flex justify-between"> | ||
<div class="w-full flex flex-col md:flex-row justify-around gap-8"> | ||
<div class="flex flex-col items-center gap-5"> | ||
<div class="w-24 h-24 md:w-40 md:h-40 flex items-center justify-around"> | ||
<div> | ||
<%= image_tag "noun-mobile.png" %> | ||
</div> | ||
</div> | ||
<p class="md:text-3xl text-center w-64"> | ||
Sign up with your mobile number | ||
</p> | ||
</div> | ||
<div class="flex flex-col items-center gap-5"> | ||
<div> | ||
<div class="px-3 py-5 md:py-24 md:px-28 bg-amber-300 items-center"> | ||
<div class="flex justify-around"> | ||
<h2 class="md:text-4xl md:mb-20 mb-10 text-center w-5/6"> | ||
Get bite-sized activities that spark imagination and connection delivered to your phone, every week | ||
</h2> | ||
</div> | ||
<div class="flex justify-between"> | ||
<div class="w-full flex flex-col md:flex-row justify-around gap-8"> | ||
<div class="flex flex-col items-center gap-5"> | ||
<div class="w-24 h-24 md:w-40 md:h-40 flex items-center justify-around"> | ||
<div> | ||
<%= image_tag "noun-sms.png" %> | ||
<%= image_tag "noun-mobile.png" %> | ||
</div> | ||
</div> | ||
</div> | ||
<p class="md:text-3xl text-center md:w-96"> | ||
Get weekly text messages featuring short videos that demonstrate fun activities to enjoy with your child | ||
</p> | ||
</div> | ||
<div class="flex flex-col items-center gap-5"> | ||
<div class="w-24 h-24 md:w-40 md:h-40 flex items-center justify-around"> | ||
<p class="md:text-3xl text-center w-64"> | ||
Sign up with your mobile number | ||
</p> | ||
</div> | ||
<div class="flex flex-col items-center gap-5"> | ||
<div> | ||
<%= image_tag "noun-child.png" %> | ||
<div class="w-24 h-24 md:w-40 md:h-40 flex items-center justify-around"> | ||
<div> | ||
<%= image_tag "noun-sms.png" %> | ||
</div> | ||
</div> | ||
</div> | ||
<p class="md:text-3xl text-center md:w-96"> | ||
Get weekly text messages featuring short videos that demonstrate fun activities to enjoy with your child | ||
</p> | ||
</div> | ||
<div class="flex flex-col items-center gap-5"> | ||
<div class="w-24 h-24 md:w-40 md:h-40 flex items-center justify-around"> | ||
<div> | ||
<%= image_tag "noun-child.png" %> | ||
</div> | ||
</div> | ||
<p class="md:text-3xl text-center w-64"> | ||
Try them out! | ||
</p> | ||
</div> | ||
<p class="md:text-3xl text-center w-64"> | ||
Try them out! | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="bg-zinc-50 flex justify-around"> | ||
<div class="py-8 px-8 md:py-24 md:w-5/12 w-full" id="interests"> | ||
<%= simple_form_for @interest do |form| %> | ||
<h2 class="mb-2 md:text-4xl"> | ||
What brings you here today? | ||
</h2> | ||
<%= form.input :title, as: :check_boxes, label: false, collection: Interest::TITLES, wrapper_html: { class: "flex flex-col gap-6 md:text-xl mt-6" } %> | ||
<%= form.input :other_title, label: "Something else?", required: false, wrapper_html: { class: "w-full mt-6" } %> | ||
<div class="bg-zinc-50 flex justify-around"> | ||
<div class="py-8 px-8 md:py-24 md:w-5/12 w-full" id="interests"> | ||
<%= simple_form_for @interest do |form| %> | ||
<h2 class="mb-2 md:text-4xl"> | ||
What brings you here today? | ||
</h2> | ||
<%= form.input :title, as: :check_boxes, label: false, collection: Interest::TITLES, wrapper_html: { class: "flex flex-col gap-6 md:text-xl mt-6" } %> | ||
<%= form.input :other_title, label: "Something else?", required: false, wrapper_html: { class: "w-full mt-6" } %> | ||
<%= form.submit "Next", class: "btn btn-primary mt-8 bg-purple-600 text-white w-full" %> | ||
<% end %> | ||
<%= form.submit "Next", class: "btn btn-primary mt-8 bg-purple-600 text-white w-full" %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
namespace :scheduler do | ||
desc "Send text message" | ||
task send_message: :environment do | ||
User.contactable.each do |user| | ||
SendMessageJob.perform_later(user:) | ||
User.contactable.group_by(&:child_age_in_months_today).each do |age, users| | ||
group = Group.find_by(age_in_months: age) | ||
|
||
next unless group | ||
|
||
users.each do |user| | ||
SendMessageJob.perform_later(user:, group:) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
FactoryBot.define do | ||
factory :content do | ||
body { "Sample Body" } | ||
upper_age { 19 } | ||
lower_age { 18 } | ||
link { "www.example.com" } | ||
sequence(:position) { |n| n } | ||
|
||
group | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FactoryBot.define do | ||
factory :group do | ||
name { "Content for 18 month olds" } | ||
age_in_months { 18 } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.