2020-05-21 09:41:21 +02:00
|
|
|
import React from "react";
|
|
|
|
import styled, { createGlobalStyle } from "styled-components";
|
2020-05-19 22:01:53 +02:00
|
|
|
|
2020-05-21 09:41:21 +02:00
|
|
|
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";
|
2020-05-20 13:49:49 +02:00
|
|
|
|
2020-05-21 09:41:21 +02:00
|
|
|
import selectedTheme from "./components/themeManager";
|
2020-05-20 13:49:49 +02:00
|
|
|
|
|
|
|
const GlobalStyle = createGlobalStyle`
|
|
|
|
body {
|
|
|
|
background-color: ${selectedTheme.backgroundColor};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const AppContainer = styled.div`
|
2020-05-20 21:28:14 +02:00
|
|
|
max-width: 80%;
|
|
|
|
margin: auto;
|
|
|
|
padding: 10px;
|
2020-05-20 13:49:49 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
const App = () => (
|
2020-05-20 21:28:14 +02:00
|
|
|
<>
|
|
|
|
<GlobalStyle />
|
|
|
|
<AppContainer>
|
|
|
|
<SearchBar />
|
|
|
|
<SettingsModal />
|
|
|
|
<Greeter />
|
|
|
|
<AppList />
|
|
|
|
<BookmarkList />
|
|
|
|
</AppContainer>
|
|
|
|
</>
|
2020-05-20 13:49:49 +02:00
|
|
|
);
|
2020-05-19 22:01:53 +02:00
|
|
|
|
|
|
|
export default App;
|