Skip to content

Commit d46adcb

Browse files
authored
Merge pull request #2 from opencomponents/review
review
2 parents 5c32f87 + b972e04 commit d46adcb

File tree

7 files changed

+9764
-12
lines changed

7 files changed

+9764
-12
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# opencomponents.github.io
2+
3+
opencomponents.github.io
4+
5+
```bash
6+
npx oc dev components 3030
7+
```

components/landing-page/css/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ body {
3030
}
3131

3232
#hero header h1 {
33-
font-family: SourceSansPro-SemiBold;
3433
font-size: 80px;
3534
margin: 0;
3635
}

components/landing-page/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "landing-page",
33
"description": "",
4-
"version": "1.0.5",
4+
"version": "1.1.0",
55
"oc": {
66
"files": {
77
"data": "server.js",

components/landing-page/template.hbs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<header>
1919
<h1>Building web applications together, faster.</h1>
2020
</header>
21-
<p>While microservice architectures allowed teams to scale delivery of independently deployable services, most frontend layers are still run as monoluthic applications. Similar to server-side applications, frontend layers often grows into large monoliths that are difficult to mantain and evolve</p>
22-
<p>The idea behind <a href="https://www.thoughtworks.com/radar/techniques/micro-frontends" target="_blank">micro frontends</a> is to enable multiple teams to seamless work together by fostering end-to-end onwership of indipendently developed, tested and deployed features.</p>
23-
<p>Think about UI as the composition of features which are maintained by independent teams. These teams could be cross functional allowing them to develop such features end-to-end, from database to user interface and indipendently deploy them.</p>
21+
<p>While microservice architectures allowed teams to scale delivery of independently deployable services, most frontend layers are still run as monolithic applications. Similar to server-side applications, frontend layers often grow into large monoliths that are difficult to maintain and evolve.</p>
22+
<p>The idea behind <a href="https://www.thoughtworks.com/radar/techniques/micro-frontends" target="_blank">micro frontends</a> is to enable multiple teams to seamless work together by fostering end-to-end ownership of independently developed, tested and deployed features.</p>
23+
<p>Think about UI as the composition of features which are maintained by independent teams. These teams could be cross functional allowing them to develop such features end-to-end, from a database to user interface and independently deploy them.</p>
2424
</article>
2525

2626
<div class="hr">
@@ -36,35 +36,35 @@
3636
<img src="{{staticPath}}img/components.png" />
3737
<div>
3838
<h2>Components</h2>
39-
<p>Small, immutable, units of universal code mainly consisting of html, javascript and css. They can optionally contain some logic, allowing a server-side node.js application to compose a model that is used to render the view. After rendering they are pieces of pure html to be injected in any html page. <a href="https://github.com/opentable/oc/wiki#components-management" target="_blank">Learn more</a></p>
39+
<p>Small, immutable, units of universal code mainly consisting of html, javascript and css. They can optionally contain some logic, allowing a server-side node.js application to compose a model that is used to render the view. After rendering they are pieces of pure html to be injected into any html page. <a href="https://github.com/opentable/oc/wiki#components-management" target="_blank">Learn more</a></p>
4040
</div>
4141
</div>
4242
<div class="block img-right">
4343
<img src="{{staticPath}}img/template-system.png" />
4444
<div>
4545
<h2>Template system</h2>
46-
<p>OC is unopionated about components and their underlying client-side JavaScript stack. The template system allows for support of any client-side technology, hiding away all the configuration complexity while avoiding specific UI framework lock-in. <a href="https://github.com/opentable/oc/wiki/The-template-system" target="_blank">Learn more</a></p>
46+
<p>OC is unopinionated about components and their underlying client-side JavaScript stack. The template system allows for support of any client-side technology, hiding away all the configuration complexity while avoiding specific UI framework lock-in. <a href="https://github.com/opentable/oc/wiki/The-template-system" target="_blank">Learn more</a></p>
4747
</div>
4848
</div>
4949
<div class="block">
5050
<img src="{{staticPath}}img/registry.png" />
5151
<div>
5252
<h2>Registry</h2>
53-
<p>The registry provide a rest API to consume, retrieve, and publish components to a library. When components depend on static resources (such as images, css files, etc.) these are stored, during packaging and publishing, in a publicly-exposed part of the library that serves as cdn. <a href="https://github.com/opentable/oc/wiki/Registry" target="_blank">Learn more</a></p>
53+
<p>The registry provides a rest API to consume, retrieve, and publish components to a library. When components depend on static resources (such as images, css files, etc.) these are stored, during packaging and publishing, in a publicly-exposed part of the library that serves as CDN. <a href="https://github.com/opentable/oc/wiki/Registry" target="_blank">Learn more</a></p>
5454
</div>
5555
</div>
5656
<div class="block img-right">
5757
<img src="{{staticPath}}img/cli.png" />
5858
<div>
5959
<h2>CLI</h2>
60-
<p>The CLI tool allows developers to create, develop, and test components locally. It also allow to publish components to live registry. <a href="https://github.com/opentable/oc/wiki/Cli" target="_blank">Learn more</a></p>
60+
<p>The CLI tool allows developers to create, develop, and test components locally. It also allows publishing components to your registry. <a href="https://github.com/opentable/oc/wiki/Cli" target="_blank">Learn more</a></p>
6161
</div>
6262
</div>
6363
<div class="block">
6464
<img src="{{staticPath}}img/clients.png" />
6565
<div>
6666
<h2>Client libraries</h2>
67-
<p>Multiple libraries are available, allowing to consume components on different environment and platforms. Depending on the library, client are normally able to consume both unrendered components and rendered components. <a href="https://github.com/opencomponents/oc-client-node#oc-client" target="_blank">Learn more</a></p>
67+
<p>Multiple libraries are available, allowing to consume components on different environment and platforms. Depending on the library, clients are normally able to consume both unrendered components and rendered components. <a href="https://github.com/opencomponents/oc-client-node#oc-client" target="_blank">Learn more</a></p>
6868
</div>
6969
</div>
7070
</article>
@@ -98,7 +98,7 @@
9898
<ul>
9999
<li>endpoint: <a href="http://localhost:3030/my-first-component" target="_blank">http://localhost:3030/my-first-component</a></li>
100100
<li>info: <a href="http://localhost:3030/my-first-component/~info" target="_blank">http://localhost:3030/my-first-component/~info</a></li>
101-
<li>fullPreview: <a href="http://localhost:3030/my-first-component/~preview" target="_blank">http://localhost:3030/my-first-component/~preview</a></li>
101+
<li>preview: <a href="http://localhost:3030/my-first-component/~preview" target="_blank">http://localhost:3030/my-first-component/~preview</a></li>
102102
</ul>
103103
<h3>#3 Publish the component to the registry</h3>
104104
<p>Add the registry using the CLI</p>

index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,23 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
56
<title>OpenComponents</title>
67
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600" rel="stylesheet">
78
</head>
89
<body>
9-
<oc-component href="https://opencomponents.now.sh/landing-page/*"></oc-component>
10+
<script>
11+
(function (i, s, o, g, r, a, m) {
12+
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
13+
(i[r].q = i[r].q || []).push(arguments)
14+
}, i[r].l = 1 * new Date(); a = s.createElement(o),
15+
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
16+
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
17+
18+
ga('create', 'UA-54446639-6', 'auto');
19+
ga('send', 'pageview');
20+
</script>
21+
<oc-component href="https://opencomponents.now.sh/landing-page"></oc-component>
1022
<script src="https://opencomponents.now.sh/oc-client/client.js"></script>
1123
</body>
1224
</html>

0 commit comments

Comments
 (0)