Skip to content

Commit

Permalink
Basic UI Completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohit Bajaj authored and Mohit Bajaj committed Jul 25, 2019
1 parent cedb5d6 commit d9f9e4f
Show file tree
Hide file tree
Showing 20 changed files with 296 additions and 50 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
*copy*.*

# testing
/coverage
Expand Down
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
"react-scripts": "3.0.1",
"react-tilt": "^0.1.4",
"tachyons": "^4.11.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Face Reco Brain</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
26 changes: 0 additions & 26 deletions src/App.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/App.test.js

This file was deleted.

6 changes: 6 additions & 0 deletions src/components/ImageLinkForm/ImageLinkForm.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.formbox {
max-width: 80%;
width: 800px;
background-image: url("congruent_pentagon.png");
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
}
18 changes: 18 additions & 0 deletions src/components/ImageLinkForm/ImageLinkForm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import './ImageLinkForm.css'

const ImageLinkForm = () => {
return(
<div >
<p className="f3">
{'This magic brain will detect faces in your pictures!'}
</p>
<div className="formbox center shadow-5 pa5">
<input type="text" className="f4 pa2 w-70 center" name="" id=""/>
<button className="w-30 tc grow f4 link ph3 pv2 dib white bg-green b--white-05">Detect</button>
</div>
</div>
)
}

export default ImageLinkForm;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/components/Logo/Logo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.Tilt-inner img{
height: auto;
width: 80%;
}

.Tilt {
background: linear-gradient(90deg, rgba(0,166,141,1) 0%, rgba(10,176,241,1) 100%);
}
18 changes: 18 additions & 0 deletions src/components/Logo/Logo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import './Logo.css';
import brain from './brain.svg';
import Tilt from 'react-tilt';

const Logo = () => {
return(
<div className="ma4 mt0">
<Tilt className="Tilt br2 shadow-2 flex items-center justify-center" options={{ max : 50 }} style={{ height: 150, width: 150 }} >
<div className="Tilt-inner">
<img src={brain} alt="logo" className=""/>
</div>
</Tilt>
</div>
)
}

export default Logo;
163 changes: 163 additions & 0 deletions src/components/Logo/brain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/Navigation/Navigation.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.nav-style {
display: flex;
justify-content: flex-end;
}
12 changes: 12 additions & 0 deletions src/components/Navigation/Navigation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import './Navigation.css'

const Navigation = () => {
return(
<nav className = "nav-style">
<p className="f3 link dim black underline pa3 pointer">Sign Out</p>
</nav>
)
}

export default Navigation;
16 changes: 16 additions & 0 deletions src/components/Rank/Rank.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react';

const Rank = () => {
return(
<div className="white">
<div className="f3">
{'Mohit, your current rank is ....'}
</div>
<div className="f2 pa2">
{'#5'}
</div>
</div>
)
}

export default Rank;
File renamed without changes.
26 changes: 26 additions & 0 deletions src/containers/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React, { Component } from 'react';
import Navigation from '../components/Navigation/Navigation';
import Logo from '../components/Logo/Logo';
import ImageLinkForm from '../components/ImageLinkForm/ImageLinkForm';
import Rank from '../components/Rank/Rank';
import './App.css';

class App extends Component {
constructor() {
super();
}

render(){
return (
<div className="App">
<Navigation />
<Logo />
<Rank />
<ImageLinkForm />
{/* <FaceRecognition /> */}
</div>
);
}
}

export default App;
13 changes: 8 additions & 5 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding: 0;
background: rgb(0,166,141);
background: linear-gradient(90deg, rgba(0,166,141,1) 0%, rgba(10,176,241,1) 100%);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}

button {
cursor: pointer;
}
Loading

0 comments on commit d9f9e4f

Please sign in to comment.