Table of content

Project-Guide

Website making idea

  1. similar website find out from figma, theme-forest etc.
  2. color of website
  3. what will be written
  4. Collections of free resources
  5. User experience
  6. Responsive

Websites and resources to find pictures more for your website

  • source
  • themeforest
  • Figma community
  • dribble
  • color hunt fo color
  1. resource

flex and grid CSS media queries example

  1. Flex example for mobile devices
@media screen and (max-width: 767px) {
            .container{
                /* flex-direction: column; */
                flex-direction: column-reverse;
            }
            .container .half-container {
                width: 100%;
            }
        }
  1. Grid example for tablet responsive layout
@media screen and (min-width: 768px) and (max-width: 992px) {
            .container {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media screen and (max-width: 576px) {
            .container {
                grid-template-columns: repeat(1, 1fr);
            }
        }

Seven way to responsive layout

  1. viewport meta tag(by default we get)
  2. CSS relative measuring unit(%,vw)
  3. make image fluid (use % as width)
  4. Body max width and margin auto
  5. Two column using flex layout and media query
  6. Multi-column using grid and media query
  7. Responsive Menu(bootstrap responsive)

custom CSS

   custom CSS{var(--root name can be any css style)} 

  `Example`
  step 1::root {
            --primary-color: green;
            --secondary-color: red;
            --single-border: 2px solid blue;
        }
  step 2::color: var(--primary-color) or border-bottom: var(--single-border) or background-color: var(--primary-color); 
  background-color: var(--secondary-color);

  step 2:: for better understanding
  h1 {
            color: var(--primary-color)
        }

box shadow

css style :box-shadow: 0px 6px 50px 0px rgba(0, 0, 0, 0.06);

gap properties

 .container {
  display: flex;
  ...
  gap: 10px;
  gap: 10px 20px; /* row-gap column gap */
  row-gap: 10px;
  column-gap: 20px;
}

Git and GitHub

Difference between Git vs GitHub

Option Git GitHub
1. purpose source code management code store/code hosting platform for version control and collaboration.
2 Test2 Toronto

Git and GitHub Basic QA

  • What is the main purpose of git branching?
 Separate a small feature from the main code.
  • Which Command is used to check the list of branches?
 > git branch
  • Which command will you use to create a new branch named new-branch?
 >git checkout -b new-branch

Basic understanding MERN

  • Optimize images for better loading(photopea,adobe-photoshop,tinypng), types of images {svg(scale-able),GIF(animation) png, jpg,jpeg (colorful),webp(fast-loading),iso(icon), Sprite(use game developers),}
  • CSS Overflow (overflow-x: hidden;), ellipsis(tooltip:title,white-space: nowrap; & overflow: hidden;)
  • visibility(display: none; visibility: hidden; )
  • width: calc(100% - 200px); height: calc(100% - 200px);
  • specifityP{important(!important>inlineCSS>id>class>tag)} here periodity rule is specifity we use !important override css bootrap style but nomally we use inlineCSS override bootrap CSS
  • pseudo example
 p::first-letter {
                color: #ff0000;
                font-size: xx-large;
            }
  • 1.Horizontal change:Justify-content{} 2.Vertical change: align-item{}
  • align-items: stretch; flex-grow: 1;
  • By default Responsive flex:
 .container2 {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }
  • every child will take equal position in row container:
.row > div{
    flex: 1;
}