Update hyperlink paths and import statements across files

This commit is contained in:
Emil Gulamov 2024-04-11 00:00:08 +04:00
parent b3204904ba
commit 242b411ab0
8 changed files with 29 additions and 40 deletions

View file

@ -13,7 +13,7 @@ interface Props {
}
// Define SVG marker to be used in the component
const ListItemMarker: string = `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="mt-0.5 h-6 w-6 text-orange-400 dark:text-orange-300"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>`;
const ListItemMarker: string = `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="mt-0.5 h-6 w-6 text-orange-400 dark:text-orange-300 flex-none"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>`;
---
<section

View file

@ -9,10 +9,7 @@ import {
Card,
CardGrid,
LinkCard,
Steps,
Aside,
Tabs,
TabItem,
Steps
} from "@astrojs/starlight/components";
Dive deep into the technicalities of our product offerings with ScrewFast's comprehensive technical specifications documentation. Our detailed data sheets provide you with all the information you need on:
@ -50,9 +47,9 @@ Explore the possibilities with ScrewFast through real-world scenarios. Our catal
See how ScrewFast products have been instrumental in:
<CardGrid>
<LinkCard title="Major infrastructure projects" href="en/guides/getting-started" />
<LinkCard title="Innovative architectural accomplishments" href="en/guides/getting-started" />
<LinkCard title="High-stress industrial applications" href="en/guides/getting-started" />
<LinkCard title="Major infrastructure projects" href="/guides/getting-started" />
<LinkCard title="Innovative architectural accomplishments" href="/guides/getting-started" />
<LinkCard title="High-stress industrial applications" href="/guides/getting-started" />
</CardGrid>
These case studies serve as an inspiration and a learning tool, showcasing what can be achieved with the right expertise and ScrewFast's superior product range.

View file

@ -6,11 +6,7 @@ sidebar:
order: 3
---
import {
Card,
CardGrid,
LinkCard
} from "@astrojs/starlight/components";
import { Card, CardGrid, LinkCard } from "@astrojs/starlight/components";
Safety is at the core of everything we do at ScrewFast. Our comprehensive safety protocols and procedures are designed to protect our team, clients, and the integrity of your project.
@ -18,12 +14,18 @@ Safety is at the core of everything we do at ScrewFast. Our comprehensive safety
<LinkCard
title="Rigorous safety training for all personnel"
href="en/guides/getting-started"
href="/guides/getting-started"
/>
<CardGrid>
<LinkCard title="Regular safety audits and compliance checks" href="en/guides/getting-started" />
<LinkCard title="Emergency response plans and drills" href="en/guides/getting-started" />
<LinkCard
title="Regular safety audits and compliance checks"
href="/guides/getting-started"
/>
<LinkCard
title="Emergency response plans and drills"
href="/guides/getting-started"
/>
</CardGrid>
By integrating safety into our daily operations, we create a secure working environment without compromising on quality and productivity.

View file

@ -50,16 +50,16 @@ Embarking on a new project can be exciting and challenging in equal measure. Wit
<LinkCard
title="Detailed Guides"
description="Access in-depth documentation and user manuals for ScrewFast tools and services."
href="en/guides/getting-started"
href="/guides/getting-started"
/>
<LinkCard
title="Support Contacts"
description="Keep handy the contact details for ScrewFast support, available for assistance throughout your project."
href="en/guides/getting-started"
href="/guides/getting-started"
/>
<LinkCard
title="Advanced Learning"
description="Explore further educational resources provided by ScrewFast to refine your skills and knowledge base."
href="en/guides/getting-started"
href="/guides/getting-started"
/>
</CardGrid>

View file

@ -23,15 +23,15 @@ Welcome to ScrewFast Docs! We're excited to help you get started with our premiu
<CardGrid>
<Card title="ScrewDriver Set" icon="seti:config">
Versatile and ergonomic, suitable for all screw types.
<LinkCard title="Learn More " href="en/guides/getting-started" />
<LinkCard title="Learn More " href="/guides/getting-started" />
</Card>
<Card title="Hammer Drill" icon="seti:pipeline">
Powerful performance for drilling and impact driving.
<LinkCard title="Learn More " href="en/guides/getting-started" />
<LinkCard title="Learn More " href="/guides/getting-started" />
</Card>
<Card title="Power Saws" icon="seti:crystal">
Precision cutting with adjustable settings for various materials.
<LinkCard title="Learn More " href="en/guides/getting-started" />
<LinkCard title="Learn More " href="/guides/getting-started" />
</Card>
</CardGrid>
@ -65,17 +65,17 @@ Regular maintenance ensures longevity and safety. Clean your tools after each us
<LinkCard
title="In-depth Tutorials"
description="Deep dive into using our tools with expert-led tutorials."
href="en/guides/getting-started"
href="/guides/getting-started"
/>
<LinkCard
title="Video Demos"
description="Visual guides to get the most out of your tools."
href="en/guides/getting-started"
href="/guides/getting-started"
/>
<LinkCard
title="Warranty Information"
description="Understand your coverage and how to make a claim if needed."
href="en/guides/getting-started"
href="/guides/getting-started"
/>

View file

@ -16,11 +16,11 @@ import {
<Card title="Maintaining Your ScrewFast Tools" icon="approve-check-circle">
<LinkCard
description="Step-by-step guide for the routine care and maintenance of your ScrewFast tools to ensure long-lasting functionality."
href="en/guides/getting-started"
href="/guides/getting-started"
/>
<LinkCard
description="Cleaning, storage, and inspection practices to keep tools in optimal condition"
href="en/guides/getting-started"
href="/guides/getting-started"
/>
</Card>

View file

@ -6,16 +6,6 @@ sidebar:
order: 1
---
import {
Card,
CardGrid,
LinkCard,
Steps,
Aside,
Tabs,
TabItem,
} from "@astrojs/starlight/components";
ScrewFast prides itself on a comprehensive range of high-grade tools and equipment. These resources are not just about delivering the performance you expect but ensuring they stand the test of time. Below, you will find a curated selection of guides geared towards helping you get the most out of our products.
### Tool Guides

View file

@ -202,7 +202,7 @@ const pageTitle: string = `${post.data.title} | ${SITE.title}`;
});
const SVG_HTML_STRING =
'<svg class="w-0 h-0" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#fa5a15"><path stroke-linecap="round" stroke-linejoin="round" d="m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></svg>';
'<svg class="w-0 h-0 flex-none" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#fa5a15"><path stroke-linecap="round" stroke-linejoin="round" d="m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></svg>';
function setActiveLinkById(id: string | null) {
const listItems = document.querySelectorAll("#toc li");