feat(ui): basic welcome page

This commit is contained in:
wpetit 2020-08-09 08:09:44 +02:00
parent 5806f196c4
commit 8cd9bdad50
2 changed files with 5 additions and 9 deletions

View File

@ -14,7 +14,7 @@ export const WelcomeContent: FunctionComponent<WelcomeContentProps> = () => {
Bienvenue sur Guesstimate !
</h1>
<h2 className="subtitle">
La solution pour réaliser simplement des estimations de temps pour vos projets !
La solution pour réaliser simplement des estimations de temps pour vos projets.
</h2>
</div>
</div>

View File

@ -1,9 +1,7 @@
import React, { Fragment, useState } from 'react';
import logo from '../resources/logo.svg';
import { useSelector } from 'react-redux';
import { Config } from '../config';
import { Link } from 'react-router-dom';
import { useUserProfileQuery, useUserProfile } from '../gql/queries/user';
import { useUserProfile } from '../gql/queries/user';
import { WithLoader } from './WithLoader';
export function Navbar() {
@ -37,7 +35,6 @@ export function Navbar() {
<div className={`navbar-menu ${isActive ? 'is-active' : ''}`}>
<div className="navbar-end">
<div className="navbar-item">
<WithLoader loading={loading}>
<div className="buttons">
{
user.id ?
@ -53,7 +50,7 @@ export function Navbar() {
</span>
</a>
</Fragment> :
<a className="button" href={Config.loginURL}>
<a className="button is-primary" href={Config.loginURL}>
<span className="icon">
<i className="fas fa-sign-in-alt"></i>
</span>
@ -61,7 +58,6 @@ export function Navbar() {
</a>
}
</div>
</WithLoader>
</div>
</div>
</div>