diff --git a/assets/js/communities-of-practice.js b/assets/js/communities-of-practice.js index 2500c5639b..4553fc1a98 100644 --- a/assets/js/communities-of-practice.js +++ b/assets/js/communities-of-practice.js @@ -57,4 +57,10 @@ document.addEventListener("DOMContentLoaded", function() { } setMeetingTimes(); -}); \ No newline at end of file +}); + +function setSlackLink(slackLink) { + console.log("before:", slackLink); + localStorage.setItem("slackLink", slackLink); + console.log('after:', localStorage.getItem("slackLink")); +} \ No newline at end of file diff --git a/pages/communities-of-practice.html b/pages/communities-of-practice.html index cb03a5f279..bceaa826e5 100644 --- a/pages/communities-of-practice.html +++ b/pages/communities-of-practice.html @@ -71,7 +71,8 @@

{{ community[1].name}}

{% if community[1].links[0].url %} {% assign url_links = true %} - + + {% include svg/icon-slack.svg %} Join Slack Channel diff --git a/pages/join-slack-channel.html b/pages/join-slack-channel.html new file mode 100644 index 0000000000..95c6a92649 --- /dev/null +++ b/pages/join-slack-channel.html @@ -0,0 +1,27 @@ +--- +layout: default +title: Join Our Slack Channel +permalink: /join-slack-channel +--- + + +
+
+

+ The link below goes to a Slack channel inside Hack for LA's Slack Workspace. + If you are a member of our community already, selecting the link below will take to the channel. +

+ {% assign slackLink = localStorage.getItem('slackLink') %} + + {% include svg/icon-slack.svg %} + Join Slack Channel + +

+ If you are not yet a member of our community, please see our + Getting Started + page to join. +

+
+
+ + \ No newline at end of file