diff --git a/components/Navigation/Navigation.module.scss b/components/Navigation/Navigation.module.scss index c233eb8..97c0f82 100644 --- a/components/Navigation/Navigation.module.scss +++ b/components/Navigation/Navigation.module.scss @@ -34,3 +34,18 @@ transform: scale(1.1); } } + +.mobile { + display: none; +} +@media screen and (max-width: 800px) { + .nav { + min-height: 3rem; + } + .desktop { + display: none; + } + .mobile { + display: inherit; + } +} diff --git a/components/Navigation/Navigation.tsx b/components/Navigation/Navigation.tsx index e3f514c..7310c4b 100644 --- a/components/Navigation/Navigation.tsx +++ b/components/Navigation/Navigation.tsx @@ -2,34 +2,39 @@ import styles from "./Navigation.module.scss"; import GractwoLogo from "../logo"; import Link from "next/link"; +import config from "../../data/config.json"; + const PageNavigation = () => { let username: string = ""; return ( <>
- - {/*

Gractwo!

*/} - - główna - - - o gractwie - - - cytaty - - - rankingi - + + {/* */} + {config.navigation.map((navlink) => { + return ( + + {navlink.name} + + ); + })} zaloguj się diff --git a/data/config.json b/data/config.json index 43340e7..3e3fa18 100644 --- a/data/config.json +++ b/data/config.json @@ -45,6 +45,24 @@ "author": "mollin" } ], + "navigation": [ + { + "name": "główna", + "href": "/" + }, + { + "name": "o gractwie", + "href": "/o-gractwie" + }, + { + "name": "cytaty", + "href": "/cytaty" + }, + { + "name": "rankingi", + "href": "/rankingi" + } + ], "links": [ { "name": "Discord",