ente/src/pages/_app.tsx

49 lines
975 B
TypeScript
Raw Normal View History

2020-09-09 21:09:51 +00:00
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 />
</>
);
}