nataliaElv HF staff commited on
Commit
41e47d8
1 Parent(s): 792c07e

Update images and cards

Browse files
images/lead_announcement.png CHANGED
images/lead_hunting.png DELETED
Binary file (249 kB)
 
images/recruit_collaborators.png ADDED
images/recruit_leads.png ADDED
index.html CHANGED
@@ -14,9 +14,8 @@
14
  <p>In this page, you will find a communications pack with examples of posts and images that you can use to share about your participation in this annotation sprint. Feel free to adapt all texts and images so that they appeal to communities of speakers in the language(s) you’re leading!</p>
15
  <p>Here are some tips for better engagement:</p>
16
  <p>1️⃣ Translate all texts and images to your target language.</p>
17
- <p>2️⃣ Change the default parrot picture with your own profile picture!</p>
18
- <p>3️⃣ Add your discord username so that collaborators can find you.</p>
19
- <p>4️⃣ Share it with coworkers, family, friends and on any social network or channels of your choosing.</p>
20
  <p>If you have any questions, find Natalia over discord (@nelvirita) or email (natalia.elvira@huggingface.co).</p>
21
  <div id="card-container"></div>
22
  </body>
 
14
  <p>In this page, you will find a communications pack with examples of posts and images that you can use to share about your participation in this annotation sprint. Feel free to adapt all texts and images so that they appeal to communities of speakers in the language(s) you’re leading!</p>
15
  <p>Here are some tips for better engagement:</p>
16
  <p>1️⃣ Translate all texts and images to your target language.</p>
17
+ <p>2️⃣ Add an image to your post to make it more eye-catching. Try the ones below!</p>
18
+ <p>3️⃣ Share it with coworkers, family, friends and on any social network or channels of your choosing.</p>
 
19
  <p>If you have any questions, find Natalia over discord (@nelvirita) or email (natalia.elvira@huggingface.co).</p>
20
  <div id="card-container"></div>
21
  </body>
script.js CHANGED
@@ -1,54 +1,37 @@
1
 
2
- const lead_announcement = `<p>I’m thrilled to share that I’ll be leading <var>Asturian and Aragonese</var> in Hugging Face’s collaborative annotation sprint! 🤗</p><p>I’ll be helping to build an open dataset to improve language models for our language. Do you want to join me? I’ll share more details about this soon!</p>`
3
- const recruit_collaborators = `<p>Do you want to improve the quality of language models in <var>Asturian and Aragonese</var>?</p><p>Join me in this collaborative annotation sprint! No experience needed - simply follow the link to start annotating!`
4
- const recruit_leads = `<p>I’m thrilled to share that I’ll be leading <var>Asturian and Aragonese</var> in Hugging Face’s collaborative annotation sprint! 🤗</p><p>Would you like to lead the efforts in your own language? Check if it’s still listed!</p>`
5
 
6
- function createCard(title, text, url) {
7
  let url_text = text.replaceAll('<p>', '').replaceAll('</p>', '%0A%0A')
8
- if (url) {
 
9
 
10
- let template = `
11
- <div class="card">
12
- <h2>${title}</h2>
13
- ${text}<p>${url}</p>
14
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank"><img alt="Image for posts to rectruit collaborators" src="images/lead_announcement.png"></a>
15
- <div class="button-container" align="center">
16
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank"><button class="button-4" role="button">Edit this image</button></a>
17
- <a href="https://x.com/intent/post?text=${url_text}${url}" target="_blank"><button class="button-4" role="button">Share in X</button></a>
18
- <a href="https://www.linkedin.com/feed/?shareActive=true&text=${url_text}${url}" target="_blank"><button class="button-4" role="button">Share in LinkedIn</button></a>
19
- <a href="https://bsky.app/intent/compose?text=${url_text}${url}" target="_blank"><button class="button-4" role="button">Share in Bluesky</button></a>
20
- </div>
21
- </div>
22
- </br>
23
- `
24
- return template;
25
-
26
- } else {
27
- let template = `
28
  <div class="card">
29
  <h2>${title}</h2>
30
- <p>${text}</p>
31
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank"><img alt="Image for posts to rectruit collaborators" width="500" src="images/lead_announcement.png"></a>
32
  <div class="button-container" align="center">
33
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank"><button class="button-4" role="button">Edit this template</button></a>
34
- <a href="https://x.com/intent/post?text=${url_text}" target="_blank"><button class="button-4" role="button">Share in X</button></a>
35
- <a href="https://www.linkedin.com/feed/?shareActive=true&text=${url_text}" target="_blank"><button class="button-4" role="button">Share in LinkedIn</button></a>
36
- <a href="https://bsky.app/intent/compose?text=${url_text}" target="_blank"><button class="button-4" role="button">Share in Bluesky</button></a>
37
  </div>
38
  </div>
39
  </br>
40
  `
41
- return template;
42
- }
43
  }
