Skip to content

Commit bd17583

Browse files
committed
feat(*): header, footer, desktop & mobile nav, search, index content
1 parent fdb45a1 commit bd17583

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2543
-2554
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,6 @@ dist
131131

132132
# eleventy
133133
_site
134+
135+
# tailwind
136+
public/style.css

.prettierrc.cjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ module.exports = {
33
singleQuote: true,
44
arrowParens: 'always',
55
trailingComma: 'none',
6-
endOfLine: 'auto'
6+
endOfLine: 'auto',
7+
plugins: ['prettier-plugin-tailwindcss']
78
}

_includes/footer.njk

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<footer class="bg-gray-dark w-full flex justify-center items-end border-t border-t-blue-light min-h-[200px] -mt-6">
2+
<div class="text-footer-text text-xs pt-12 pb-4 px-4 w-full max-w-screen-xl flex flex-col justify-between items-center gap-8 lg:flex-row-reverse">
3+
<ul class="flex flex-row justify-center flex-wrap gap-4">
4+
<li>
5+
<a class="link-footer" href="https://github.com/jquery">
6+
{% include "icons/github.svg" %}
7+
GitHub
8+
</a>
9+
</li>
10+
<li>
11+
<a class="link-footer" href="https://learn.jquery.com/">
12+
{% include "icons/pencil.svg" %}
13+
Learning Center
14+
</a>
15+
</li>
16+
<li>
17+
<a class="link-footer" href="https://matrix.to/#/#jquery_jquery:gitter.im">
18+
{% include "icons/matrix.svg" %}
19+
Matrix
20+
</a>
21+
</li>
22+
<li>
23+
<a class="link-footer" href="https://social.lfx.dev/@jquery">
24+
{% include "icons/mastodon.svg" %}
25+
Mastodon
26+
</a>
27+
</li>
28+
</ul>
29+
<div class="flex flex-row gap-2">
30+
Copyright &copy; {% currentYear %}
31+
<a href="https://openjsf.org" class="link-footer">The OpenJS Foundation</a>
32+
</div>
33+
</div>
34+
</footer>

_includes/header.njk

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<header class="flex w-full justify-center border-t border-t-gray-dark bg-gradient-to-b from-[#5c5a5a] from-[1px] via-[#4d4d4d] via-[1px] to-gray-dark border-b border-b-blue-light z-50">
2+
<div class="flex flex-row justify-between items-center px-6 w-full max-w-screen-xl">
3+
<ul class="flex flex-row items-end">
4+
<li>
5+
<a href="https://jquery.com/" title="jQuery" class="link-nav link-nav-mobile bg-gradient-to-b from-[#102d49] to-background !border-x-blue-light border-t border-t-blue-light mb-[-1px] h-[32px]">
6+
{% include "icons/jquery.svg" %}
7+
</a>
8+
</li>
9+
<li>
10+
<a href="https://jqueryui.com/" title="jQuery UI" class="link-nav link-nav-mobile">
11+
{% include "icons/jquery-ui.svg" %}
12+
</a>
13+
</li>
14+
<li>
15+
<a href="https://jquerymobile.com/" title="jQuery Mobile" class="link-nav link-nav-mobile">
16+
{% include "icons/jquery-mobile.svg" %}
17+
</a>
18+
</li>
19+
<li>
20+
<a href="https://github.com/jquery/sizzle/wiki" title="Sizzle" class="link-nav link-nav-mobile">
21+
{% include "icons/sizzle.svg" %}
22+
</a>
23+
</li>
24+
<li>
25+
<a href="https://qunitjs.com/" title="QUnit" class="link-nav link-nav-mobile">
26+
{% include "icons/qunit.svg" %}
27+
</a>
28+
</li>
29+
</ul>
30+
<input id="jq-menutoggle" type="checkbox" class="peer/menu hamburger-toggle sr-only"/>
31+
<label aria-label="Toggle Menu" for="jq-menutoggle" class="hamburger-lines flex lg:hidden flex-col justify-between relative w-[18px] h-[14px]">
32+
<span class="hamburger-line"></span>
33+
<span class="hamburger-line"></span>
34+
<span class="hamburger-line"></span>
35+
</label>
36+
{% include "menu.njk" %}
37+
</div>
38+
</header>

_includes/icons/chat.svg

+1
Loading

_includes/icons/github.svg

+1
Loading

_includes/icons/group.svg

+1
Loading

_includes/icons/jquery-mobile.svg

+9
Loading

_includes/icons/jquery-ui.svg

+6
Loading

_includes/icons/jquery.svg

+5
Loading

_includes/icons/mastodon.svg

+4
Loading

_includes/icons/matrix.svg

+9
Loading

_includes/icons/pencil.svg

+1
Loading

_includes/icons/qunit.svg

+5
Loading

0 commit comments

Comments
 (0)