49 lines
975 B
TypeScript
49 lines
975 B
TypeScript
|
import React from 'react';
|
||
|
import styled, {createGlobalStyle } from 'styled-components';
|
||
|
import Navbar from 'components/Navbar';
|
||
|
|
||
|
const GlobalStyles = createGlobalStyle`
|
||
|
html, body {
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
font-family: Arial, Helvetica, sans-serif;
|
||
|
height: 100%;
|
||
|
flex: 1;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
background-color: #303030;
|
||
|
}
|
||
|
|
||
|
#__next {
|
||
|
flex: 1;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
|
||
|
.material-icons {
|
||
|
vertical-align: middle;
|
||
|
margin: 8px;
|
||
|
}
|
||
|
|
||
|
:root {
|
||
|
--primary: #e26f99,
|
||
|
};
|
||
|
`;
|
||
|
|
||
|
const Image = styled.img`
|
||
|
max-height: 28px;
|
||
|
margin-right: 5px;
|
||
|
`;
|
||
|
|
||
|
export default function App({ Component, pageProps }) {
|
||
|
return (
|
||
|
<>
|
||
|
<GlobalStyles />
|
||
|
<Navbar>
|
||
|
<Image src="/icon.png" />
|
||
|
ente
|
||
|
</Navbar>
|
||
|
<Component />
|
||
|
</>
|
||
|
);
|
||
|
}
|