Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
landingPage-Nexpie
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
atichat
landingPage-Nexpie
Commits
d2117e7d
Commit
d2117e7d
authored
Aug 12, 2019
by
HaOuiha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f2ff3aa7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
23 deletions
+12
-23
src/App.js
+11
-16
src/components/Home/Banner.js
+1
-7
No files found.
src/App.js
View file @
d2117e7d
import
React
,
{
Component
}
from
"react"
;
import
{
IntlProvider
}
from
"react-intl"
;
import
React
,
{
Component
}
from
'react'
;
import
{
IntlProvider
}
from
'react-intl'
;
import
messages_en
from
"./translations/en.json"
;
import
messages_th
from
"./translations/th.json"
;
import
{
connect
}
from
"react-redux"
;
import
messages_en
from
'./translations/en.json'
;
import
messages_th
from
'./translations/th.json'
;
import
{
connect
}
from
'react-redux'
;
import
Header
from
"components/Header"
;
import
Homepage
from
"pages/Homepage"
;
import
"./scss/style.scss"
;
import
Header
from
'components/Header'
;
import
Homepage
from
'pages/Homepage'
;
import
'./scss/style.scss'
;
const
App
=
()
=>
{
return
(
...
...
@@ -20,19 +20,14 @@ const App = () => {
const
messages
=
{
en
:
messages_en
,
th
:
messages_th
th
:
messages_th
,
};
class
IntlApp
extends
Component
{
render
()
{
const
{
language
}
=
this
.
props
;
return
(
<
IntlProvider
defaultLocale
=
"en"
locale
=
{
language
}
key
=
{
language
}
messages
=
{
messages
[
language
]}
>
<
IntlProvider
defaultLocale
=
"en"
locale
=
{
language
}
key
=
{
language
}
messages
=
{
messages
[
language
]}
>
<
App
/>
<
/IntlProvider
>
);
...
...
@@ -41,7 +36,7 @@ class IntlApp extends Component {
const
mapStateToProps
=
state
=>
{
return
{
language
:
state
.
localeReducer
.
language
language
:
state
.
localeReducer
.
language
,
};
};
...
...
src/components/Home/Banner.js
View file @
d2117e7d
...
...
@@ -3,12 +3,7 @@ import React from 'react';
export
default
class
Banner
extends
React
.
Component
{
render
()
{
return
(
<>
<
div
className
=
"section"
style
=
{{
background
:
'linear-gradient(to right bottom, #194db7, #3fd4e6)'
,
}}
>
<
div
className
=
"section "
style
=
{{
background
:
'linear-gradient(to right bottom, #194db7, #3fd4e6)'
}}
>
<
div
className
=
"content-width"
>
<
div
className
=
"banner-text-container"
>
<
h1
className
=
"banner-title"
>
NEXPIE
IOT
Platform
<
/h1
>
...
...
@@ -19,7 +14,6 @@ export default class Banner extends React.Component {
<
/div
>
<
/div
>
<
/div
>
<
/
>
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment