Arquisoft / viade_en3b

Viade en3b
0 stars 3 forks source link

Home (Welcome) Window #55

Closed PabloCanalSuarez closed 4 years ago

PabloCanalSuarez commented 4 years ago

The application must have a home/welcome window. Very simple.

ElenaRodriguezRio commented 4 years ago

I think it should have just the login to access the application

PabloCanalSuarez commented 4 years ago

The login system is implemented in the NavBar. In case the user is not logged in, we must show some view, and that is the purpose of this Welcome Window.

It will have just a simply panel with some phrase like "Welcome to Viade", and the NavBar, where the buttons to register/login will be placed.

ElenaRodriguezRio commented 4 years ago

lgtm :)

PabloCanalSuarez commented 4 years ago

Final indexing looks like this:

<HashRouter>
    <Fragment>
      <Switch>
        <Route exact path="/404" component={PageNotFound} />
        <Redirect exact from="/" to="/welcome" />
        <Route exact path="/welcome" component={Welcome} />
        <Route exact path="/dashboard" component={Main} />
        <Route exact path="/register" component={Register}/>
        <Redirect to="/404" />
      </Switch>
    </Fragment>
  </HashRouter>