-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
445 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets": ["es2015", "stage-0"], | ||
"plugins": [ | ||
["transform-react-jsx", { "pragma": "h" }] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"parser": "babel-eslint", | ||
"rules": { | ||
"quotes": [2, "single"], | ||
"strict": [2, "never"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
|
||
|
||
html, body { | ||
background: #e5e5e5; | ||
font-family: 'Lato', sans-serif; | ||
margin: 0px auto; | ||
} | ||
|
||
/* H E A D E R */ | ||
|
||
.header { | ||
position: fixed; | ||
top: 0px; | ||
left: 0px; | ||
right: 0px; | ||
width: 100%; | ||
height: 30px; | ||
background: rgba(82,179,217,0.9); | ||
z-index: 100; | ||
} | ||
|
||
.title { | ||
position: absolute; | ||
width: 90px; | ||
height: 30px; | ||
top: 0px; | ||
left: 0px; | ||
color: #fff; | ||
line-height: 30px; | ||
font-size: 20px; | ||
padding-left: 10px; | ||
} | ||
|
||
/* M E S S A G E S */ | ||
|
||
.chat { | ||
list-style: none; | ||
background: none; | ||
margin: 0; | ||
padding: 0 0 50px 0; | ||
margin-bottom: 10px; | ||
} | ||
.chat li { | ||
padding: 0.5rem; | ||
font-size: 0.9rem; | ||
overflow: hidden; | ||
display: flex; | ||
} | ||
|
||
.other .msg { | ||
order: 1; | ||
border-top-left-radius: 0px; | ||
box-shadow: -1px 2px 0px #D4D4D4; | ||
} | ||
.other:before { | ||
content: ""; | ||
position: relative; | ||
top: 0px; | ||
right: 0px; | ||
left: 40px; | ||
width: 0px; | ||
height: 0px; | ||
border: 5px solid #fff; | ||
border-left-color: transparent; | ||
border-bottom-color: transparent; | ||
} | ||
|
||
.self { | ||
justify-content: flex-end; | ||
align-items: flex-end; | ||
} | ||
.self .msg { | ||
order: 1; | ||
border-bottom-right-radius: 0px; | ||
box-shadow: 1px 2px 0px #D4D4D4; | ||
} | ||
|
||
.msg { | ||
background: white; | ||
min-width: 50px; | ||
padding: 10px; | ||
border-radius: 2px; | ||
box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07); | ||
} | ||
|
||
::-webkit-scrollbar { | ||
min-width: 12px; | ||
width: 12px; | ||
max-width: 12px; | ||
min-height: 12px; | ||
height: 12px; | ||
max-height: 12px; | ||
background: #e5e5e5; | ||
box-shadow: inset 0px -32px 0px #fafafa; | ||
} | ||
|
||
::-webkit-scrollbar-thumb { | ||
background: #bbb; | ||
border: none; | ||
border-radius: 100px; | ||
border: solid 3px #e5e5e5; | ||
box-shadow: inset 0px 0px 3px #999; | ||
} | ||
|
||
::-webkit-scrollbar-thumb:hover { | ||
background: #b0b0b0; | ||
box-shadow: inset 0px 0px 3px #888; | ||
} | ||
|
||
::-webkit-scrollbar-thumb:active { | ||
background: #aaa; | ||
box-shadow: inset 0px 0px 3px #7f7f7f; | ||
} | ||
|
||
::-webkit-scrollbar-button { | ||
display: block; | ||
} | ||
|
||
/* I N P U T */ | ||
|
||
input.textarea { | ||
position: fixed; | ||
bottom: 0px; | ||
left: 0px; | ||
right: 0px; | ||
width: 100%; | ||
height: 30px; | ||
z-index: 99; | ||
background: #fafafa; | ||
border: none; | ||
outline: none; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
color: #666; | ||
font-weight: 400; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
let webpack = require('webpack'); | ||
let WebpackDevServer = require('webpack-dev-server'); | ||
let config = require('./webpack.config'); | ||
|
||
new WebpackDevServer(webpack(config), { | ||
publicPath: config.output.publicPath, | ||
hot: true, | ||
historyApiFallback: true | ||
}).listen(3000, 'localhost', function (err, result) { | ||
if (err) { | ||
console.log(err); | ||
} | ||
|
||
console.log('Listening at localhost:3000'); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Intergram Test Page</title> | ||
<meta name="description" content="Intergram test page"> | ||
<meta name="author" content="idoco"> | ||
</head> | ||
<body> | ||
<head> | ||
<title>Intergram Demo Page</title> | ||
</head> | ||
<body> | ||
|
||
<h3>Test Page</h3> | ||
<h1>Intergram Demo Page</h1> | ||
|
||
<script> window.intergramId = 312940879; </script> | ||
<script id="intergram" type="text/javascript" | ||
src="https://idoco.github.io/intergram/embed/inject.js"></script> | ||
<script> window.intergramId = 312940879; </script> | ||
<script src="static/widget.js"></script> | ||
|
||
</body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.