Skip to content

Commit

Permalink
added animation to kiwi
Browse files Browse the repository at this point in the history
  • Loading branch information
Istott committed Jun 26, 2020
1 parent 6fd2735 commit 032cae9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
9 changes: 1 addition & 8 deletions wmp/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,4 @@
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

7 changes: 3 additions & 4 deletions wmp/src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import './navbar.css';
const Navbar = () => {
const history = useHistory();
const [name, setName] = useState('')
console.log('username state', name)


// console.log('username state', name)

useEffect(() => {
axiosWithAuth()
Expand All @@ -43,7 +41,8 @@ const Navbar = () => {
<div className="NavBar">
<h1>Water My Plants</h1>

<h3>Welcome {name} &#129373;</h3>
<h3>Welcome {name} <div className="kiwi"> &#129373;</div></h3>


<div className='linky'>
<button onClick={newPlant}>New Plant</button>
Expand Down
14 changes: 14 additions & 0 deletions wmp/src/components/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

.NavBar h1 {
margin-left: 1%;
animation-name: bounce;
}

.NavBar h3 {
Expand All @@ -15,6 +16,19 @@
align-items: center;
}

.kiwi {
animation: App-logo-spin infinite 10s linear;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

.linky, .logout {
display: flex;
align-items: center;
Expand Down

0 comments on commit 032cae9

Please sign in to comment.