Frontendmasters Courses
831 subscribers
1 photo
7.9K videos
2.04K links
#frontendmasters courses

source: https://frontendmasters.com/courses

Channel for automated uploaded courses from frontendmasters.com

Our Channels:
@vue_courses
@vue_updates

Contacts:
@Black_Yuzia
Download Telegram
Media is too big
VIEW IN TELEGRAM
41. Using the Canvas API
Anjana uses the Canvas API to create a graphic similar to the JavaScript logo. A yellow rectangle is drawn to the canvas element. Then, the fill color is changed to black, and the fillText method is used to draw text on the yellow background.
#lesson
Media is too big
VIEW IN TELEGRAM
42. Accessing the Camera
Anjana begins building the selfie cam functionality. The existing application is refactored to use the getUserMedia API and add the video to a canvas element. The markup rendered by the main.js file is moved into the index.html file.
#lesson
Media is too big
VIEW IN TELEGRAM
43. Refactoring the UI
Anjana refactors the UI of the selfie cam projects so the logos appear above the space where the camera image will show. The getVideo method is exported as a module and imported into the main.js file.
#lesson
Media is too big
VIEW IN TELEGRAM
44. drawVideo Method
Anjana creates a drawVideo method that takes in a video and canvas element from the application. The method will draw the video image on the supplied canvas element. The drawVideo method is exported from the camera.js file so it can be imported and used in the application.
#lesson
Media is too big
VIEW IN TELEGRAM
45. Using the Video Element
Anjana uses the exported functions from the camera.js module to display an image from the camera on the web page. The code is refactored, so the image will be displayed once the user clicks the button.
#lesson
Media is too big
VIEW IN TELEGRAM
46. Scaling the Canvas
Anjana adjusts the image displayed in the canvas element so the size matches the image from the camera. The final solution can be found in the GitHub repository linked below.
-
https://github.com/vakila/selfie-cam
#lesson
Media is too big
VIEW IN TELEGRAM
47. Building for Production
Anjana demonstrates how to build a production version of the application. Vite will provide errors when JavaScript features incompatible with the targeted browser runtime are used. An IIFE is used to enable support for top-level await.
#lesson
Media is too big
VIEW IN TELEGRAM
48. Tooling Setup for Hackathon
Anjana introduces the "hackathon" and explains how the quick win projects from earlier in the course will be combined into an application and deployed. GitHub is also introduced and will provide source control for the project.
#lesson
Media is too big
VIEW IN TELEGRAM
49. ESLint
Anjana installs and configures ESLint to check the source code for syntax errors and other code problems. A "lint" script is added to the package.json file, and the lint script is also run any time the build script is run. The code in the selfie-cam repo linked below can be used as a starting point for this lesson.
-
https://github.com/vakila/selfie-cam
#lesson
Media is too big
VIEW IN TELEGRAM
50. Prettier
Anjana installs another developer tool, Prettier, responsible for consistent code formatting in a project. Prettier ensures any developers contributing to a project follow the same set of formatting rules.
#lesson
Media is too big
VIEW IN TELEGRAM
51. VS Code Tooling
Anjana demonstrates the tooling provided by Visual Studio Code to aid developers in their workflow. The Source Control panel provides a basic UI for git-related operations. Extensions for ESLint and Prettier are also shared.
#lesson
Media is too big
VIEW IN TELEGRAM
52. Deployment & Configuring Vite
Anjana compares development and production environments and shares an example vite.config.js file containing configuration for both environments. Static hosting options are also discussed in this lesson, including GitHub Pages, Netlify, and Vercel.
#lesson
Media is too big
VIEW IN TELEGRAM
53. Configuring GitHub Actions
Anjana looks at the configuration options for deploying a project using GitHub Pages. The finished selfie-cam repo is used as an example. Adding a YAML file to a repo's .github/workflows folder allows developers to configure custom GitHub actions for any automation tasks, including deploying a Vite project to GitHub pages. The code in the selfie-cam project linked below can be used as a starting point for this lesson.
-
https://github.com/vakila/selfie-cam
#lesson
Media is too big
VIEW IN TELEGRAM
54. Viewing GitHub Actions
Anjana looks at existing GitHub actions in the project and walks through each step displayed in the log. A successful action will have a green confirmation when it's completed. Failed actions are shown in red, and inspecting the logs helps developers understand why the action failed.
#lesson
Media is too big
VIEW IN TELEGRAM
55. Project Code Tour: Modal and Form
Anjana walks through the final Meme Me application, which contains elements from the quick-win projects earlier in the course and the selfie cam module. The Modal component is reused multiple times in this project. The Form module is also explored.
-
https://github.com/vakila/meme-me
#lesson
Media is too big
VIEW IN TELEGRAM
56. Project Code Tour: Camera and Text
Anjana continues exploring the Meme Me application. The camera module has additional functionality using setInterval to continuously update the camera image, simulating a live camera feed. A Text module has been added to draw the meme text on a separate canvas, making it more flexible when the text is updated.
-
https://github.com/vakila/meme-me
#lesson
Media is too big
VIEW IN TELEGRAM
57. Hackathon: Fork the Project
Anjana challenges students to fork the Meme Me application and add their own customizations. The customized project can then be deployed to GitHub pages. Code for the hackathon and detailed instructions for deployment can be found in the repo linked below.
-
https://github.com/vakila/meme-me
#lesson
Media is too big
VIEW IN TELEGRAM
58. Community Projects
Anjana shares a few projects submitted by users during the course. If you would like to showcase your project, share a link in our Discord.
#lesson
Media is too big
VIEW IN TELEGRAM
59. Q&A
Anjana answers questions about how junior developers can continue to grow their skills and shares some advice for career transitions.
#lesson
Media is too big
VIEW IN TELEGRAM
60. Wrapping Up
Anjana wraps up the course with a summary of the accomplishments achieved through the projects and provides some additional resources.
#lesson