mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Make styling!!
This commit is contained in:
1 parent
0bbd463c01
commit
bc20bfac99
13 files changed
+115
-114
No files matched your search
+21
-16
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user