mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-12 13:36:43 +00:00
set frontend link in sign in/up and landing pages
This commit is contained in:
parent
e2cc9f049c
commit
e29fe27014
3 changed files with 12 additions and 7 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
import React, {FC} from 'react';
|
import React, {FC} from 'react';
|
||||||
|
import {Link} from 'react-router-dom';
|
||||||
|
import * as ROUTES from '../constants/routes';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Landing page
|
* Landing page
|
||||||
|
|
@ -13,12 +15,12 @@ const Landing: FC = () => (
|
||||||
devs
|
devs
|
||||||
</p>
|
</p>
|
||||||
<div className="buttons">
|
<div className="buttons">
|
||||||
<a href="register.html" className="btn btn-primary">
|
<Link to={ROUTES.SIGN_UP} className="btn btn-primary">
|
||||||
Sign up
|
Sign up
|
||||||
</a>
|
</Link>
|
||||||
<a href="login.html" className="btn btn-light">
|
<Link to={ROUTES.SIGN_IN} className="btn btn-light">
|
||||||
Login
|
Login
|
||||||
</a>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
import React, {FC} from 'react';
|
import React, {FC} from 'react';
|
||||||
|
import * as ROUTES from '../constants/routes';
|
||||||
import Header from '../components/Header';
|
import Header from '../components/Header';
|
||||||
|
import {Link} from 'react-router-dom';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sign in form
|
* Sign in form
|
||||||
|
|
@ -19,7 +21,7 @@ const SignIn: FC = () => (
|
||||||
<input type="submit" value="Login" className="btn btn-primary" />
|
<input type="submit" value="Login" className="btn btn-primary" />
|
||||||
</form>
|
</form>
|
||||||
<p className="my-1">
|
<p className="my-1">
|
||||||
Don't have an account? <a href="register.html">Sign in</a>
|
Don't have an account? <Link to={ROUTES.SIGN_UP}>Sign up</Link>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import React, {FC} from 'react';
|
import React, {FC} from 'react';
|
||||||
|
import {Link} from 'react-router-dom';
|
||||||
import Header from '../components/Header';
|
import Header from '../components/Header';
|
||||||
|
import * as ROUTES from '../constants/routes';
|
||||||
/**
|
/**
|
||||||
* Sign up form
|
* Sign up form
|
||||||
*/
|
*/
|
||||||
|
|
@ -26,7 +27,7 @@ const SignUp: FC = () => (
|
||||||
<input type="submit" value="Register" className="btn btn-primary" />
|
<input type="submit" value="Register" className="btn btn-primary" />
|
||||||
</form>
|
</form>
|
||||||
<p className="my-1">
|
<p className="my-1">
|
||||||
Already have an account? <a href="login.html">Sign in</a>
|
Already have an account? <Link to={ROUTES.SIGN_IN}>Sign in</Link>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue