From 4281b5c5d299cfe636f4498ef292bac66eb045cf Mon Sep 17 00:00:00 2001 From: mrfry Date: Tue, 16 Mar 2021 17:51:05 +0100 Subject: [PATCH] Removed contacts from menu --- src/data/tabs.json | 4 ---- src/pages/_app.js | 4 +++- src/pages/contact.module.css | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/data/tabs.json b/src/data/tabs.json index 0a24a09..84b82a7 100644 --- a/src/data/tabs.json +++ b/src/data/tabs.json @@ -18,9 +18,5 @@ "ranklist": { "href": "/ranklist", "text": "Ranklista" - }, - "contact": { - "href": "/contact", - "text": "Kapcsolat" } } diff --git a/src/pages/_app.js b/src/pages/_app.js index 18161cb..8df9f8f 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -22,7 +22,9 @@ function MyApp({ Component, pageProps, router }) { return resp.json() }) .then((data) => { - setUserId(data.uid) + // setUserId(data.uid) + // TODO:uncomment, and delete + setUserId(1) setMotd(data.motd) setUserSpecificMotd(data.userSpecificMotd) }) diff --git a/src/pages/contact.module.css b/src/pages/contact.module.css index 620c8fb..2d8434b 100644 --- a/src/pages/contact.module.css +++ b/src/pages/contact.module.css @@ -2,6 +2,24 @@ margin: 5px; } +.contactsContainer > div:first-child { + display: flex; + justify-content: center; + padding: 5px; + /* ide az a menő stílus a headernek mint a ranklistnél van */ +} + .contactsContainer > div { display: flex; } + +.contactsContainer > div > div { + padding: 5px; +} + +.contactsContainer > div > div:nth-child(1) { + flex: 0 150px; +} +.contactsContainer > div > div:nth-child(2) { + flex: 1; +}