Skip to content

Commit

Permalink
Fix HTML formatting in index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
besoeasy committed Dec 5, 2023
1 parent 3c6dec3 commit ab8fe1f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async function buildIndex() {
"dist/",
"https://tailwind.besoeasy.com/"
);
const link = `<a class="m-5 uppercase" href="${fileUrl}">${nameS}</a>`;
const link = `<div><a class="m-5 uppercase" href="${fileUrl}">${nameS}</a><div>`;

indexEntries[directoryName].push(link);
}
Expand All @@ -120,7 +120,9 @@ async function buildIndex() {

for (const directory in indexEntries) {
mainIndex += `<div class="py-20 leading-none text-3xl uppercase">${directory}</div>`;
mainIndex += ` <div class="grid grid-cols-8 gap-4">`;
mainIndex += indexEntries[directory].join("");
mainIndex += ` </div>`;
}

const indexHTML = `
Expand All @@ -135,8 +137,8 @@ async function buildIndex() {
</head>
<body>
<section class="relative overflow-hidden py-40">
<div class="container mx-auto px-4">
<div class="bg-yellow-100">
<section class="container mx-auto py-40 m-5">
<div class="-m-6 flex flex-wrap items-center lg:-m-11">
<div class="w-full p-6 lg:w-1/2 lg:p-11">
<div class="lg:max-w-xl">
Expand Down Expand Up @@ -219,8 +221,7 @@ async function buildIndex() {
</div>
</div>
</div>
</div>
</section>
</section></div>
<section class="m-auto container py-20 m-5">
${mainIndex}
</section>
Expand Down

0 comments on commit ab8fe1f

Please sign in to comment.