-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
156 lines (121 loc) · 3.53 KB
/
index.html
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Light Weight Preact Widgets</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<meta name="description" content="preact-widgets-boilerplate">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="preact-boilerplate">
<meta name="application-name" content="preact-widgets-boilerplate">
<style media="screen">
.bold-link,
h1,
h2 {
font-weight: 700;
}
* {
box-sizing: border-box;
}
body {
background: #f4f1ea;
font-family: sans-serif;
color: #37394c;
padding: 15px;
line-height: 24px;
}
.container {
width: 100%;
max-width: 900px;
margin: 0 auto;
}
.logo {
margin: 0 auto;
display: block;
width: 200px;
}
.logo img {
max-width: 100%;
}
h1 {
font-size: 30px;
text-align: center;
}
h2 {
font-size: 24px;
text-align: left;
}
.demo-box {
border: 2px dashed #ccc;
padding: 30px 10px 10px;
position: relative;
margin-bottom: 70px;
}
.demo-box sup {
position: absolute;
size: 9px;
opacity: .7;
top: 4px;
left: 10px;
}
.demo-box-1 {
width: 100%;
max-width: 400px;
margin: 0 auto;
}
.row-center {
width: 100%;
display: block;
position: relative;
margin-bottom: 15px;
text-align: center;
}
.row-center a {
display: inline-block;
}
.bold-link {
color: #269fad;
margin-right: 30px;
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<img src="/zouhir/preact-habitat/blob/master/docs/artwork.png?raw=true" alt="Preact Habitat">
</div>
<h1>Preact Habitat</h1>
<div class="row-center">
<a class="github-button" href="https://github.com/zouhir/preact-habitat" data-icon="octicon-star" data-style="mega" data-count-href="/zouhir/preact-habitat/stargazers"
data-count-api="/repos/zouhir/preact-habitat#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star zouhir/preact-habitat on GitHub">Star
</a>
</div>
<div class="row-center">
<a href="https://github.com/zouhir/preact-widgets-boilerplate" class="bold-link">Demo \ Example Repo
</a>
<a href="https://github.com/zouhir/preact-habitat" class="bold-link">Habitat Repo
</a>
</div>
<p>Preact habitat is a 1kb module that will help you ship your Preact components to any world wide DOM page in a very easy
and neat way.
</p>
<h2>Demo</h2>
<!-- that's how we embed the widget using habitat -->
<div class="demo-box" id="thrid-party-login-wrapper">
<sup>total: 18kb minified, 7kb gzipped</sup>
<script type="text/props">
{ "title": "Codepen App Login", "btnAccentColor": "#FFBB41", "btnText": "Sign in NOW!!" }
</script>
<!-- THAT IS ALL YOU NEED -->
<script async src="/build/bundle.js" type="text/javascript"></script>
</div>
<!-- //end that's how we embed the widget using habitat -->
<p>Built with 💛 and
<a href="https://preactjs.com/">Preact</a>by
<a href="http://zouhir.org">Zouhir</a>
</p>
</div>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>