main
Last change
on this file since af801e3 was c68150f, checked in by unknown <mlviktor23@…>, 2 years ago |
left: moderation, oAuth, messaging
|
-
Property mode
set to
100644
|
File size:
974 bytes
|
Line | |
---|
1 | import React, { useContext } from "react";
|
---|
2 | import { MainWrapper, MainTitle } from "../Components/Styled/Main.style";
|
---|
3 | import { Outlet } from "react-router-dom";
|
---|
4 | import Search from "../Components/Search";
|
---|
5 | import UserHeader from "../Components/UserHeader";
|
---|
6 | import AuthApi from "../api/AuthApi";
|
---|
7 |
|
---|
8 | function Home({ user, userLoaded }) {
|
---|
9 | const { auth, setAuth } = useContext(AuthApi);
|
---|
10 |
|
---|
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 />
|
---|
26 | {auth && <UserHeader />}
|
---|
27 | <div style={{ marginTop: "140px" }}></div>
|
---|
28 | <Outlet />
|
---|
29 | </MainWrapper>
|
---|
30 | );
|
---|
31 | }
|
---|
32 |
|
---|
33 | export default Home;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.