Skip to content

Commit a87febb

Browse files
committed
[site] Update footer to adhere to OpenJS standards
1 parent 223405e commit a87febb

4 files changed

Lines changed: 70 additions & 57 deletions

File tree

packages/lit-dev-content/site/_includes/footer.html

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
<footer>
22
<div id="footerTop">
3-
<a
4-
href="https://openjsf.org/"
5-
target="_blank"
6-
rel="noopener"
7-
title="OpenJS Foundation"
8-
>
9-
<lazy-svg
10-
loading="visible"
11-
id="footerOpenJSLogo"
12-
href="{{
13-
site.baseurl
14-
}}/images/openjs_foundation-logo-horizontal-color.svg"
15-
label="OpenJS logo"
16-
>
17-
</lazy-svg>
18-
</a>
19-
203
<div id="footerLitLogoWrapper">
214
<lazy-svg
225
loading="visible"
@@ -141,8 +124,51 @@
141124
</div>
142125

143126
<div id="footerBottom">
127+
<div id="footerCopyright">
128+
<a
129+
href="https://openjsf.org/"
130+
target="_blank"
131+
rel="noopener"
132+
title="OpenJS Foundation"
133+
><lazy-svg
134+
loading="visible"
135+
id="footerOpenJSLogo"
136+
href="{{
137+
site.baseurl
138+
}}/images/openjs_foundation-logo-horizontal-color.svg"
139+
label="OpenJS logo"
140+
></lazy-svg
141+
></a>
142+
<p>
143+
<a href="https://openjsf.org">The OpenJS Foundation</a> |
144+
<a href="https://terms-of-use.openjsf.org">Terms of Use</a> |
145+
<a href="https://privacy-policy.openjsf.org">Privacy Policy</a> |
146+
<a href="https://bylaws.openjsf.org">Bylaws</a> |
147+
<a href="https://code-of-conduct.openjsf.org">Code of Conduct</a> |
148+
<a href="https://trademark-policy.openjsf.org">Trademark Policy</a> |
149+
<a href="https://trademark-list.openjsf.org">Trademark List</a> |
150+
<a href="https://www.linuxfoundation.org/cookies">Cookie Policy</a>
151+
</p>
152+
</div>
153+
<p>
154+
Copyright <a href="https://openjsf.org">OpenJS Foundation</a> and the Lit
155+
Project. All rights reserved. The
156+
<a href="https://openjsf.org">OpenJS Foundation</a> has registered
157+
trademarks and uses trademarks. For a list of trademarks of the
158+
<a href="https://openjsf.org">OpenJS Foundation</a>, please see our
159+
<a href="https://trademark-policy.openjsf.org">Trademark Policy</a> and
160+
<a href="https://trademark-list.openjsf.org">Trademark List</a>.
161+
Trademarks and logos not indicated on the
162+
<a href="https://trademark-list.openjsf.org"
163+
>list of OpenJS Foundation trademarks</a
164+
>
165+
are trademarks&trade; or registered&reg; trademarks of their respective
166+
holders. Use of them does not imply any affiliation with or endorsement by
167+
them.
168+
</p>
169+
144170
<p>
145-
Copyright (c) The Lit Project. Code licensed under
171+
Code licensed under
146172
<a href="https://spdx.org/licenses/BSD-3-Clause.html">BSD-3-Clause</a>.
147173
Documentation licensed under
148174
<a href="https://spdx.org/licenses/CC-BY-3.0">CC-BY-3.0</a>.

packages/lit-dev-content/site/css/footer.css

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
}
2525

2626
#footerOpenJSLogo {
27-
height: 2.5em;
27+
width: 10rem;
28+
height: 6rem;
2829
}
2930

3031
#footerSocialLinks {
@@ -49,24 +50,39 @@
4950
}
5051

5152
#footerBottom {
52-
height: var(--footer-bottom-height);
53-
padding: 0 0.5em;
54-
display: flex;
53+
/* height: var(--footer-bottom-height); */
54+
font-size: .825rem;
55+
padding: 2rem 4rem;
5556
align-items: center;
5657
justify-content: center;
57-
text-align: center;
5858
line-height: 1.7em;
5959
}
6060

61-
#footerBottom > p > a {
62-
color: var(--sys-color-primary);
61+
#footerBottom p {
62+
font-size: inherit;
63+
margin-top: 0;
64+
}
65+
66+
#footerBottom a {
67+
/* color: var(--sys-color-primary); */
6368
font-weight: 600;
6469
}
6570

66-
#footerBottom > p > a:hover {
71+
#footerBottom a:hover {
6772
text-decoration: underline;
6873
}
6974

75+
#footerCopyright {
76+
display: flex;
77+
gap: 1rem;
78+
justify-content: space-between;
79+
align-items: center;
80+
}
81+
82+
#footerCopyright > * {
83+
margin: 0;
84+
}
85+
7086
@media (max-width: 864px) {
7187
#footerTop {
7288
flex-direction: column;

packages/lit-dev-content/site/css/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ html {
2323
content begins (e.g. other sticky elements, scroll-margin-top). */
2424
--header-height: calc(var(--header-nav-height) + var(--banner-height));
2525
--footer-top-height: 12rem;
26-
--footer-bottom-height: 6rem;
26+
--footer-bottom-height: 10rem;
2727
--content-max-width: 76rem;
2828
-webkit-font-smoothing: antialiased;
2929
}

packages/lit-dev-content/site/docs/v3/resources/community.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,4 @@ versionLinks:
99
v2: resources/community/
1010
---
1111

12-
There are many great resources and locations to learn about Lit,
13-
share what you've built, and more. Participation in our community is subject to the Lit
14-
[Code of Conduct](https://github.com/lit/lit/blob/master/CODE_OF_CONDUCT.md)—be
15-
excellent to each other!
16-
17-
* **Join us on [Discord](/discord/)!**
18-
Chat about Lit, get help, or share your project in the Lit Discord server.
19-
20-
* **Follow us at [@buildWithLit on X (formerly Twitter)](https://twitter.com/buildWithLit)**
21-
for the latest on Lit and web components. Many
22-
of our team members can also be found tweeting about Lit,
23-
and the latest developments in the web platform.
24-
25-
* **Follow us on [Bluesky](https://bsky.app/profile/lit.dev)**
26-
for updates and news from the Lit team.
27-
28-
* **Talk about Lit on [GitHub Discussions](https://github.com/lit/lit/discussions).** For longer questions or ideas about Lit, or to see what others are talking about, GitHub discussions are a great way to connect with the team and community.
29-
30-
* **Import the [Lit Community Calendar](/community-calendar/)** to keep up to date on official community events like the weekly Open Eng Meeting and Community Calls. Add it to your Google Calendar by pressing the "+ Google Calendar" button at the bottom right corner of the calendar page.
31-
32-
* **Find answers on [StackOverflow](https://stackoverflow.com/questions/tagged/lit+or+lit-html+or+lit-element).**
33-
Search the [`lit`, `lit-element`, and `lit-html`](https://stackoverflow.com/questions/tagged/lit+or+lit-html+or+lit-element) tags when
34-
looking for answers. You can also find help on underlying web standards with
35-
tags like [`web-component`](https://stackoverflow.com/tags/web-component),
36-
and try your hand at answering other people’s queries.
37-
38-
* **Watch Lit videos on [YouTube](/youtube/).** The Lit team has a dedicated YouTube channel with tutorials and update streams.
39-
40-
41-
12+
There are many great resources and locations to learn about Lit

0 commit comments

Comments
 (0)