From b996192c8ae270f07d5edd800c31715334859c8b Mon Sep 17 00:00:00 2001 From: LazyYuuki Date: Sun, 25 Aug 2024 19:20:17 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Finish=20basic=20we=20components=20?= =?UTF-8?q?guide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SUMMARY.md | 6 ++-- src/chapter1/web-components/image.md | 18 ++++++++++++ src/chapter1/web-components/references.md | 36 +++++++++++++++++++++++ src/chapter1/web-components/video.md | 21 +++++++++++++ 4 files changed, 78 insertions(+), 3 deletions(-) create mode 100644 src/chapter1/web-components/image.md create mode 100644 src/chapter1/web-components/references.md create mode 100644 src/chapter1/web-components/video.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index d27c8ee..a2c835e 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -10,7 +10,7 @@ - [Team Member Component](./chapter1/web-components/team-member.md) - [Table of Contents Component](./chapter1/web-components/table-of-contents.md) - [Table Component](./chapter1/web-components/table.md) - - [Image Component]() - - [Video Component]() - - [References Component]() + - [Image Component](./chapter1/web-components/image.md) + - [Video Component](./chapter1/web-components/video.md) + - [References Component](./chapter1/web-components/references.md) - [Optional enhancement]() diff --git a/src/chapter1/web-components/image.md b/src/chapter1/web-components/image.md new file mode 100644 index 0000000..45f1b4c --- /dev/null +++ b/src/chapter1/web-components/image.md @@ -0,0 +1,18 @@ +# Image Component + +The image component is a simple component that can be used to quickly display an image with an attached subtitle. The format is as follow: + +```html + +``` + +The image componet has 3 main attributes: +- `tag`: this is the same as the `id` attributes in the `div` element, you can use this with `` link to point to the picture. +- `source`: this is the source of your image, it can be an image in the `assets` folder like in the example, or it could also be an url pointing to an image from an external page. +- `subtitle`: add subtitle text under the image. + +This is a very simple component that you can also create through raw html, but if you don't need much modifications, using this component would be faster and cleaner. diff --git a/src/chapter1/web-components/references.md b/src/chapter1/web-components/references.md new file mode 100644 index 0000000..5787466 --- /dev/null +++ b/src/chapter1/web-components/references.md @@ -0,0 +1,36 @@ +# References Component + +The references component format is as follow: + +```html +
+ +

References

+
    +
  • + Brody, J. E. (2007, December 11). Mental reserves keep brain agile. The New York Times. Retrieved from + http://www.dowjones.com/factiva/ +
  • +
  • + Chamberlin, J., Novotney, A., Packard, E., & Price, M. (2008, May). Enhancing worker well-being: Occupational + health psychologists convene to share their research on work, stress, and health. Monitor on Psychology, + 39(5), 26-29. +
  • +
  • + Jones, T. J., & Fields, N. (2003). Emotional quotient and personality. E-Journal of Applied Psychology, 2(2), + 38-45. Retrieved from http://ejournalappliedpsyc/index.php/ejap +
  • +
+
+``` + +The only part that you should modifi is between the `