Skip to content

Commit 078d346

Browse files
authored
Merge pull request #25 from ymw0407/HomeTraining-Demo
Home training demo
2 parents 6b27d12 + eaae4ff commit 078d346

28 files changed

+105131
-476
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
22
*.ipk
33
com.*
4-
dist
4+
dist
5+
.env
6+
.eslintcache

โ€Žmain-HomeTraining/wallpad/exercise/exercise_app/.eslintcacheโ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"id": "com.exercise.app",
2+
"id": "com.exercisedemo.app",
33
"version": "1.0.0",
44
"vendor": "LGE-SVL",
55
"type": "web",
66
"main": "index.html",
7-
"title": "์šด๋™๋ณด์กฐ",
7+
"title": "์šด๋™๋ณด์กฐ(demo)",
88
"icon": "exer.png",
99
"miniicon": "exer.png",
1010
"largeIcon": "exer.png",
@@ -13,6 +13,6 @@
1313
"time.query",
1414
"activity.operation",
1515
"all",
16-
"com.exercise.app.service.group"
16+
"com.exercisedemo.app.service.group"
1717
]
1818
}

โ€Žmain-HomeTraining/wallpad/exercise/exercise_app/dist/chunk.131.jsโ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

โ€Žmain-HomeTraining/wallpad/exercise/exercise_app/dist/index.htmlโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
44
<meta charset="UTF-8">
55
<meta http-equiv="x-ua-compatible" content="ie=edge">
6-
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
77
<title></title>
88
<link href="main.css" rel="stylesheet"/></head>
99
<body>

โ€Žmain-HomeTraining/wallpad/exercise/exercise_app/dist/main.cssโ€Ž

Lines changed: 6471 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

โ€Žmain-HomeTraining/wallpad/exercise/exercise_app/dist/main.jsโ€Ž

Lines changed: 98300 additions & 16 deletions
Large diffs are not rendered by default.

โ€Žmain-HomeTraining/wallpad/exercise/exercise_app/dist/main.js.LICENSE.txtโ€Ž

Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
11
import React, { useEffect, useState } from "react";
2-
import styled, {css} from 'styled-components';
3-
import './Final.css';
2+
import { Panel, Header } from "@enact/sandstone/Panels";
3+
import styled, { css } from "styled-components";
4+
import LS2Request from "@enact/webos/LS2Request";
5+
import "./Final.css";
46

57
const Final = () => {
8+
const bridge = new LS2Request();
9+
const closeApp = (app_id) => {
10+
var lsRequest = {
11+
service: "luna://com.exercise.app.service",
12+
method: "close",
13+
parameters: {
14+
app_id: app_id,
15+
subscribe: true,
16+
},
17+
onSuccess: (msg) => {
18+
console.log(msg);
19+
},
20+
onFailure: (msg) => {
21+
console.log(msg);
22+
},
23+
};
24+
bridge.send(lsRequest);
25+
};
26+
627
return (
7-
<div className="final">
8-
</div>
9-
)
10-
}
28+
<Panel className="final" onClose={() => closeApp("com.exercisedemo.app")}>
29+
<Header />
30+
</Panel>
31+
);
32+
};
1133

12-
export default Final;
34+
export default Final;
Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
1-
.first {
2-
position: absolute;
3-
left: 0;
4-
top: 0;
5-
bottom: 0;
6-
right: 0;
1+
*{
2+
margin: 0;
3+
padding: 0;
4+
background-color: #54bdee;;
5+
}
6+
.First {
7+
background-size: cover;
8+
width: 100%;
9+
}
10+
.tem{
11+
display: flex;
12+
flex-direction: row;
13+
justify-content: space-between;
14+
}
15+
.content{
716
display: flex;
817
flex-direction: column;
9-
height: 100vh;
10-
width: auto;
11-
background-image: url(../../img/exer_back1.jpg);
12-
background-size: cover;
13-
}
14-
.app-title {
1518
color: white;
16-
font-size: 200px;
17-
margin-top: 200px;
18-
margin-left: 350px;
19+
font-size: 2rem;
20+
line-height: 2rem;
21+
border: 10px solid #0c7ac3;
22+
border-radius: 50px;
23+
padding: 200px;
24+
margin-left: 500px;
1925
}
20-
.tem {
21-
margin-left: 350px;
26+
27+
.but{
28+
margin-right: 500px;
2229
}
23-
.but {
24-
margin-top: 30px;
30+
31+
p {
32+
margin: 100px;
2533
}
26-
.content {
27-
margin-top: 350px;
28-
margin-left: -500px;
29-
color: white;
30-
font-size: 70px;
31-
border: 10px solid white;
32-
border-radius: 50px;
33-
padding: 30px 150px;
34+
h2{
35+
margin-bottom: 100px;
3436
}

0 commit comments

Comments
ย (0)