Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add announcement for celebrity challenge #19248

Merged
merged 2 commits into from
Nov 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions pegasus/sites.v3/hourofcode.com/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@
front_join_us_more_info: "For more information, please visit <a href='https://code.org'>code.org</a>."
front_join_us_code_info: "For more information, please visit code.org"
front_join_us_n_students_served: "# served"
front_join_us_challenge: "Win a video chat for your classroom with a celebrity!"
front_join_us_learn_more: "Learn more"

signup_closed: 'Registration for the Hour of Code is now closed. Please check again in October to sign up for the next Hour of Code.'
signup_header: 'Organize an Hour of Code during %{campaign_date}, and register it here.'
Expand Down
8 changes: 8 additions & 0 deletions pegasus/sites.v3/hourofcode.com/public/css/front-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
padding: 8px;
}

a.category-link {
text-decoration: none;
}

.category-link .category-button:hover {
opacity: 0.7;
}

.robotics-logo {
margin-right: 10px;
}
Expand Down
6 changes: 6 additions & 0 deletions pegasus/sites.v3/hourofcode.com/views/announcements.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@
%img.robotics-logo{src: '/images/fit-100x100/robotics/dexter-logo.png'}
%img.robotics-logo{src: '/images/fit-100x100/robotics/littlebits-logo.png'}
%img.robotics-logo{src: '/images/fit-100x100/robotics/wonder-workshop-logo.png'}
-if @language == 'en'
%hr
%a.category-link{:href=>resolve_url('https://code.org/challenge')}
.category-button.cyan-background
%span=hoc_s(:front_join_us_challenge)
%b.category-header=hoc_s(:front_join_us_learn_more)