Layout improvements, some additions

This commit is contained in:
2020-11-29 07:03:22 +05:00
parent df69c05ff5
commit 8dcbdbdbd5
38 changed files with 2249 additions and 94 deletions

View File

@ -2,10 +2,12 @@ import React from "react";
import { IRouteView } from "types/user";
import RouteCard from "./RouteCard";
import styles from "styles/RouteView.module.css";
const RouteView: React.FC<IRouteView> = ({ header, routes }) => {
return (
<>
<h1>{header}</h1>
<h1 className={styles.header}>{header}</h1>
{routes.map((route) => (
<RouteCard key={route.id} route={route} />
))}

View File

@ -1,28 +0,0 @@
import React from "react";
import Link from "next/link";
import { IHeaderProps } from "types/user";
const Header: React.FC<IHeaderProps> = ({ points }) => {
return (
<header>
<div>Очки: {points}</div>
<nav>
<ul>
<li>
<Link href="/profile">
<a>Профиль</a>
</Link>
</li>
<li>
<Link href="/achivements">
<a>Ачивки</a>
</Link>
</li>
</ul>
</nav>
</header>
);
};
export default Header;