feat: added logo to nav

This commit is contained in:
ysandler 2020-08-08 10:57:40 -05:00 committed by Joshua Shoemaker
parent 95fecf31c9
commit 311842631d
3 changed files with 16 additions and 1 deletions

BIN
src/img/adaLovelace.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -1,3 +1,10 @@
.brandHeader {
display: flex;
justify-content: space-around;
width: 280px;
margin: 0px auto;
}
.Nav{
height: 40px;
background-color: #2185d0;
@ -9,4 +16,9 @@
display: inline-block;
margin: 10px auto 0px auto;
font-size: 24px;
}
.logo {
width: 36px;
border-radius: 100%;
}

View File

@ -1,11 +1,14 @@
import React, { Component } from 'react'
import './Nav.css'
import adaLovelaceLogo from '../../img/adaLovelace.jpg'
class Nav extends Component {
render = () => {
return (
<div className='Nav'>
<span className='appName'>Lovelace.Technology</span>
<div className='brandHeader'>
<span className='appName'>Lovelace</span><img src={adaLovelaceLogo} alt='logo' className='logo' /><span className='appName'>Technology</span>
</div>
</div>
)
}