mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Notification bar
This commit is contained in:
1 parent
205dcabf12
commit
68fd91d4d0
17 files changed
+191
-27
No files matched your search
+15
-2
@@ -1,10 +1,16 @@
|
||||
import React from "react";
|
||||
import "./Phone.css";
|
||||
import "./i18n";
|
||||
import { Route } from "react-router-dom";
|
||||
import { HomeApp } from "./apps/home/components/Home";
|
||||
import { ContactsApp } from "./apps/contacts/components/Contacts";
|
||||
import { NotificationBar } from "./os/components/NotificationBar";
|
||||
import { useSettings } from "./apps/settings/hooks/useSettings";
|
||||
import MessageIcon from "@material-ui/icons/Email";
|
||||
import { NotificationIcon } from "./os/components/NotificationIcon";
|
||||
|
||||
function Phone() {
|
||||
const [settings] = useSettings();
|
||||
return (
|
||||
<div className="PhoneWrapper">
|
||||
<div style={{ zoom: "80%" }}>
|
||||
@@ -12,10 +18,17 @@ function Phone() {
|
||||
<div
|
||||
className="PhoneFrame"
|
||||
style={{
|
||||
backgroundImage: `${process.env.PUBLIC_URL}url(/media/frames/default.png)`,
|
||||
backgroundImage: `${process.env.PUBLIC_URL}url(/media/frames/${settings.frame})`,
|
||||
}}
|
||||
></div>
|
||||
<div className="PhoneScreen" id="phone">
|
||||
<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} />
|
||||
|
||||
Reference in new issue
Block a user