File tree Expand file tree Collapse file tree 3 files changed +65
-1
lines changed Expand file tree Collapse file tree 3 files changed +65
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import FlashCards from "./components/mektefaie/FlashCards";
1111import SliderCards from "./components/kelixirr/SliderCards" ;
1212import Modal from "./components/sushantpokhrel/Modal" ;
1313import Header from "./components/kelixirr/Header" ;
14+ import Login from "./components/rrusyaidii/Login" ;
1415
1516function App ( ) {
1617 const [ showToast , setShowToast ] = useState ( false ) ;
@@ -29,6 +30,7 @@ function App() {
2930 < SliderCards />
3031 < Modal />
3132 < Header />
33+ < Login />
3234
3335 { /* Please Add Your Component Above This Line. Don't Add Div inside App, just component. Keep It Clean*/ }
3436 < div
@@ -52,7 +54,6 @@ function App() {
5254 />
5355 ) }
5456 </ div >
55-
5657 </ >
5758 ) ;
5859}
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import styles from "./Login.module.css" ;
3+ import Author from "../../Author" ;
4+
5+ const Login = ( ) => {
6+ return (
7+ < >
8+ < div className = { styles . container } >
9+ < form className = { styles . form } >
10+ < h2 > Login</ h2 >
11+ < input type = "email" placeholder = "Email" className = { styles . input } />
12+ < input
13+ type = "password"
14+ placeholder = "Password"
15+ className = { styles . input }
16+ />
17+ < button className = { styles . button } > Login</ button >
18+ </ form >
19+ </ div >
20+ < Author name = "rrusyaidii" githubLink = "https://github.com/rrusyaidii" />
21+ </ >
22+ ) ;
23+ } ;
24+
25+ export default Login ;
Original file line number Diff line number Diff line change 1+ .container {
2+ display : flex;
3+ justify-content : center;
4+ align-items : center;
5+ height : 100vh ;
6+ background-color : # f4f4f4 ;
7+ }
8+
9+ .form {
10+ background : white;
11+ padding : 2rem ;
12+ border-radius : 8px ;
13+ box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.1 );
14+ width : 320px ;
15+ text-align : center;
16+ }
17+
18+ .input {
19+ width : 100% ;
20+ padding : 10px ;
21+ margin : 10px 0 ;
22+ border : 1px solid # ccc ;
23+ border-radius : 4px ;
24+ }
25+
26+ .button {
27+ width : 100% ;
28+ padding : 10px ;
29+ background-color : # 007bff ;
30+ color : white;
31+ border : none;
32+ border-radius : 4px ;
33+ cursor : pointer;
34+ }
35+
36+ .button : hover {
37+ background-color : # 0056b3 ;
38+ }
You can’t perform that action at this time.
0 commit comments