Skip to content

Commit fd2858c

Browse files
committed
fix(homepage): complete homepage
1 parent bd17583 commit fd2858c

File tree

10 files changed

+134
-72
lines changed

10 files changed

+134
-72
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,3 @@ dist
131131

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

_includes/icons/tag.svg

Lines changed: 1 addition & 0 deletions
Loading

_includes/layouts/base.njk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
<meta name="description" content="{{ description or metadata.description }}">
88
{% favicon './public/favicon.svg' %}
99
<link rel="stylesheet" href="/style.css?v={% version %}"/>
10-
<link rel="stylesheet" href="/search.css?v={% version %}"/>
1110
</head>
1211
<body class="flex flex-col h-full items-center">
1312
<a href="#skip" class="sr-only">Skip to main content</a>
1413
{% include "header.njk" %}
1514
<div class="p-4 grow w-full max-w-screen-xl">
16-
<a href="/" class="block mt-8 mb-6">
15+
<a href="/" class="inline-block mt-8 mb-6">
1716
<img alt="jQuery Logo" src="/img/logo-white.svg" width="233" height="66"/>
1817
</a>
1918
{% include "search.njk" %}

content/404.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Sorry, but the page you were trying to view does not exist.
1212

1313
It may have existed before, but this site is now a static archive of the old plugins site. Some pages may have been lost.
1414

15-
Search is still supported, but only for the purposes of preservation. Plugins are no longer updated. The plugin versions shown as "latest" on this site should not be considered usable in production.
15+
Search is still supported, but only for the purposes of preservation. Plugins are no longer updated. The plugin versions shown as "latest" on this site should no longer be considered the latest versions.
1616

