Skip to content

Commit

Permalink
Subject: Added module.css file for styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamibadd committed Oct 8, 2022
1 parent 335e07a commit aaaf4da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "jaria-frontend",
"name": "react-basic-boilerplate",
"version": "0.0.1",
"private": true,
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/views/auth/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, {useState} from 'react';
import {useDispatch} from "react-redux";
import {useNavigate} from 'react-router-dom';
import {login} from '../../../redux/actions';
import styles from './styles.module.css';

const Login = () => {
const [user, setUser] = useState({});
Expand All @@ -21,7 +22,7 @@ const Login = () => {
}
return (
<div>
<h6>Login here</h6>
<h1 className={styles.title}>Login here</h1>
<form onSubmit={onLogin}>
<input required={true} type="text" name='email' placeholder='email' onChange={onChange}/><br/>
<input required={true} type="password" name='password' placeholder='password' onChange={onChange}/><br/>
Expand Down
3 changes: 3 additions & 0 deletions src/views/auth/login/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.title {
color: tan;
}

0 comments on commit aaaf4da

Please sign in to comment.