2020-07-08 19:36:36 +02:00
|
|
|
import React from "react";
|
|
|
|
import styled, { createGlobalStyle } from "styled-components";
|
|
|
|
|
|
|
|
import SearchBar from "./components/searchBar";
|
|
|
|
import Greeter from "./components/greeter";
|
|
|
|
import AppList from "./components/appList";
|
|
|
|
import BookmarkList from "./components/bookmarkList";
|
|
|
|
import SettingsModal from "./components/settingsModal";
|
|
|
|
|
|
|
|
import selectedTheme from "./components/themeManager";
|
|
|
|
|
|
|
|
const GlobalStyle = createGlobalStyle`
|
|
|
|
body {
|
|
|
|
background-color: ${selectedTheme.backgroundColor};
|
|
|
|
font-family: Roboto, sans-serif;
|
2020-07-10 00:04:47 +02:00
|
|
|
|
|
|
|
margin: auto;
|
|
|
|
max-width: 95%;
|
|
|
|
max-height: 100%;
|
|
|
|
|
|
|
|
@media (min-width: 1366px) {
|
|
|
|
max-width: 70%;
|
|
|
|
}
|
|
|
|
|
2020-07-08 19:36:36 +02:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-07-10 00:04:47 +02:00
|
|
|
const AppContainer = styled.div``;
|
2020-07-08 19:36:36 +02:00
|
|
|
|
|
|
|
const App = () => (
|
|
|
|
<>
|
|
|
|
<GlobalStyle />
|
|
|
|
<AppContainer>
|
|
|
|
<SearchBar />
|
|
|
|
<SettingsModal />
|
|
|
|
<Greeter />
|
|
|
|
<AppList />
|
|
|
|
<BookmarkList />
|
|
|
|
</AppContainer>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|