17-
If you are looking for a plugin, you can try searching for it on [npm](https://www.npmjs.com/). Many plugins use the "jquery-plugin" keyword.
17+
If you are looking for a plugin, try searching for it on [npm](https://www.npmjs.com/). Many plugins use the "jquery-plugin" keyword.
1818

1919
jQuery issues can be found on [GitHub](https://github.com/jquery/jquery/issues).

content/index.njk

Lines changed: 57 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,65 @@
22
layout: layouts/base.njk
33
---
44

5-
<div class="flex flex-col">
6-
<div class="text-center bg-[url(/img/dark-grey-tile.png)] p-8 lg:py-12">
7-
<h1 class="text-white">The jQuery Plugin Registry</h1>
8-
</div>
5+
<div class="text-center bg-[url(/img/dark-grey-tile.png)] p-8 lg:py-12">
6+
<h1 class="text-white">The jQuery Plugin Registry</h1>
7+
</div>
98

10-
<div class="py-5 px-6 text-center flex flex-col gap-2">
9+
<div class="flex flex-col lg:flex-row-reverse">
10+
<div class="py-5 px-6 flex flex-col grow gap-2">
1111
<h2>This site is a static archive of the old jQuery Plugin Registry.</h2>
12-
<h3>New plugin releases will not be processed.</h3>
12+
<p>New plugin releases will not be processed.</p>
1313
<hr/>
14-
<p>The jQuery Plugin Registry is preserved for historical purposes, and search is still supported.</p>
15-
<p>However, we do not recommend using any plugins from this registry. Please find jQuery plugins on <a href="https://www.npmjs.com/search?q=keywords:jquery-plugin">npm.</a>
16-
</p>
14+
<p>The jQuery Plugin Registry is preserved for historical purposes. Search is still supported.</p>
15+
<p class="italic">We do not recommend using any plugins from this registry. Please find jQuery plugins on <a href="https://www.npmjs.com/search?q=keywords:jquery-plugin">npm</a>.</p>
16+
</div>
17+
18+
<div class="flex flex-col px-6 py-5 lg:w-[300px]">
19+
<h3 class="text-gray-light flex flex-row items-center gap-2 mb-3">
20+
{% include "icons/tag.svg" %}
21+
Tags
22+
</h3>
23+
<ul class="flex flex-col gap-1 mb-5 ml-5 list-disc pl-5">
24+
<li>
25+
<a href="/tag/ui">ui</a>
26+
<span class="count">(542)</span>
27+
</li>
28+
<li>
29+
<a href="/tag/jquery">jquery</a>
30+
<span class="count">(482)</span>
31+
</li>
32+
<li>
33+
<a href="/tag/form">form</a>
34+
<span class="count">(285)</span>
35+
</li>
36+
<li>
37+
<a href="/tag/animation">animation</a>
38+
<span class="count">(273)</span>
39+
</li>
40+
<li>
41+
<a href="/tag/input">input</a>
42+
<span class="count">(252)</span>
43+
</li>
44+
<li>
45+
<a href="/tag/image">image</a>
46+
<span class="count">(210)</span>
47+
</li>
48+
<li>
49+
<a href="/tag/responsive">responsive</a>
50+
<span class="count">(184)</span>
51+
</li>
52+
<li>
53+
<a href="/tag/slider">slider</a>
54+
<span class="count">(172)</span>
55+
</li>
56+
<li>
57+
<a href="/tag/ajax">ajax</a>
58+
<span class="count">(154)</span>
59+
</li>
60+
<li>
61+
<a href="/tag/scroll">scroll</a>
62+
<span class="count">(140)</span>
63+
</li>
64+
</ul>
1765
</div>
1866
</div>

eleventy.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ export default function eleventyConfig(eleventyConfig) {
1515
// Copy the contents of the `public` folder to the output folder
1616
// For example, `./public/img/` ends up in `_site/img/`
1717
eleventyConfig.addPassthroughCopy({
18-
'./public/': '/',
19-
'./styles/search.css': '/search.css'
18+
'./public/': '/'
2019
})
2120

2221
// Can't ignore public/style.css, which is ignore by gitignore
@@ -30,8 +29,7 @@ export default function eleventyConfig(eleventyConfig) {
3029
// Watch content images for the image pipeline.
3130
eleventyConfig.addWatchTarget('content/**/*.{svg,webp,png,jpeg}')
3231

33-
// Watch non-tailwind CSS
34-
eleventyConfig.addWatchTarget('styles/search.css')
32+
eleventyConfig.addWatchTarget('styles/**/*.{css,js}')
3533

3634
// App plugins
3735
eleventyConfig.addPlugin(pluginImages)

package-lock.json

Lines changed: 47 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"debug": "npm run clean && cross-env NODE_ENV=development DEBUG=Eleventy* npx @11ty/eleventy",
1212
"benchmark": "npm run clean && cross-env NODE_ENV=development DEBUG=Eleventy:Benchmark* npx @11ty/eleventy",
1313
"searchindex": "pagefind",
14-
"tailwind": "tailwindcss -i styles/tailwind.css -c styles/tailwind.config.js -o public/style.css",
14+
"tailwind": "tailwindcss -i styles/tailwind.css -c styles/tailwind.config.js -o _site/style.css",
1515
"testbuild": "npm run clean && cross-env NODE_ENV=development npx @11ty/eleventy && npm run searchindex"
1616
},
1717
"repository": {
@@ -43,9 +43,9 @@
4343
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
4444
"cross-env": "^7.0.3",
4545
"eleventy-favicon": "^1.1.3",
46-
"luxon": "^3.4.3",
47-
"pagefind": "^1.0.3",
48-
"prettier": "^3.0.3",
46+
"luxon": "^3.4.4",
47+
"pagefind": "^1.0.4",
48+
"prettier": "^3.1.0",
4949
"prettier-plugin-tailwindcss": "^0.5.7",
5050
"rimraf": "^5.0.5",
5151
"tailwindcss": "^3.3.5"

styles/search.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
inset: 0;
5252
text-align: center;
5353
font-size: 1.5rem /* 24px */;
54-
line-height: calc(100% - 4px);
54+
line-height: 26px;
5555
color: rgb(255 255 255 / 0.3);
5656
}
5757
.pagefind-ui__hidden,

0 commit comments

Comments
 (0)