Git Product home page Git Product logo

doctors-portal-client's Introduction

Doctors Portal

Teleport and Book an appointment

Doctors Portal Client

Technologies Used

  • React
  • React Router Dom (V6)
  • Tailwind
  • Tailwind component library - DaisyUI
  • Firebase
  • React Day Picker
  • React firebase hooks
  • React hook form
  • React toastify
  • React query
  • Stripe

New things I learned during this project

  • How to Pass className to react components as props

In React, when you want to pass an interpreted expression, you have to open a pair of curly braces <button className={'pill ${ this.props.styleName }'}> (`` instead of '')

  • How to set a background image with vanilla css?

style={{ background: 'url(${appointment})' }} (``instead of '')backgroundSize: "contain" can be added if the background image is not displaying properly

  • How to pop image out of section?

use negative margin on the image mt-[-150px](tailwind class)

  • Some Tailwind classes

mt-[-150px] perfect alignment

lg:max-w-lg same as @media (min-width: 1024px) { .lg\:max-w-lg { max-width: 32rem/* 512px */; } }

bg-gradient-to-r from-secondary to-primary gradient color

gap-px for 1px gap between grid elements

  • Using react day picker for calendar
  • Date Function
  • How to close sidebar on figma

ctrl +
ctrl + shift + \

  • Interesting rendering
{slots.length ? (
// after booking slot will decrease so the as long as there is the first item, it will be displayed
<span>{slots[0]}</span>
) : (
<span>No slot available</span>
)}
  • How to integrate react hook form
  • How to use tailwind css loading spinner
  • How to use always show loading spinner
  if (true || gLoading || loading) {
  return <Loading></Loading>;
  }
  • How to add key with map(index) parameter?
  • How to upload img to imgbb and get url? (76-3)
  • How to make a verifyAdmin middleware? (76-5)
  • How to set data inside a modal?
  • Payment gateway with stripe?
  • Cannot update a component while rendering a different component warning error solved

    had to use useEffect

  • A component is changing an uncontrolled input of type text to be controlled error in ReactJS

    hand to use || ""

  • validateDOMNesting(...): <div> cannot appear as a child of <tbody> error

    do not enter div inside tbody tag

  • Javascript algorithm to find elements in array that are not in another array?

    Go to

an stackoverflow question

can not get input value using useRef in react hook form

doctors-portal-client's People

Contributors

thakursaad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.