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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
46 deletions
+35
-46
src/App.js
+27
-32
src/components/Home/Banner.js
+8
-14
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
(
<>
<
Header
/>
<
Homepage
/>
<
/
>
);
return
(
<>
<
Header
/>
<
Homepage
/>
<
/
>
);
};
const
messages
=
{
en
:
messages_en
,
th
:
messages_th
en
:
messages_en
,
th
:
messages_th
,
};
class
IntlApp
extends
Component
{
render
()
{
const
{
language
}
=
this
.
props
;
return
(
<
IntlProvider
defaultLocale
=
"en"
locale
=
{
language
}
key
=
{
language
}
messages
=
{
messages
[
language
]}
>
<
App
/>
<
/IntlProvider
>
);
}
render
()
{
const
{
language
}
=
this
.
props
;
return
(
<
IntlProvider
defaultLocale
=
"en"
locale
=
{
language
}
key
=
{
language
}
messages
=
{
messages
[
language
]}
>
<
App
/>
<
/IntlProvider
>
);
}
}
const
mapStateToProps
=
state
=>
{
return
{
language
:
state
.
localeReducer
.
language
};
return
{
language
:
state
.
localeReducer
.
language
,
};
};
export
default
connect
(
mapStateToProps
)(
IntlApp
);
src/components/Home/Banner.js
View file @
d2117e7d
...
...
@@ -3,23 +3,17 @@ 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
=
"content-width"
>
<
div
className
=
"banner-text-container"
>
<
h1
className
=
"banner-title"
>
NEXPIE
IOT
Platform
<
/h1
>
<
div
className
=
"banner-descrip-wrapper"
>
<
h2
>
CONNECT
<
/h2
>
<
h2
>
EVERYTHING
!<
/h2
>
<
/div
>
<
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
>
<
div
className
=
"banner-descrip-wrapper"
>
<
h2
>
CONNECT
<
/h2
>
<
h2
>
EVERYTHING
!<
/h2
>
<
/div
>
<
/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