Add inline scripts and adjust webpage content

Added inline scripts for tabs and accordion features in the FeaturesNavs and FAQ components respectively. Also, adjusted the comment in FAQ component and made changes in the FooterSection component for improved content display. Adjusted the margin and added anchor tag in the copyright section.
This commit is contained in:
Emil Gulamov 2024-02-17 08:15:22 +04:00
parent c8e5d89c04
commit c15383a7f5
3 changed files with 13 additions and 4 deletions

View file

@ -6,7 +6,7 @@ import AccordionItem from "./ui/blocks/AccordionItem.astro";
const subTitle: string =
"Ask us anything about our brand and products, and get factual responses.";
// Define a helper function to generate ids
// Helper function to generate ids
const makeId = (base: any, index: any) => `${base}${index + 1}`;
const faqs = [
@ -75,3 +75,5 @@ const faqs = [
</div>
</div>
</div>
<script is:inline src="/scripts/vendor/preline/accordion/index.js"></script>

View file

@ -126,3 +126,4 @@ const title: string = `Customize <span class="text-yellow-500 dark:text-yellow-4
</div>
</div>
</div>
<script is:inline src="/scripts/vendor/preline/tabs/index.js"></script>

View file

@ -179,14 +179,20 @@ const company: Links[] = [
</div>
<div
class="mt-5 grid gap-y-2 sm:mt-12 sm:flex sm:items-center sm:justify-between sm:gap-y-0"
class="mt-9 grid gap-y-2 sm:mt-12 sm:flex sm:items-center sm:justify-between sm:gap-y-0"
>
<div class="flex items-center justify-between">
<p class="text-sm text-neutral-600 dark:text-neutral-400">
© <span id="current-year"></span> ScrewFast. All rights reserved.
© <span id="current-year"></span> ScrewFast. Crafted
by
<a
class="font-medium underline underline-offset-2 outline-none ring-zinc-500 transition duration-300 hover:text-neutral-700 hover:decoration-dashed focus:outline-none focus-visible:ring dark:ring-zinc-200 dark:hover:text-neutral-300"
href="https://sobstvennoai.dev"
target="_blank"
rel="noopener noreferrer">sobstvennoAI</a
>.
</p>
</div>
<!-- End Col -->
<!-- Social Brands -->
<div>