-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcode-playground.config.js
82 lines (76 loc) · 2.2 KB
/
code-playground.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
module.exports = {
// server port
port : 3000,
// title
title : 's-google-map-info-window-component',
// layout
layout : 'right',
// compile server
compileServer : {
// compile server port
port : 4000
},
// editors
editors : {
html : {
language : 'html',
data : `
<h1 class="h3 m-b-small">
Coffeekraken s-google-map-info-window-component
</h1>
<p class="p m-b-bigger">
Provide a simple, declarative and powerful webcomponent wrapper to create google info window inside an s-google-map-marker component.
</p>
<s-google-map api-key="AIzaSyDCD2MPJFbXBkc5hNB5p8v21XcpeIo_5Mw" zoom="2" center="{lat: -25.363, lng: 131.044}">
<s-google-map-marker api-key="AIzaSyDCD2MPJFbXBkc5hNB5p8v21XcpeIo_5Mw" position="{lat: -25.363, lng: 131.044}">
<s-google-map-info-window opened>
<div class="my-cool-google-info-window">
<h1 class="h5 m-b">Hello World</h1>
<p class="p">Donec eu consequat nisl. Nullam faucibus rutrum lorem at vehicula. Praesent ut fermentum augue. Proin convallis semper magna, et viverra augue fermentum in. Sed vel sagittis quam, a eleifend quam.</p>
</div>
</s-google-map-info-window>
</s-google-map-marker-component>
</s-google-map>
`
},
css : {
language : 'sass',
data : `
@import 'node_modules/coffeekraken-sugar/index';
@import 'node_modules/coffeekraken-s-typography-component/index';
@include s-init();
@include s-classes();
@include s-typography-classes();
body {
padding: s-space(big);
}
s-google-map {
@include s-depth(5);
@include s-ratio(16/9);
border:5px white solid;
}
.my-cool-google-info-window {
min-width: s-rem(250px);
position:relative;
left:50%;
@include s-translate(-50%);
@include s-depth(4);
padding:s-rem(20px);
@include s-bubble(
$color : #fff,
$side : bottom,
$align : center
);
}
`
},
js : {
language : 'js',
data : `
import SGoogleMapComponent from 'coffeekraken-s-google-map-component'
import SGoogleMapMarkerComponent from 'coffeekraken-s-google-map-marker-component'
import SGoogleMapInfoWindowComponent from './dist/index'
`
}
}
}