Skip to content

Commit af788cc

Browse files
either I'm much smarter than I think or I'm incredibly lucky
1 parent a59ff21 commit af788cc

File tree

15 files changed

+238
-92
lines changed

15 files changed

+238
-92
lines changed

package-lock.json

Lines changed: 0 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"axios": "^0.21.1",
2121
"color-parse": "^1.4.2",
2222
"color-rgba": "^2.4.0",
23-
"html2canvas": "^1.4.1",
2423
"react": "^17.0.2",
2524
"react-calendar": "^3.6.0",
2625
"react-dom": "^17.0.2",

src/components/background/back.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.background {
22
min-width: 100vw;
33
min-height: 100%;
4-
background-color: var(--wintheme);
4+
background-color: #fefefe;
55
background-repeat: no-repeat;
66
background-size: cover;
77
background-position: center;

src/components/main.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,14 @@ body{
7373
opacity: 1;
7474
}
7575
}
76+
77+
.press-in{
78+
transition: transform 200ms ease-in-out;
79+
&:active{
80+
transform: scale(0.86);
81+
}
82+
}
83+
84+
.quick-trans{
85+
transition: transform 100ms ease-in-out;
86+
}

src/containers/apps/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ import './index.scss';
66

77
export * from './whatsapp';
88
export * from './youtube';
9+
export * from './playstore';

src/containers/apps/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.app-wrappper{
1+
.app-wrapper{
22
pointer-events: auto;
33
height: 100%;
44
border-radius: 0;
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React, {useState, useEffect} from 'react';
2+
import {useSelector, useDispatch} from 'react-redux';
3+
4+
import {Icon, Image, LazyComponent} from '../../../components/utils';
5+
import {dispatchAction, dispatchAct} from "../../../store/actions";
6+
7+
const AppContainer = ({app, show, count}) => {
8+
const clstring = `${app.payload}-wrapper`;
9+
10+
return (
11+
<div className={"app-wrapper "+clstring} id={clstring} data-open={show}>
12+
<div className="app-icon-container">
13+
<Icon className="mdShad" src={"apps/" + app.icon} w={72} action="home/setHome"/>
14+
<span>{count}</span>
15+
</div>
16+
</div>
17+
);
18+
}
19+
20+
export const PlaystoreApp = () => {
21+
const [count, setCount] = useState(0);
22+
const app = useSelector(state => state.home.apps.playstore || {});
23+
const home = useSelector(state => state.home);
24+
const show = home.ishome==false && home.stack.at(-1)==app.payload;
25+
26+
useEffect(()=>{
27+
setCount(count + 1)
28+
}, [home])
29+
30+
return <LazyComponent show={show}>
31+
<AppContainer app={app} show={show} count={count}/>
32+
</LazyComponent>
33+
}

src/containers/apps/themes.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
.app-wrappper{
1+
.app-wrapper{
22
--app-bg: #fefefe;
33
background: var(--app-bg);
44
}
55

6-
.whatsapp-wrappper{
6+
.whatsapp-wrapper, .playstore-wrapper{
77
--app-bg: #fefefe;
88
background: var(--app-bg);
99
}
1010

11-
.whatsapp-viewport{
11+
.whatsapp-viewport, .playstore-viewport{
1212
--app-bg: #fefefe;
1313
--statusbg: var(--app-bg);
1414
--navbg: var(--app-bg);
1515
}
1616

17-
.youtube-wrappper{
17+
.youtube-wrapper{
1818
--app-bg: #121212;
1919
background: var(--app-bg);
2020
color: #fefefe;

src/containers/apps/whatsapp/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import {Icon, Image, LazyComponent} from '../../../components/utils';
55
import {dispatchAction, dispatchAct} from "../../../store/actions";
66

77
const AppContainer = ({app, show, count}) => {
8+
const clstring = `${app.payload}-wrapper`;
89

910
return (
10-
<div className={"app-wrappper "+`${app.payload}-wrappper`} data-open={show}>
11+
<div className={"app-wrapper "+clstring} id={clstring} data-open={show}>
1112
<div className="app-icon-container">
12-
<Icon className="mdShad" src={"apps/bg/" + app.icon} w={72} action="home/setHome"/>
13+
<Icon className="mdShad" src={"apps/" + app.icon} w={72} action="home/setHome"/>
1314
<span>{count}</span>
1415
</div>
1516
</div>

src/containers/apps/youtube/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import {Icon, Image, LazyComponent} from '../../../components/utils';
55
import {dispatchAction, dispatchAct} from "../../../store/actions";
66

77
const AppContainer = ({app, show, count}) => {
8+
const clstring = `${app.payload}-wrapper`;
89

910
return (
10-
<div className={"app-wrappper "+`${app.payload}-wrappper`} data-open={show}>
11+
<div className={"app-wrapper "+clstring} id={clstring} data-open={show}>
1112
<div className="app-icon-container">
1213
<Icon className="mdShad" src={"apps/" + app.icon} w={72} action="home/setHome"/>
1314
<span>{count}</span>

0 commit comments

Comments
 (0)