|
1 | 1 | <div class="flex flex-col w-full text-left justify-center md:text-center items-center"> |
2 | | - <section class="pt-[24px] md:pt-[150px] pb-[100px] md:pb-[80px] md:max-w-[1200px] flex flex-col items-center"> |
3 | | - <h1 class="display1 md:text-[60px] md:leading-[68px] md:font-bold"> |
4 | | - An <span class="text-accent">ESLint</span> |
5 | | - <br class="md:hidden"> |
6 | | - plugin<br> |
7 | | - to lint and fix <span class="text-accent">HTML code</span>. |
8 | | - </h1> |
9 | | - <p class="text-black-900 mb-[24px] md:mb-[60px] mt-[12px] md:mt-[20px]"> |
10 | | - ESLint is a popular linting tool, but it only supports JavaScript.<br> |
11 | | - This plugin allows you to lint HTML files and HTML code in JavaScript Template Literals. |
| 2 | + <section class="pt-[24px] md:pt-[60px] pb-[80px] md:pb-[80px] md:max-w-[1200px] flex flex-col items-center"> |
| 3 | + <img |
| 4 | + src="~/src/assets/logo_320x320.png" |
| 5 | + alt="" |
| 6 | + width="160" |
| 7 | + height="160" |
| 8 | + > |
| 9 | + <h1 class="display1 text-[40px]">HTML ESLINT</h1> |
| 10 | + <p class="text-black-900 mb-[24px] text-center text-base md:text-lg md:mb-[50px] mt-[12px] md:mt-[20px]"> |
| 11 | + An ESLint plugin for formatting and linting HTML. |
12 | 12 | </p> |
13 | | - <ul class="[&>li]:py-1 [&>li]: w-full flex items-center flex-col md:flex-row md:justify-center gap-[12px] md:gap-[20px]"> |
| 13 | + <ul class="[&>li]:py-1 [&>li]: w-full flex items-center justify-center text-sm md:text-base flex-row md:flex-row mt-2 mb-10 gap-[12px] md:gap-[20px]"> |
14 | 14 | <li> |
15 | | - <h2> |
16 | | - <a href="~/src/docs/getting-started.html" class="bg-black-900 px-[20px] py-[10px] text-white rounded-[12px]"> |
17 | | - Getting Started |
18 | | - </a> |
19 | | - </h2> |
| 15 | + <a href="~/src/docs/getting-started.html" class="bg-accent border border-accent px-[10px] py-[10px] text-white rounded-[12px]"> |
| 16 | + Get Started |
| 17 | + </a> |
20 | 18 | </li> |
21 | 19 | <li> |
22 | | - <h2> |
23 | | - <a href="~/src/playground.html" class="bg-white border border-gray-400 px-[20px] py-[10px] text-gray-900 rounded-[12px]"> |
24 | | - Playground |
25 | | - </a> |
26 | | - </h2> |
| 20 | + <a href="~/src/playground.html" class="bg-white border border-gray-400 px-[10px] py-[10px] text-gray-900 rounded-[12px]"> |
| 21 | + Playground |
| 22 | + </a> |
27 | 23 | </li> |
28 | 24 | <li> |
29 | | - <h2> |
30 | | - <a href="~/src/docs/rules.html" class="bg-white border border-gray-400 px-[20px] py-[10px] text-gray-900 rounded-[12px]"> |
31 | | - All Rules |
32 | | - </a> |
33 | | - </h2> |
| 25 | + <a href="~/src/docs/rules.html" class="bg-white border border-gray-400 px-[10px] py-[10px] text-gray-900 rounded-[12px]"> |
| 26 | + Rules |
| 27 | + </a> |
34 | 28 | </li> |
35 | 29 | </ul> |
36 | | - <img |
37 | | - src="~/src/assets/example.png" |
38 | | - alt="" |
39 | | - class="border-[1px] border-gray-300 rounded-[12px] md:rounded-[28px] p-[4px] md:max-w-[1028px] mt-[36px] md:mt-[60px]" |
40 | | - width="1028" |
41 | | - height="260" |
42 | | - > |
43 | | - <div class="py-4"> |
44 | | - <h2 class="py-4 text-[20px]">FAQ</h2> |
45 | | - <ul class="my-2 max-w-[600px] text-left"> |
46 | | - <li> |
47 | | - <h3 class="font-semibold">Q: Lint JavaScript inside HTML</h3> |
48 | | - <p> |
49 | | - A: This ESLint plugin supports linting HTML syntax and does not provide JavaScript syntax linting. To lint JavaScript in HTML, such as inline scripts, you can use <a |
50 | | - href="https://github.com/BenoitZugmeyer/eslint-plugin-html" |
51 | | - target="_blank" |
52 | | - rel="noopener noreferrer" |
53 | | - class="underline" |
54 | | - >eslint-plugin-html</a> |
55 | | - </p> |
56 | | - </li> |
57 | | - </ul> |
| 30 | + <div class="flex gap-3 flex-col md:flex-row"> |
| 31 | + <article class="bg-[#f6f6f7] w-full p-4 rounded-md md:text-left"> |
| 32 | + <h2 class="text-base mb-2 md:text-lg">Lint HTML files with ESLint</h2> |
| 33 | + <p class="body7 text-gray-700 text-sm md:text-base">There are various formatting and linting rules available for HTML code. |
| 34 | + <a href="~/src/docs/rules.html" class="text-accent underline">See all rules.</a> |
| 35 | + </p> |
| 36 | + </article> |
| 37 | + <article class="bg-[#f6f6f7] w-full p-4 rounded-md md:text-left"> |
| 38 | + <h2 class="text-base mb-2 md:text-lg">Lint HTML code inside JS Template Literals.</h2> |
| 39 | + <p class="body7 text-gray-700 text-sm md:text-base">Supports linting and formatting HTML code written in JavaScript template literals. |
| 40 | + <a href="~/src/docs/getting-started.html#lint-html-in-javascript-template-literals" class="text-accent underline">See Lint HTML in JavaScript Template Literals.</a> |
| 41 | + </p> |
| 42 | + </article> |
| 43 | + <article class="bg-[#f6f6f7] w-full p-4 rounded-md md:text-left"> |
| 44 | + <h2 class="text-base mb-2 md:text-lg">Integrate with template engines.</h2> |
| 45 | + <p class="body7 text-gray-700 text-sm md:text-base">Supports integration with template engines like Handlebars, ERB, and TWIG. |
| 46 | + <a href="~/src/docs/integrating-template-engine.html" class="text-accent underline">See Integrating Template Engine with HTML ESLint Plugin.</a> |
| 47 | + </p> |
| 48 | + </article> |
58 | 49 | </div> |
59 | | - <p class="text-center text-black-700 body3 mt-[80px]"> |
60 | | - If you find this project useful, <br> |
61 | | - Please support this project with a <a |
| 50 | + <p class="text-center text-black-700 mt-12"> |
| 51 | + If you find this project useful, <br class="md:hidden"> |
| 52 | + please support it by giving a <a |
| 53 | + class="text-accent" |
62 | 54 | href="https://github.com/yeonjuan/html-eslint" |
63 | 55 | target="_blank" |
64 | 56 | rel="noreferrer noopener" |
65 | | - >Github Star!</a> |
| 57 | + >Github Star! ⭐</a> |
66 | 58 | </p> |
67 | 59 | </section> |
68 | 60 | </div> |
0 commit comments