ArinzeGit / QR-Code-Component-With-React-TS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QR code component with React-TS

This is my solution to the 'QR code component' challenge on Frontend Mentor. Frontend Mentor challenges help me improve my coding skills by building realistic projects.

Table of contents

Overview

Screenshot

QR Code Component With React-TS Screenshot1 QR Code Component With React-TS Screenshot2

Links

  • Solution URL: View the GitHub repository here
  • Live Site URL: I have hosted the project on GitHub Pages here

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox - CSS web layout model
  • Bootstrap - CSS Framework
  • TypeScript - Programming language that extends JavaScript
  • React - JavaScript library
  • Node.js - JavaScript runtime environment
  • Vite - React build tool with local development server

What I learned

  • I learned that I can create custom font families by downloading and adding font files, then defining font faces in CSS using the '@font-face' rule:
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
}
  • I learnt that I cannot open my React TypeScript app directly via the HTML file because the browser doesn't have the capability to handle the dynamic execution of TypeScript code or serve other assets.
    • During development, I need tools like Vite to start a development server that handles dynamic transpiling of TypeScript and JSX to JavaScript, bundling, and serving of my app.
    • For production, I need to run a build command to generate the production build of the app that includes the necessary JavaScript code bundled by Vite, CSS files, and assets. This build can be opened via its HTML file
  • I also got more familiar with Bootstrap, Typescript and React.

Continued development

  • Bootstrap
  • Typescript
  • React

I found these techniques very useful. I will continue focusing on them in future projects to refine and perfect them.

Useful resources

  • React Tutorial for Beginners - This is an amazing tutorial which helped me understand React, TypeScript and Bootstrap. I'd recommend it to anyone still learning these concepts.

Author

About


Languages

Language:TypeScript 64.0%Language:CSS 15.6%Language:JavaScript 10.5%Language:HTML 10.0%