main
Last change
on this file since a5aba17 was c68150f, checked in by unknown <mlviktor23@…>, 2 years ago |
left: moderation, oAuth, messaging
|
-
Property mode
set to
100644
|
File size:
974 bytes
|
Rev | Line | |
---|
[702ca77] | 1 | import React, { useContext } from "react";
|
---|
[800779d] | 2 | import { MainWrapper, MainTitle } from "../Components/Styled/Main.style";
|
---|
| 3 | import { Outlet } from "react-router-dom";
|
---|
| 4 | import Search from "../Components/Search";
|
---|
[702ca77] | 5 | import UserHeader from "../Components/UserHeader";
|
---|
| 6 | import AuthApi from "../api/AuthApi";
|
---|
[800779d] | 7 |
|
---|
[6221ab6] | 8 | function Home({ user, userLoaded }) {
|
---|
[702ca77] | 9 | const { auth, setAuth } = useContext(AuthApi);
|
---|
| 10 |
|
---|
[800779d] | 11 | return (
|
---|
| 12 | <MainWrapper>
|
---|
| 13 | <style>
|
---|
| 14 | @import
|
---|
| 15 | url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');
|
---|
| 16 | </style>
|
---|
| 17 | <style>
|
---|
| 18 | {
|
---|
| 19 | "body { background-color: papayawhip;} * {margin: 0; padding: 0; box-sizing: border-box;}"
|
---|
| 20 | }
|
---|
| 21 | </style>
|
---|
| 22 | <a href="/">
|
---|
| 23 | <MainTitle>profesori.mk</MainTitle>
|
---|
| 24 | </a>{" "}
|
---|
| 25 | <Search />
|
---|
[c68150f] | 26 | {auth && <UserHeader />}
|
---|
[6eba109] | 27 | <div style={{ marginTop: "140px" }}></div>
|
---|
[800779d] | 28 | <Outlet />
|
---|
| 29 | </MainWrapper>
|
---|
| 30 | );
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | export default Home;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.