Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css update #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"@fortawesome/fontawesome-free-solid": "^5.0.13",
"@fortawesome/react-fontawesome": "0.0.20",
"axios": "^0.18.0",
"bootstrap": "^4.1.1",
"react": "^16.4.0",
"react-alert": "^4.0.4",
"react-alert-template-basic": "^1.0.0",
Expand Down
2 changes: 2 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>

<script src="https://unpkg.com/@material-ui/core/umd/material-ui.production.min.js" crossorigin="anonymous"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preferir usar o módulo webpack atrávez de ex: npm install material-ui ao invés de módulos UMD.

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
Expand Down
2 changes: 1 addition & 1 deletion src/components/login/Login.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.Login {
background-image: url("../../images/login.jpg");
background-image: linear-gradient(to right bottom, #00296b, #003793);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Expand Down
6 changes: 5 additions & 1 deletion src/components/login/LoginBox.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
.LoginBox {
background-color: rgba(0, 0, 0, 0.4);
padding: 1.5rem 3rem 0.3rem 3rem;
border-radius: 1%;
-webkit-box-shadow: 0px 0px 16px 0px rgba(94,166,255,1);
-moz-box-shadow: 0px 0px 16px 0px rgba(94,166,255,1);
box-shadow: 0px 0px 16px 0px rgba(94,166,255,1);
}

img {
margin-bottom: 1.5rem;
margin-bottom: 2rem;
}
3 changes: 2 additions & 1 deletion src/components/login/LoginForm.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {Component} from 'react';
import Button from '@material-ui/core/Button';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import { faUser, faUnlock } from '@fortawesome/fontawesome-free-solid';
import './LoginForm.css';
Expand Down Expand Up @@ -77,7 +78,7 @@ class Login extends Component {
</div>
</div>

<button onClick={this.handleClick} className="btn btn-dark btn-block">Login</button>
<Button onClick={this.handleClick} variant="contained" color="primary" className="btn-block">Login</Button>
</form>

<div className="d-flex justify-content-center">
Expand Down
Binary file removed src/images/login.jpg
Binary file not shown.