44
 
45
- function addCardToContainer(language, link, customText) {
46
  const cardContainer = document.getElementById('card-container');
47
- const cardHTML = createCard(language, link, customText);
48
  cardContainer.innerHTML += cardHTML;
49
  }
50
 
51
- addCardToContainer("Announce you've been selected to be a lead!", lead_announcement);
52
- addCardToContainer("Recuit collaborators for your language", recruit_collaborators, 'https://nataliaelv-language-leads-dashboard.hf.space/');
53
- addCardToContainer("Recuit leads for other languages", recruit_leads, 'https://nataliaelv-language-leads-dashboard.hf.space/');
54
-
 
1
 
2
+ const lead_announcement = `I’m thrilled to share that I’ll be leading <var>Asturian and Aragonese</var> in Hugging Face’s collaborative annotation sprint! 🤗</p><p>I’ll be helping to build an open dataset to improve language models for our language. Do you want to join me? I’ll share more details about this soon!`
3
+ const recruit_collaborators = `Do you want to improve the quality of language models in <var>Asturian and Aragonese</var>?</p><p>Join me in this collaborative annotation sprint! No experience needed - simply follow the link to start annotating!`
4
+ const recruit_leads = `I’m thrilled to share that I’ll be leading <var>Asturian and Aragonese</var> in Hugging Face’s collaborative annotation sprint! 🤗</p><p>Would you like to lead the efforts in your own language? Check if it’s still listed!`
5
 
6
+ function createCard(title, text, url, image_src, image_url) {
7
  let url_text = text.replaceAll('<p>', '').replaceAll('</p>', '%0A%0A')
8
+ var text_block = (url) ? `<p>${text}</p><p>${url}</p>` : `<p>${text}</p>`
9
+ var image_button = (image_url) ? `<a href="${image_url}" target="_blank"><button class="button-4" role="button">Edit this image</button></a>` : `<a href="${image_src}" download><button class="button-4" role="button">Download this image</button></a>`
10
 
11
+ let template = `
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <div class="card">
13
  <h2>${title}</h2>
14
+ ${text_block}
15
+ <img alt="Image for posts to rectruit collaborators" src="${image_src}">
16
  <div class="button-container" align="center">
17
+ ${image_button}
18
+ <a href="https://x.com/intent/post?text=${url_text}${url}" target="_blank"><button class="button-4" role="button">Share in X</button></a>
19
+ <a href="https://www.linkedin.com/feed/?shareActive=true&text=${url_text}${url}" target="_blank"><button class="button-4" role="button">Share in LinkedIn</button></a>
20
+ <a href="https://bsky.app/intent/compose?text=${url_text}${url}" target="_blank"><button class="button-4" role="button">Share in Bluesky</button></a>
21
  </div>
22
  </div>
23
  </br>
24
  `
25
+ return template;
26
+
27
  }
28
 
29
+ function addCardToContainer(title, text, url, image_src, image_url) {
30
  const cardContainer = document.getElementById('card-container');
31
+ const cardHTML = createCard(title, text, url, image_src, image_url);
32
  cardContainer.innerHTML += cardHTML;
33
  }
34
 
35
+ addCardToContainer("Announce you've been selected to be a lead!", lead_announcement, null, "images/lead_announcement.png", "https://docs.google.com/presentation/d/1CA4xLLf6rpUlDBym0SORrJZskNDKiBc51tngZkyGDXU/edit#slide=id.p");
36
+ addCardToContainer("Recuit collaborators for your language", recruit_collaborators, url='https://nataliaelv-language-leads-dashboard.hf.space/', image_src="images/recruit_collaborators.png", image_url="https://docs.google.com/presentation/d/1Mouh1HpmJYPZFJ-99y9bRZyeb2lLqD2KB3btnXwVJyU/edit#slide=id.p");
37
+ addCardToContainer("Recuit leads for other languages", recruit_leads, 'https://nataliaelv-language-leads-dashboard.hf.space/', image_src="images/recruit_leads.png");