Code Monkey home page Code Monkey logo

30days's People

Contributors

code-factor avatar nhathuy13598 avatar v-dat avatar

Stargazers

 avatar

Watchers

 avatar

30days's Issues

Class names are too ambitious

<div className="header grid " >
<div className="nav row">
<div className="nav__item"><Link to="/" onClick={handleAdd} >Home</Link></div>
<div className="nav__item"><Link to="/News" onClick={handleAdd}>News</Link></div>
<div className="nav__item"><Link to="/About" onClick={handleAdd} >About</Link></div>
<div className="nav__item nav__item--menu" onClick={handleShowMenu} >
<i className="fas fa-bars"></i>
</div>
<div className="sub-nav" onClick={handleUnShowMenu}>
<div className="sub-nav__item"><Link to="/About" onClick={handleAdd} >About</Link></div>
<div className="sub-nav__item"><Link to="/News" onClick={handleAdd}>News</Link></div>
</div>
</div>
</div>

There are many class names which are ambitious like fas fa-bars. Class name should convey the idea when reading code

Add AppLayout And Fixed Route in App.js

Add Header Footer to all pages, but custom component Header in pages Day1:

  • Create <AppLayout /> Component. And Use <AppLayout /> with path="/"
const AppLayout = () => 
(<>
    <Header />
    <Outlet />
</>)

In < App /> Component Return

<Routes>
    <Route path="Day1" element={<Day1 />} />
    <Route path="/" element={<AppLayout />}>
        <Route path="Day2" element={<Day2 />} />
        <Route path="Day3" element={<Day3 />} />
        <Route path="Day4" element={<Day4 />} />
        <Route path="/" element={<Homepage />} />
    </Route>
    <Route path="*" element={<Navigate replace to="/404NotFound" />} />
</Routes>

Ref: https://stackoverflow.com/a/69999387/18710441

Replaced class with className

Replaced class with className in:

  • src/component/About/Project.js
  • src/component/ListComponent.js
  • src/component/Slider.js
  • src/pages/About/About.js
  • src/component/About/ProjectJSThuan.js

Fix 7 Duplication issues in multiple files

Fixed Day8 MediaPlayer

Fixed MediaPlayer Day8:
When the PauseButton or PlayButton is clicked or onChange SeekBar, the State does not need to be displayed again. When AudioSrc changes the new state needs to be changed

  • use Hook useEffet or useForwardRef

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.