Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 27 additions & 21 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
import React, { Component } from 'react';
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
import logo from './logo.svg';
import './App.css';
import UserLogin from './components/userlogin';
import 'bootstrap/dist/js/bootstrap';

import { Link, Route, BrowserRouter as Router, Switch } from 'react-router-dom';
import React, { Component } from 'react';

import Gun from 'gun/gun';
import Home from './components/home';
import UserLogin from './components/userlogin';
import UserRegistration from './components/userregistration';
import logo from './logo.svg';

import Gun from 'gun/gun';
require('gun/sea');

class App extends Component {
render() {
return (
<Router>
<div className="container">
<nav className="navbar navbar-expand-lg navbar-light bg-light">
<Link to={'/'} className="navbar-brand">DGstudio App </Link>
<div className="collapse navbar-collapse" id="navbarSupportedContent">
<ul className="navbar-nav mr-auto">
<li className="nav-item">
<Link to={'/newUser'} className="nav-link">Sign Up</Link>
</li>
<li className="nav-item">
<Link to={'/login'} className="nav-link">Log In</Link>
</li>
<li className="nav-item">
<Link to={'/'} className="nav-link">Home</Link>
</li>
</ul>
</div>
</nav> <br/>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<Link to={'/'} className="navbar-brand">DGstudio App </Link>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item active">
<Link to={'/newUser'} className="nav-link">Sign Up</Link>
</li>
<li class="nav-item">
<Link to={'/login'} className="nav-link">Log In</Link>
</li>
<li class="nav-item">
<Link to={'/'} className="nav-link">Home</Link>
</li>
</ul>
</div>
</nav> <br/>
<h2>DGstudio App</h2> <br/>
<Switch>
<Route exact path='/newUser' component={ UserRegistration } />
Expand Down