Make styling!!

This commit is contained in:
J Francisco Rader committed 2020-08-22 17:20:44 -03:00
1 parent 0bbd463c01
commit bc20bfac99
13 files changed
+115 -114

No files matched your search

+21 -16
View File
@@ -11,9 +11,12 @@ import { NavigationBar } from "./os/components/NavigationBar";
import { HomeApp } from "./apps/home/components/Home";
import { ContactsApp } from "./apps/contacts/components/Contacts";
import { SettingsApp } from "./apps/settings/components/Settings";
import { ThemeProvider, createMuiTheme } from "@material-ui/core";
import { useConfig } from "./config/hooks/useConfig";
function Phone() {
const { settings } = useSettings();
const [config] = useConfig();
return (
<div className="PhoneWrapper">
<div style={{ zoom: "80%" }}>
@@ -24,23 +27,25 @@ function Phone() {
backgroundImage: `${process.env.PUBLIC_URL}url(/media/frames/${settings.frame})`,
}}
></div>
<div
id="phone"
className="PhoneScreen"
style={{
backgroundImage: `${process.env.PUBLIC_URL}url(/media/backgrounds/${settings.wallpaper})`,
}}
>
<NotificationBar
notifications={[<NotificationIcon Icon={MessageIcon} />]}
/>
<div className="PhoneAppContainer">
<Route exact path="/" component={HomeApp} />
<Route exact path="/contacts" component={ContactsApp} />
<Route exact path="/settings" component={SettingsApp} />
<ThemeProvider theme={createMuiTheme(config.themes[settings.theme])}>
<div
id="phone"
className="PhoneScreen"
style={{
backgroundImage: `${process.env.PUBLIC_URL}url(/media/backgrounds/${settings.wallpaper})`,
}}
>
<NotificationBar
notifications={[<NotificationIcon Icon={MessageIcon} />]}
/>
<div className="PhoneAppContainer">
<Route exact path="/" component={HomeApp} />
<Route exact path="/contacts" component={ContactsApp} />
<Route exact path="/settings" component={SettingsApp} />
</div>
<NavigationBar />
</div>
<NavigationBar />
</div>
</ThemeProvider>
</div>
</div>
</div>