mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
I really hope I didnt fuck anything up now
This commit is contained in:
1 parent
ad20755608
commit
ec37fcde46
67 files changed
No files matched your search
@@ -0,0 +1,67 @@
|
||||
import React from "react";
|
||||
import "./Phone.css";
|
||||
import "./i18n";
|
||||
import { Route } from "react-router-dom";
|
||||
import { useSettings } from "./apps/settings/hooks/useSettings";
|
||||
import { NotificationBar } from "./os/components/NotificationBar";
|
||||
import { NotificationIcon } from "./os/components/NotificationIcon";
|
||||
import { Navigation } from "./os/components/Navigation";
|
||||
import MessageIcon from "@material-ui/icons/Email";
|
||||
|
||||
import { HomeApp } from "./apps/home/components/Home";
|
||||
import { ContactsApp } from "./apps/contacts/components/ContactsApp";
|
||||
import { SettingsApp } from "./apps/settings/components/SettingsApp";
|
||||
import { PhoneApp } from "./apps/phone/components/PhoneApp";
|
||||
import { BankApp } from "./apps/bank/components/BankApp";
|
||||
import { ThemeProvider } from "@material-ui/core";
|
||||
import { CalculatorApp } from "./apps/calculator/components/CalculatorApp";
|
||||
import { useInitKeyboard } from "./os/hooks/useKeyboard";
|
||||
|
||||
function Phone() {
|
||||
useInitKeyboard();
|
||||
const { settings, currentTheme } = useSettings();
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={currentTheme()}>
|
||||
<div className="PhoneWrapper">
|
||||
<div style={{ zoom: "80%" }}>
|
||||
<div className="Phone">
|
||||
<div
|
||||
className="PhoneFrame"
|
||||
style={{
|
||||
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={[
|
||||
{
|
||||
key: "newMessage",
|
||||
icon: <NotificationIcon Icon={MessageIcon} />,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<div className="PhoneAppContainer">
|
||||
<Route exact path="/" component={HomeApp} />
|
||||
<Route exact path="/contacts" component={ContactsApp} />
|
||||
<Route exact path="/settings" component={SettingsApp} />
|
||||
<Route exact path="/phone" component={PhoneApp} />
|
||||
<Route exact path="/bank" component={BankApp} />
|
||||
<Route exact path="/calculator" component={CalculatorApp} />
|
||||
</div>
|
||||
<Navigation />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default Phone;
|
||||
Reference in new issue
Block a user