issue127:c_c
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue127:c_c [2017/11/28 11:52] – créée auntiee | issue127:c_c [2017/12/04 09:37] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Earlier this month, I went to the AMP Roadshow as it arrived in my city. It took place at the local Google headquarters, and was dedicated to new features coming to AMP, as well as the newer features that had already dropped. It included keynotes (with examples) as well as a codelab segment with a variety of tutorials. As such, I wanted to use my article this month to cover some of the things I learned. | + | //**N.B., Bab, le titre du mois dernier devrait être remplacer par AMP, tout simplement !!**// |
- | Learning by Example | + | **Earlier this month, I went to the AMP Roadshow as it arrived in my city. It took place at the local Google headquarters, |
+ | |||
+ | Plus tôt ce mois-ci, je suis allé à l'AMP Roadshow qui arrivait dans ma ville. Il s' | ||
+ | |||
+ | **Learning by Example | ||
There are a few websites that offer examples and guides for getting started with AMP. The two best ones I’ve used are: | There are a few websites that offer examples and guides for getting started with AMP. The two best ones I’ve used are: | ||
Ligne 7: | Ligne 11: | ||
• https:// | • https:// | ||
- | The best way to approach this would be to find a template you like from AMP Start, and then add elements from AMP By Example (or AMP Start) until you reach the layout you want. Ideally, having a goal in mind before you start will make the process go faster (such as converting an existing site). | + | The best way to approach this would be to find a template you like from AMP Start, and then add elements from AMP By Example (or AMP Start) until you reach the layout you want. Ideally, having a goal in mind before you start will make the process go faster (such as converting an existing site).** |
- | Do I have to manually write all the HTML? | + | Apprentissage par l' |
- | No. If you want to use a static site generator (such as Grow), you can embed the CSS directly into the page (required by AMP), and can set up predefined HTML structures to drop content into. If you’re instead looking for a plugin for a CMS, there are apparently plugins for Wordpress or Drupal. There’s also a project on GitHub called amp-library, which is intended to convert normal HTML to AMP HTML. The project can be found here: https://github.com/Lullabot/ | + | Il y a quelques sites Web qui offrent des exemples et des guides pour démarrer avec AMP. Les deux meilleurs que j'ai utilisé sont : |
+ | • https:// | ||
+ | • https://ampstart.com/ - Ce site offre des modèles complets que vous pouvez télécharger et utiliser comme point de départ. D' | ||
+ | La meilleure façon d' | ||
- | Should I manually write all the HTML and embed the CSS? | ||
- | Yes. As with any programming exercises, you learn more by doing it all by hand at first, before relying on tools to automate tasks. The more you have to write the HTML for an element, after all, the better you’ll remember it later. Naturally, if time is of the essence, do whatever you can to speed up the process. If you end up with some free time later, you can always return to manually writing it. | + | **Do I have to manually |
- | What about interactivity? | + | No. If you want to use a static site generator (such as Grow), you can embed the CSS directly into the page (required by AMP), and can set up predefined HTML structures to drop content into. If you’re instead looking for a plugin for a CMS, there are apparently plugins for Wordpress or Drupal. There’s also a project on GitHub called amp-library, |
- | A relatively recent addition to AMP is amp-bind. It allows you to store state and interconnect elements within a page. A nice example of that is on AMP By Example: https:// | ||
- | My Website is a Progressive Web App - can I use AMP? | + | Dois-je écrire tout le HTML à la main ? |
+ | |||
+ | Non. Si vous voulez utiliser un générateur de site statique (tel que Grow), vous pouvez incorporer le CSS directement dans la page (requis par AMP), et vous pouvez paramétrer les structures HTML pré-définies pour y inclure le contenu. Si, au contraire, vous chercher un module intégré pour un CMS, il y a apparemment des plugins pour Wordpress et Drupal. Il y a aussi un projet sur Github, appelé amp-library, | ||
+ | |||
+ | |||
+ | **Should I manually write all the HTML and embed the CSS? | ||
+ | |||
+ | Yes. As with any programming exercises, you learn more by doing it all by hand at first, before relying on tools to automate tasks. The more you have to write the HTML for an element, after all, the better you’ll remember it later. Naturally, if time is of the essence, do whatever you can to speed up the process. If you end up with some free time later, you can always return to manually writing it.** | ||
+ | |||
+ | Dois-je écrire à la main tout le HTML et incorporer le CSS ? | ||
+ | |||
+ | Oui. Comme pour tout exercice de programmation, | ||
+ | |||
+ | **What about interactivity? | ||
+ | |||
+ | A relatively recent addition to AMP is amp-bind. It allows you to store state and interconnect elements within a page. A nice example of that is on AMP By Example: https:// | ||
+ | |||
+ | Et pour l' | ||
+ | |||
+ | amp-bind est un ajout relativement récent à AMP. Il vous permet de stocker l' | ||
+ | |||
+ | **My Website is a Progressive Web App - can I use AMP? | ||
This was actually covered a lot at the AMP Roadshow. The ability to install a service worker was added to AMP recently, which enables the ability to install the service worker in the background. This means you can set up your entry points to load the service worker, and then upgrade to the PWA as users interact with your site. | This was actually covered a lot at the AMP Roadshow. The ability to install a service worker was added to AMP recently, which enables the ability to install the service worker in the background. This means you can set up your entry points to load the service worker, and then upgrade to the PWA as users interact with your site. | ||
Ligne 28: | Ligne 54: | ||
Furthermore, | Furthermore, | ||
- | A codelab to teach you this can be found here: https:// | + | A codelab to teach you this can be found here: https:// |
- | Conclusion | + | Mon site Web est une appli Web évolutive - puis-je utiliser AMP ? |
+ | |||
+ | En fait, cela fut beaucoup traité lors de l'AMP Roadshow. La capacité d' | ||
+ | |||
+ | De plus, il est possible de créer un cadre pour PWA, qui charge ensuite du contenu à partir des pages d'AMP en utilisant un DOM fantôme. | ||
+ | |||
+ | Un codelab pour vous apprendre ceci peut être trouvé ici : https:// | ||
+ | |||
+ | |||
+ | **Conclusion | ||
AMP is a wonderful library to have access to. It offers a good balance between ease of use, and performance. While there are some limitations placed on you when using it, in my experience, the limitations really just make life easier for you by preventing a lot of the hacks common on the web. Naturally, you’ll always have to balance the pros and cons with what it is you need to build. That being said, AMP is definitely worth your consideration. The main exception is if you need to include custom JS - as AMP does not allow this (except in iframes). | AMP is a wonderful library to have access to. It offers a good balance between ease of use, and performance. While there are some limitations placed on you when using it, in my experience, the limitations really just make life easier for you by preventing a lot of the hacks common on the web. Naturally, you’ll always have to balance the pros and cons with what it is you need to build. That being said, AMP is definitely worth your consideration. The main exception is if you need to include custom JS - as AMP does not allow this (except in iframes). | ||
- | I hope this article was interesting to at least a few readers. And perhaps a few of you will be trying AMP in the future - will maybe even contribute to the project. If you have any questions about AMP, you’re welcome to contact the AMP team on GitHub or Twitter, or email me at lswest34+fcm@gmail.com. If you have requests for other articles, please send them to me as well. | + | I hope this article was interesting to at least a few readers. And perhaps a few of you will be trying AMP in the future - will maybe even contribute to the project. If you have any questions about AMP, you’re welcome to contact the AMP team on GitHub or Twitter, or email me at lswest34+fcm@gmail.com. If you have requests for other articles, please send them to me as well.** |
+ | |||
+ | Conclusion | ||
+ | |||
+ | AMP est une merveilleuse bibliothèque à laquelle accéder. Elle offre un bon équilibre entre la facilité d' | ||
+ | |||
+ | J' |
issue127/c_c.1511866320.txt.gz · Dernière modification : 2017/11/28 11:52 de auntiee