Skip to content

Commit

Permalink
Ajuste de importação do logo e linhamento do footer
Browse files Browse the repository at this point in the history
  • Loading branch information
juliano340 committed Jul 2, 2022
1 parent 56aec06 commit 6a665d6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "imc",
"version": "0.1.0",
"private": true,
"homepage" : "https://juliano340.com/imc/",
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
Expand Down
11 changes: 10 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "./app.css";
import { useState } from "react";
import logo from './logo.png';


export default function App () {
Expand Down Expand Up @@ -40,7 +41,8 @@ export default function App () {

return (
<div className="app">
<img src="./logo.png" alt="Logo" className="logo"></img>
<img src={logo } alt="logo" className="logo"/>

<h1>Calculadora IMC</h1>
<span>Vamos calcular seu IMC:</span>
<div className="area-input">
Expand All @@ -59,7 +61,14 @@ export default function App () {
<button onClick={calcularImc}>Calcular</button>

</div>

<div className="saida">

<h2>{mensagem}</h2>

</div>


<div className="footer">
<footer><a href="https://juliano340.com">juliano340.com</a></footer>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;

}

Expand Down Expand Up @@ -67,4 +68,8 @@ h2{

a{
text-decoration: none;
}

.saida{
text-align: center;
}
Binary file added src/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a665d6

Please sign in to comment.