File tree Expand file tree Collapse file tree 3 files changed +66
-8
lines changed
site-client/src/components
site-server/src/templates Expand file tree Collapse file tree 3 files changed +66
-8
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,72 @@ export class WCOTopBar extends LitElement {
15
15
top: 0;
16
16
left: 0;
17
17
width: 100vw;
18
- height: 50px ;
19
- padding: 10px 20px;
18
+ height: 70px ;
19
+ padding: 0 20px;
20
20
display: flex;
21
21
align-items: center;
22
22
background: #eee;
23
23
border-bottom: 1px solid #ccc;
24
- font-family: sans-serif;
24
+ box-sizing: border-box;
25
+ font-weight: 500;
26
+ color: #222;
25
27
}
28
+
29
+ #title {
30
+ font-size: 1.5rem;
31
+ letter-spacing: .05em;
32
+ text-transform: lowercase;
33
+ }
34
+
35
+ #logo {
36
+ border-radius: 10%;
37
+ display: inline-flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ width: 48px;
41
+ height: 48px;
42
+ background: #444;
43
+ color: white;
44
+ font-size: 1.25rem;
45
+ font-weight: normal;
46
+ margin-right: 8px;
47
+ text-transform: initial;
48
+ }
49
+
50
+ nav {
51
+ display: flex;
52
+ justify-content: right;
53
+ align-items: center;
54
+ flex: 1;
55
+ height: 100%;
56
+ font-size: 1.25rem;
57
+ }
58
+
59
+ nav > a {
60
+ display: flex;
61
+ align-items: center;
62
+ height: 100%;
63
+ padding: 0 16px;
64
+ text-decoration: none;
65
+ color: inherit;
66
+ }
67
+
68
+ nav > a:hover {
69
+ background: #00000008;
70
+ }
71
+
26
72
` ;
27
73
28
74
render ( ) {
29
- return html `🚧 webcomponents.org ` ;
75
+ return html `
76
+ < span id ="title "> < span id ="logo "> WC</ span > WebComponents.org</ span >
77
+ < nav >
78
+ < a href ="/catalog "> Catalog</ a >
79
+ < a href ="/docs "> Docs</ a >
80
+ < a href ="/articles "> Articles</ a >
81
+ < a href ="/community "> Community</ a >
82
+ </ nav >
83
+ ` ;
30
84
}
31
85
}
32
86
Original file line number Diff line number Diff line change 4
4
scripts:
5
5
- "./js/homepage.js"
6
6
---
7
- < wco-top-bar > </ wco-top-bar >
8
- < h2 > 🚧 Under construction! 🚧</ h2 >
7
+ < section >
8
+ < h2 > 🚧 Under construction! 🚧</ h2 >
9
+ < p >
10
+ This version of webcomponents.org is under active development and not
11
+ ready for use.
12
+ </ p >
13
+ </ section >
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ export const renderPage = (data: {
36
36
margin: 0;
37
37
--mdc-typography-font-family: 'Open Sans', Arial, Helvetica, sans-serif;
38
38
font-family: var(--mdc-typography-font-family);
39
- font-size: 14px;
40
- line-height: 1.5;
41
39
min-height: 100vh;
42
40
}
43
41
@media (max-width: 500px), (max-height: 500px) {
@@ -50,6 +48,7 @@ export const renderPage = (data: {
50
48
<title>${ escapeHTML ( data . title ) } </title>
51
49
</head>
52
50
<body>
51
+ <wco-top-bar></wco-top-bar>
53
52
${ data . content }
54
53
</body>
55
54
</html>
You can’t perform that action at this time.
0 commit comments