Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
nagulan23 committed Mar 8, 2021
1 parent 02ba81e commit 3c565b5
Show file tree
Hide file tree
Showing 32 changed files with 23,930 additions and 84 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/build

# misc
.env
.DS_Store
.env.local
.env.development.local
Expand Down
22,517 changes: 22,493 additions & 24 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^4.11.3",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^12.7.3",
"bootstrap": "^4.6.0",
"dotenv": "^8.2.0",
"firebase": "^8.2.9",
"latest-version": "^5.1.0",
"react": "^17.0.1",
"react-bootstrap": "^1.5.1",
"react-dom": "^17.0.1",
"react-indiana-drag-scroll": "^1.8.1",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"react-scroll-horizontal": "^1.6.6",
"react-spring": "^8.0.27",
"react-use-gesture": "^9.1.1",
"web-vitals": "^1.1.0"
},
"scripts": {
Expand Down
Binary file added src.zip
Binary file not shown.
38 changes: 0 additions & 38 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +0,0 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
86 changes: 67 additions & 19 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,73 @@
import logo from './logo.svg';
import './App.css';
import "./App.css";
import firebaseAuth from "./provider/AuthProvider";
import Home from "./components/home page/home";
import Signin from "./components/Signin page/signin";
import {
BrowserRouter as Router,
Route,
useHistory,
Redirect,
Switch,
} from "react-router-dom";
import React, { Component, useContext } from "react";

function App() {
/*function App() {
const {handleSignup,handleSignin,inputs,setInputs,errors} = useContext(firebaseAuth)
console.log(handleSignup)
const handleSubmit = (e) => {
e.preventDefault()
return(handleSignin())
}
const handleChange = e => {
const {name, value} = e.target
setInputs(prev => ({...prev, [name]: value}))
}
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
<form onSubmit={handleSubmit}>
signin
<input onChange={handleChange} name="email" placeholder='email' value={inputs.email} />
<input onChange={handleChange} name="password" placeholder='password' value={inputs.password} />
<button>signin</button>
</form>
);
}
export default App;*/
class App extends Component {
constructor() {
super();
this.changeHomePage = this.changeHomePage.bind(this);
this.changeSigninPage=this.changeSigninPage.bind(this);
}

changeHomePage() {
console.log("change home called");
this.setState({ redirect: "/home" });
}

changeSigninPage() {
console.log("change signin called");
this.setState({ redirect: "/" });
}

state = {
redirect: "",
};
render() {
return (
<React.Fragment>
<Redirect to={this.state.redirect} />
<Switch>
<Route exact path="/">
<Signin changeHomePage={this.changeHomePage} />
</Route>
<Route exact path="/home">
<Home changeSigninPage={this.changeSigninPage} />
</Route>
</Switch>
</React.Fragment>
);
}
}

export default App;
Binary file added src/assets/amrita-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/bgpic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/bgpic1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3c565b5

Please sign in to comment.