Skip to content

Commit

Permalink
added instructions for community assets
Browse files Browse the repository at this point in the history
  • Loading branch information
mcilurzo committed Jun 13, 2023
1 parent f6359a8 commit f9d1579
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 42 deletions.
4 changes: 4 additions & 0 deletions src/_data/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = {
notfoundtitle: "No search results were found.",
notfoundtext: "Try using different or fewer search terms.",
communityassets: {
"addasset": "Add community asset",
"all": "All",
"lean": "Web Lean",
"legacy": "Web Legacy",
Expand Down Expand Up @@ -225,6 +226,7 @@ module.exports = {
notfoundtitle: "Es wurden keine Suchresultate gefunden.",
notfoundtext: "Probiere es mit anderen oder weniger Suchbegriffen.",
communityassets: {
"addasset": "Community-Asset hinzufügen",
"all": "Alle",
"lean": "Web Lean",
"legacy": "Web Legacy",
Expand Down Expand Up @@ -406,6 +408,7 @@ module.exports = {
notfoundtitle: "Aucun résultat de recherche trouvé.",
notfoundtext: "Essaie d'utiliser des termes de recherche différents ou moins nombreux.",
communityassets: {
"addasset": "Ajouter un Community-Asset",
"all": "Tout",
"lean": "Web Lean",
"legacy": "Web Legacy",
Expand Down Expand Up @@ -449,6 +452,7 @@ module.exports = {
notfoundtitle: "Non sono stati trovati risultati di ricerca.",
notfoundtext: "Provate a utilizzare termini di ricerca diversi o meno numerosi.",
communityassets: {
"addasset": "Aggiungi un Community-Asset",
"all": "Tutti",
"lean": "Web Lean",
"legacy": "Web Legacy",
Expand Down
3 changes: 3 additions & 0 deletions src/_includes/community-assets/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
</div>
{% include "../icons/not-found.njk" %}
</div>
<sbb-button class="add-asset" size="m" variant="primary" href="/{{page.lang}}/design-system/community-assets/how/">
{{ translations[page.lang].communityassets.addasset }}
</sbb-button>
{% include "./list-dialogs.njk" %}
4 changes: 4 additions & 0 deletions src/assets/css/_community-assets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,8 @@
p {
margin-bottom: var(--sbb-spacing-responsive-xxs);
}
}

.add-asset {
margin-top: var(--sbb-spacing-responsive-s);
}
14 changes: 0 additions & 14 deletions src/de/design-system/community-assets/assets/filter.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/de/design-system/community-assets/assets/overview.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/de/design-system/community-assets/assets/test.md

This file was deleted.

29 changes: 29 additions & 0 deletions src/de/design-system/community-assets/how/how.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: page.njk
tags: page
key: how_de
title: Anleitung
parent: community-assets_de
order: 3
---

## Asset hinzufügen

Damit ein Asset hinzugefügt werden kann, sind folgende Schritte nötig:{.lead}
* <sbb-link variant="inline" href="https://github.com/signup">Github-Account</sbb-link> erstellen und einloggen.{.lead}
* Community-Asset-Formular <sbb-link variant="inline" href="https://github.com/sbb-design-systems/digital.sbb.ch/issues/new/choose">öffnen</sbb-link>.{.lead}
* Formular ausfüllen.{.lead}
* Hinweis: Der Figma-Link darf nicht mehrfach verwendet werden (bzw. dient als Key). Sollte ein Link mehrfach verwendet werden, so werden Assets überschrieben.{.lead}
* Nach dem Ausfüllen müsste nach ca. 10 Minuten die Webseite akualisiert sein, das Ticket wird automatisch geschlossen.{.lead}

## Asset ändern

Um ein Asset zu überschreiben, kann das Formular mit dem gleichen Figma-Link nochmals ausgefüllt werden (mit den entsprechenden Korrekturen).{.lead}

## Asset löschen

Derzeit ist es nicht möglich selbständig ein Asset zu löschen. Schreib uns welches Asset gelöscht werden soll an <sbb-link variant="inline" href="mailto:[email protected]">[email protected]</sbb-link>.{.lead}

## Feedback

Dir fehlt eine Kategorie? Etwas funktioniert nicht? Gerne helfen <sbb-link variant="inline" href="mailto:[email protected]">wir</sbb-link> gerne bei Problemen rund um die Community Assets.{.lead}
29 changes: 29 additions & 0 deletions src/en/design-system/community-assets/how/how.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: page.njk
tags: page
key: how_en
title: Instructions
parent: community-assets_en
order: 3
---

## Add Asset

In order for an asset to be added, the following steps are required:{.lead}
* Create <sbb-link variant="inline" href="https://github.com/signup">Github account</sbb-link> and log in.{.lead}
* <sbb-link variant="inline" href="https://github.com/sbb-design-systems/digital.sbb.ch/issues/new/choose">Open</sbb-link> community asset form.{.lead}
* Fill in form.{.lead}
* Note: The Figma link may not be used more than once (works as a key). If a link is used more than once, assets will be overwritten.{.lead}
* After filling in the form, the website should be updated after approx. 10 minutes and the ticket will be closed automatically.{.lead}

## Change asset

To overwrite an asset, the form can be filled out again using the same Figma link (with the appropriate corrections).{.lead}

## Delete asset

Currently it is not possible to delete an asset. Write us which asset should be deleted to <sbb-link variant="inline" href="mailto:[email protected]">[email protected]</sbb-link>.{.lead}

## Feedback

You are missing a category? Something is not working? <sbb-link variant="inline" href="mailto:[email protected]">We</sbb-link>'re happy to help with any problems around the community assets.{.lead}
11 changes: 11 additions & 0 deletions src/fr/design-system/community-assets/how/how.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: page.njk
tags: page
key: how_fr
title: Instructions
parent: community-assets_fr
order: 3
availablelanguages:
- de
- en
---
11 changes: 11 additions & 0 deletions src/it/design-system/community-assets/how/how.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: page.njk
tags: page
key: how_it
title: Istruzioni
parent: community-assets_it
order: 3
availablelanguages:
- de
- en
---

0 comments on commit f9d1579

Please sign in to comment.