Skip to content

Commit

Permalink
converted to class App and made text Bold
Browse files Browse the repository at this point in the history
  • Loading branch information
dhafer94 committed Dec 1, 2021
1 parent 393afb1 commit d9e7da2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
38 changes: 20 additions & 18 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { Component } from 'react';
import Navigation from './Components/Navigation/Navigation';
import Logo from './Components/Logo/Logo';
import ImageLinkForm from './Components/ImageLinkForm/ImageLinkForm';
Expand All @@ -10,24 +10,26 @@ import particlesOptions, {
} from './particlesOptions';
import './App.css';

function App() {
return (
<>
<Particles
className='particles'
id='tsparticles'
init={particlesInit}
loaded={particlesLoaded}
options={particlesOptions}
/>
<Navigation />
<Logo />
<Rank />
<ImageLinkForm />
class App extends Component {
render() {
return (
<>
<Particles
className='particles'
id='tsparticles'
init={particlesInit}
loaded={particlesLoaded}
options={particlesOptions}
/>
<Navigation />
<Logo />
<Rank />
<ImageLinkForm />

{/* <FaceRecognition /> */}
</>
);
{/* <FaceRecognition /> */}
</>
);
}
}

export default App;
4 changes: 2 additions & 2 deletions src/Components/ImageLinkForm/ImageLinkForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import './ImageLinkForm.css';

const ImageLinkForm = () => {
return (
<div>
<div className='b'>
<p className='f3 center'>
{`This Magic Brain will detect faces in your pictures. Give it a try`}
</p>
<div className='center'>
<div className='form center pa4 br3 shadow-5'>
<input className='f4 pa2 w-70 center' type='text' />
<button className='w-30 grow f4 link ph3 pv2 dib white bg-orange'>
<button className='b w-30 grow f4 link ph3 pv2 dib white bg-orange'>
Detect
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Navigation/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
const Navigation = () => {
return (
<nav style={{ display: 'flex', justifyContent: 'flex-end' }}>
<p className='f3 link dim black underline pa3 pointer'>Sign Out</p>
<p className='b f3 link dim black underline pa3 pointer'>Sign Out</p>
</nav>
);
};
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Rank/Rank.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React from 'react';
const Rank = () => {
return (
<div>
<div className=' center white f3'>{`Dhafer, your current rank is...`}</div>
<div className=' center white f1'>{`#5`}</div>
<div className='b center white f3'>{`Dhafer, your current rank is...`}</div>
<div className='b center white f1'>{`#5`}</div>
</div>
);
};
Expand Down

0 comments on commit d9e7da2

Please sign in to comment.