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

+ +
+``` + +The only part that you should modifi is between the `