You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Simplify home page structure to match lit-html
* Allow custom label on <stack-blitz> element
* Update home page content and layout based on feedback.
* Fixing heading case
* Tweaks to 'Why use...'
Copy file name to clipboardExpand all lines: docs/index.md
+40-77
Original file line number
Diff line number
Diff line change
@@ -11,73 +11,34 @@ layout: default
11
11
</div>
12
12
</header>
13
13
14
-
<section>
14
+
<sectionid="section-snippet">
15
15
<divclass="wrapper">
16
16
<h1class="title">
17
-
About
17
+
Easily Create Fast, Lightweight Web Components
18
18
</h1>
19
19
20
20
<divclass="responsive-row">
21
21
22
-
<divstyle="flex:1;">
23
-
<h2>
24
-
Fast, lightweight web components
25
-
</h2>
26
-
<p>
27
-
LitElement is a simple base class for creating fast, lightweight web components that work in any web page with any framework.
28
-
</p>
29
-
</div>
30
-
31
-
<divstyle="flex:1;">
32
-
<h2>
33
-
Using lit-html
34
-
</h2>
35
-
<p>
36
-
For rendering, LitElement uses [lit-html](https://lit-html.polymer-project.org/)—a fast HTML templating library. To build an app out of LitElement components, check out [PWA Starter Kit](https://pwa-starter-kit.polymer-project.org/).
37
-
</p>
38
-
</div>
39
-
40
-
<divstyle="flex:1;">
41
-
<h2>
42
-
Who are we?
43
-
</h2>
44
-
<p>
45
-
LitElement is brought to you by developers on the Google Chrome team with the input of web developers at organizations big and small around the world.
46
-
</p>
47
-
</div>
48
-
49
-
</div>
22
+
<divclass="fixed-width-caption">
23
+
<h3class="description">LitElement makes it easy to define Web Components – ideal for sharing elements across your organization or building a UI design system.</h3>
24
+
<h3class="description">Use your components anywhere you use HTML: in your main document, in a CMS, in Markdown, or in views built with frameworks like React and Vue.</h3>
50
25
</div>
51
-
</section>
52
-
53
-
<section>
54
-
<divclass="wrapper">
55
26
56
-
<h1class="title">Get started</h1>
57
-
58
-
<h2>Define a component</h2>
59
-
60
-
It's easy to define a Web Component with LitElement:
61
27
28
+
<div>
62
29
```js
63
30
{% include projects/index-typescript/custom-greeting.ts%}
Click **Launch code editor** to see a live sample.
75
-
76
-
{% include project.html folder="index-typescript" openFile="custom-greeting.js" %}
77
-
78
-
The example above uses TypeScript and decorators. You can also easily write LitElements in plain JavaScript. Click **Launch code editor** for an example.
79
-
80
-
{% include project.html folder="index" openFile="custom-greeting.js" %}
38
+
<divclass="inline-action-buttons">
39
+
{% include project.html label="Launch Code Editor (TypeScript)" folder="index-typescript" openFile="custom-greeting.ts" %}
40
+
{% include project.html label="Launch Code Editor (JavaScript)" folder="index" openFile="custom-greeting.js" %}
41
+
</div>
81
42
82
43
</div>
83
44
</section>
@@ -90,51 +51,36 @@ The example above uses TypeScript and decorators. You can also easily write LitE
90
51
<divclass="responsive-row">
91
52
<divstyle="flex: 1">
92
53
93
-
<h2class="caption">Fast and light</h2>
54
+
<h2class="caption">Delightfully declarative</h2>
94
55
95
-
Whether your end users are in emerging markets or Silicon Valley, they’ll appreciate that LitElement is extremely fast.
56
+
LitElement's simple, familiar development model makes it easier than ever to build Web Components.
96
57
97
-
LitElement uses [lit-html](https://github.com/Polymer/lit-html) to define and render HTML templates. DOM updates are lightning-fast, because lit-html only re-renders the data that changes.
58
+
Express your UI declaratively, as a function of state. There's no need to learn a custom templating language – you can use the full power of JavaScript in your templates. Elements update automatically when their properties change.
98
59
99
60
</div>
100
61
<divstyle="flex: 1">
101
62
102
-
<h2class="caption">Standards-based</h2>
63
+
<h2class="caption">Fast and light</h2>
103
64
104
-
LitElement follows the [web components standards](https://developer.mozilla.org/en-US/docs/Web/Web_Components), so your components will work with any framework.
65
+
Whether your end users are in emerging markets or Silicon Valley, they’ll appreciate that LitElement is extremely fast.
105
66
106
-
LitElement uses custom elements for easy inclusion in web pages, and shadow DOM for encapsulation. There’s no new abstraction on top of the web platform.
67
+
LitElement uses [lit-html](https://github.com/Polymer/lit-html) to define and render HTML templates. DOM updates are lightning-fast, because lit-html only re-renders the dynamic parts of your UI – no diffing required.
107
68
108
69
</div>
109
70
<divstyle="flex: 1">
110
71
111
-
<h2class="caption">Made to share</h2>
72
+
<h2class="caption">Seamlessly interoperable</h2>
73
+
74
+
LitElement follows the [Web Components standards](https://developer.mozilla.org/en-US/docs/Web/Web_Components), so your components will work with any framework.
112
75
113
-
Web components built with LitElement are made to share with the world and with others across your organization, no matter what libraries or frameworks they use.
76
+
LitElement uses Custom Elements for easy inclusion in web pages, and Shadow DOM for encapsulation. There’s no new abstraction on top of the web platform.
114
77
115
78
</div>
116
79
</div>
117
80
</div>
118
81
</section>
119
82
120
83
121
-
<section>
122
-
<divclass="wrapper">
123
-
124
-
<h1class="title">Browser Compatibility</h1>
125
-
<h2class="description">LitElement works in all major browsers (Chrome, Firefox, IE, Edge, Safari, and Opera). </h2>
0 commit comments