-
Notifications
You must be signed in to change notification settings - Fork 479
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
Dedup HAML/React - Regional Partner Playbook #26592
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
144 changes: 144 additions & 0 deletions
144
apps/src/sites/code.org/pages/public/educate/regional-partner/RegionalPartnerPlaybook.jsx
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,144 @@ | ||
import React, { Component } from 'react'; | ||
|
||
import ResourceCard from '@cdo/apps/templates/studioHomepages/ResourceCard'; | ||
import ResourceCardResponsiveContainer from '@cdo/apps/templates/studioHomepages/ResourceCardResponsiveContainer'; | ||
|
||
const CARDS = [ | ||
{ | ||
title: 'Administrator and Counselor PD', | ||
description: | ||
'* How-To Guide <br> * Set Your Agenda<br> * Logistics (Venue, Catering)<br> * Supplies & Resources', | ||
link: '/educate/regional-partner/playbook/administrator', | ||
}, | ||
|
||
{ | ||
title: 'Advocacy', | ||
description: | ||
'Links to resources and websites to help you advocate for K-12 computer science policy in your state', | ||
link: '/educate/regional-partner/playbook/advocacy', | ||
}, | ||
|
||
{ | ||
title: 'Communications and Branding', | ||
description: | ||
'* Weekly Update Email Archive<br> * Code.org Comms to Teachers<br> * Workshop & Email Comms.<br> * Branding Guidelines', | ||
link: '/educate/regional-partner/playbook/communications', | ||
}, | ||
|
||
{ | ||
title: 'Community Building', | ||
description: | ||
'* Resources & Ideas<br> * Community Events for Teachers<br> * CS Fair for Students', | ||
link: '/educate/regional-partner/playbook/community', | ||
}, | ||
|
||
{ | ||
title: 'Data', | ||
description: '* Resources & Ideas<br> * How to use the data dashboard', | ||
link: '/educate/regional-partner/playbook/data', | ||
}, | ||
|
||
{ | ||
title: 'Facilitator Support', | ||
description: | ||
'* 1-Pager & Contract Exemplars <br> * Facilitator Recruitment Resources <br> * Facilitator Support Resources <br> * Facilitator Payments', | ||
link: '/educate/regional-partner/playbook/facilitator-support', | ||
}, | ||
|
||
{ | ||
title: 'Fundraising Resources', | ||
description: '* Organization Sustainability <br> * Fundraising Playbook', | ||
link: '/educate/regional-partner/playbook/funding', | ||
}, | ||
|
||
{ | ||
title: 'Ordering Supplies', | ||
description: | ||
'* Accessing Mimeo <br> * How to Order Supplies <br> * Printable Certificates <br> * Admin/Counselor Supplies ', | ||
link: '/educate/regional-partner/playbook/ordering-supplies', | ||
}, | ||
|
||
{ | ||
title: 'Regional Partner Network', | ||
description: | ||
'Access the Regional Partner Directory and learn more about the Advisory Committee', | ||
link: '/educate/regional-partner/playbook/directory', | ||
}, | ||
|
||
{ | ||
title: 'Payment Information', | ||
description: | ||
'Everything you need to know about how your organization will be compensated', | ||
link: '/educate/regional-partner/playbook/payments', | ||
}, | ||
|
||
{ | ||
title: 'Reporting and Evaluations', | ||
description: | ||
'* Annual Report Requirements<br> * Post Workshop Feedback Form<br> * Regional Partner Annual Planning', | ||
link: '/educate/regional-partner/playbook/reporting-and-evaluations', | ||
}, | ||
|
||
{ | ||
title: 'Teacher & District Recruitment', | ||
description: | ||
'* How to recruit teachers and districts<br/> * Teacher applications', | ||
link: '/educate/regional-partner/playbook/teacher-recruitment', | ||
}, | ||
|
||
{ | ||
title: 'Teachers & Curriculum', | ||
description: | ||
'* Info for Teacher Support<br> * Links to Online Curriculum <br> * Curriculum 1-pagers <br>', | ||
link: '/educate/regional-partner/playbook/curriculum', | ||
}, | ||
|
||
{ | ||
title: 'Timeline', | ||
description: | ||
'Visit this page for guidance on what to focus on and events being held each month', | ||
link: '/educate/regional-partner/playbook/timeline', | ||
}, | ||
|
||
{ | ||
title: 'Training Materials', | ||
description: 'Virtual trainings and past Regional Partner Summit resources', | ||
link: '/educate/regional-partner/playbook/training-materials', | ||
}, | ||
|
||
{ | ||
title: 'Workshops & Professional Learning', | ||
description: 'Everything you need to know to plan your workshops', | ||
link: '/educate/regional-partner/playbook/workshops-pl', | ||
}, | ||
|
||
{ | ||
title: 'FAQ', | ||
description: "Can't find what you're looking for? Check the FAQ", | ||
link: '/educate/regional-partner/playbook/faq', | ||
}, | ||
|
||
{ | ||
title: 'Legacy', | ||
description: | ||
"See information about Code.org's Legacy programs: ECS, CS in Algebra, CS in Science", | ||
link: '/educate/regional-partner/playbook/legacy', | ||
}, | ||
]; | ||
|
||
export default class RegionalPartnerPlaybook extends Component { | ||
render() { | ||
return ( | ||
<ResourceCardResponsiveContainer> | ||
{CARDS.map((card) => ( | ||
<ResourceCard | ||
{...card} | ||
buttonText="Learn More" | ||
allowWrap={true} | ||
allowDangerouslySetInnerHtml={true} | ||
/> | ||
))} | ||
</ResourceCardResponsiveContainer> | ||
); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
apps/src/sites/code.org/pages/public/educate/regional-partner/playbook.js
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,22 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import {Provider} from 'react-redux'; | ||
import RegionalPartnerPlaybook from './RegionalPartnerPlaybook'; | ||
import {getStore, registerReducers} from '@cdo/apps/redux'; | ||
import isRtl from '@cdo/apps/code-studio/isRtlRedux'; | ||
import responsive from '@cdo/apps/code-studio/responsiveRedux'; | ||
import initResponsive from '@cdo/apps/code-studio/responsive'; | ||
|
||
registerReducers({isRtl, responsive}); | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
initResponsive(); | ||
|
||
const container = document.getElementById('regional-partner-playbook'); | ||
ReactDOM.render( | ||
<Provider store={getStore()}> | ||
<RegionalPartnerPlaybook /> | ||
</Provider>, | ||
container, | ||
); | ||
}); |
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
10 changes: 10 additions & 0 deletions
10
pegasus/sites.v3/code.org/public/educate/regional-partner/playbook.haml
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,10 @@ | ||
--- | ||
title: Regional Partner Virtual Playbook | ||
theme: responsive | ||
--- | ||
|
||
%meta{name: 'robots', content: 'noindex'} | ||
|
||
%script{src: minifiable_asset_path('js/code.org/public/educate/regional-partner/playbook.js')} | ||
|
||
#regional-partner-playbook |
49 changes: 0 additions & 49 deletions
49
pegasus/sites.v3/code.org/public/educate/regional-partner/playbook.md
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tells scrapers to ignore this page; I'm not sure why we'd want that, but it's present in the current version so I preserved it