App.js 859 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import './App.css';
  2. const LoginForm = () =>
  3. <>
  4. <h1>Web-player</h1>
  5. <div>
  6. <h2>Log-in</h2>
  7. <input type="text" placeholder='Login'/>
  8. <br />
  9. <input type="password" placeholder='Password'/>
  10. <br />
  11. <button>Login</button>
  12. <p>- OR -</p>
  13. <a href='#'>Register new user</a>
  14. </div>
  15. </>
  16. const RegisterForm = () =>
  17. <>
  18. <h1>Web-player</h1>
  19. <div>
  20. <h2>Registration</h2>
  21. <input type="text" placeholder='Login'/>
  22. <br />
  23. <input type="text" placeholder='Nickname'/>
  24. <br />
  25. <input type="password" placeholder='Password'/>
  26. <br />
  27. <button>Register</button>
  28. <br />
  29. <a href='#'>Back to log-in</a>
  30. </div>
  31. </>
  32. function App() {
  33. return (
  34. <div className="App">
  35. <LoginForm />
  36. <RegisterForm />
  37. </div>
  38. );
  39. }
  40. export default App;