-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (47 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Native Web Components for Everyone with LitElement</title>
<script>navigator.serviceWorker.register('/sw_native_web_components.js');</script>
<!-- Start Workshop -->
<script type="module">
import { LitElement, html } from 'https://cdn.skypack.dev/lit';
import { colorFromString } from './helpers.js'
class WscHello extends LitElement {
createRenderRoot() { return this; }
render() {
return html`
<div>
<h1>Web Summer Camp 2021</h1>
<p>September 2nd - 3rd 2021, ŠIBENIK, CROATIA</p>
</div>
`;
}
}
customElements.define('wsc-hello', WscHello);
</script>
<style>
wsc-hello {
display:block;
background-image: linear-gradient(to right bottom, #ee5e6f, #f17356, #e98b41, #d8a337, #b7b242, #95bc5c, #73c47d, #52c89f);
margin:100px auto 0;
width: 600px;
padding:200px;
font-size:2em;
border-radius: 10px;
text-align: center;
color:#fff;
}
wsc-hello p {
font-size:0.7em;
font-style: italic;
}
</style>
</head>
<body>
<wsc-hello></wsc-hello>
</body>
</html>