Skip to content

Commit f081ba4

Browse files
committed
add some styling😎
1 parent e2b5c26 commit f081ba4

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

examples/index.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,29 @@
44
<head>
55
<meta charset="utf-8" />
66
<title>date-time demo</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<meta name="description" content="date-time custom element demo" />
9+
<meta name="author" content="architrixs" />
10+
<style>
11+
body {
12+
font-family: 'Montserrat', sans-serif;
13+
line-height: 1.2;
14+
max-width: 700px;
15+
margin: 0 auto;
16+
}
17+
18+
pre {
19+
height: 110px;
20+
background: #eee;
21+
padding: 0.8rem;
22+
margin: 1rem 0;
23+
}
24+
</style>
725
</head>
826

927
<body>
1028
<!-- description -->
1129
<h3>date-time custom element</h3>
12-
1330
<pre>
1431
&lt;date-time time-format="hm" date-format="dmy" culture='en-US'&gt;&lt;/date-time&gt;
1532
<date-time time-format="hm" date-format="dmy" culture='en-US'></date-time>
@@ -20,10 +37,9 @@ <h3>date-time custom element</h3>
2037
</pre>
2138
<pre>
2239
&lt;date-time&gt;&lt;/date-time&gt;
23-
<date-time ></date-time>
40+
<date-time></date-time>
2441
</pre>
2542
<script type="module">
26-
// import 'https://unpkg.com/@github/date-time-boilerplate@latest/dist/date-time.js'
2743
import '../src/date-time.ts'
2844
</script>
2945
</body>

test/test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {assert, fixture, html} from '@open-wc/testing'
1+
import { assert } from '@open-wc/testing'
22
import { DateTimeElement } from '../src/date-time'
33

44
// TODO: Add tests for your element
@@ -7,5 +7,4 @@ describe('date-time', () => {
77
const el = document.createElement('date-time')
88
assert.instanceOf(el, DateTimeElement)
99
})
10-
1110
})

0 commit comments

Comments
 (0)