Git Product home page Git Product logo

service-canada's Introduction

Service Canada - Opimization prototyping space

This is a repository used by Service Canada to prototype and test ideas.

How to use the templates

  1. Select one of the templates in the template folder:
  1. Duplicate the template in the right folder - or copy the code from the template in a new file in the right folder

  2. Modify the title tag and the breadcrumb trail, if applicable

  3. Locate the section that has this comment: "CONTENT STARTS HERE"

  4. Start editing the content - you can copy paste patterns from the basic template, or copy-paste code from other Canada.ca pages

  5. Besides the title and breadcrumb trail, only edit code that's between CONTENT STARTS HERE and CONTENT ENDS HERE.

Import a page from Canada.ca

If you want to bring a Canada.ca page in GitHub to test ideas:

  1. Duplicate or copy the code of the basic template in the right folder and give it an appropriate name

  2. Go to the Canada.ca page, and open the source code

  3. Copy the code, starting with the H1 tag, and stopping before a div called "pagedetails", which starts the prefooter with the Report a problem1

  4. Paste the code in the GitHub file, replace all the code that starts with the H1 and ends right before the 'CONTENT STOPS HERE' comment.

Links in GitHub

Relative links in GitHub are odd.

  • ./ looks for the path in the folder you're on
  • ../ looks for the path one folder up
  • ../../ looks for the path 2 folders up
  • etc.

Service Canada - Espace de prototypage de l'équipe d'optimisation

Ceci est un dépôt tilisé par Service Canada pour réaliser des prototypes et tester des idées.

Comment utiliser les modèles

  1. Sélectionnez l'un des modèles dans le dossier des modèles :
  1. Dupliquez le modèle dans le bon dossier - ou copiez le code du modèle dans un nouveau fichier dans le bon dossier.

  2. Modifiez la balise titre et le fil d'Ariane, le cas échéant.

  3. Localisez la section qui a ce commentaire : "CONTENT STARTS HERE"

  4. Commencez à modifier le contenu - vous pouvez copier-coller les modèles du modèle de base ou copier-coller le code d'autres pages de Canada.ca.

  5. Outre le titre et le fil d'Ariane, ne modifiez que le code qui se trouve entre CONTENT STARTS HERE et CONTENT ENDS HERE.

Importer une page de Canada.ca

Si vous voulez importer une page de Canada.ca dans GitHub pour tester des idées :

  1. Dupliquez ou copiez le code du modèle de base dans le bon dossier et donnez-lui un nom approprié.

  2. Allez sur la page Canada.ca et ouvrez le code source.

  3. Copiez le code, en commençant par la balise H1, et en vous arrêtant avant un div appelé "pagedetails", qui commence le pré-pied de page avec la section "Signaler un problème ou une erreur sur cette page".

  4. Collez le code dans le fichier GitHub, en remplaçant tout le code qui commence par le H1 et se termine juste avant le commentaire 'CONTENT STOPS HERE'.

Liens dans GitHub

Les liens relatifs dans GitHub sont étranges.

  • ./ recherche le chemin du fichier dans le dossier dans lequel vous vous trouvez.
  • ../ recherche le chemin du fichier un dossier plus haut
  • ../../ cherche le chemin du fichier 2 dossiers plus haut
  • etc.

service-canada's People

Contributors

corahansen avatar quidampepin avatar git-hutt avatar kelseylmcmahon avatar lindseyrw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.