diff --git a/src/components/ui/cards/CardInsight.astro b/src/components/ui/cards/CardInsight.astro new file mode 100644 index 0000000..1239aa1 --- /dev/null +++ b/src/components/ui/cards/CardInsight.astro @@ -0,0 +1,33 @@ +--- +import { Image } from "astro:assets"; + +import type { CollectionEntry } from "astro:content"; + +const { insightEntry } = Astro.props; + +interface Props { + insightEntry: CollectionEntry<"insights">; +} +--- + + +
+ {insightEntry.data.cardImageAlt} +
+ +
+

+ {insightEntry.data.title} +

+

+ {insightEntry.data.description} +

+

+ Read more + +

+
+
\ No newline at end of file diff --git a/src/components/ui/cards/CardRelated.astro b/src/components/ui/cards/CardRelated.astro new file mode 100644 index 0000000..e6b6b04 --- /dev/null +++ b/src/components/ui/cards/CardRelated.astro @@ -0,0 +1,35 @@ +--- +import { Image } from "astro:assets"; + +import { formatDate } from "../../../utils"; +import type { CollectionEntry } from "astro:content"; + +const { blogEntry } = Astro.props; + +interface Props { + blogEntry: CollectionEntry<"blog">; +} +--- + + +
+ {blogEntry.data.cardImageAlt} +

+ {blogEntry.data.title} +

+

+ {formatDate(blogEntry.data.pubDate)} +

+
diff --git a/src/content/insights/insight-1.md b/src/content/insights/insight-1.md new file mode 100644 index 0000000..abac73f --- /dev/null +++ b/src/content/insights/insight-1.md @@ -0,0 +1,12 @@ +--- +title: "The Future of Construction Technology" +description: "Explore ScrewFast's pioneering role in revolutionizing construction through advanced technology and innovative solutions." +cardImage: "../../images/insights/insight-1.avif" +cardImageAlt: "Top view mechanical tools arrangement" +contents: [ + "As technology continues to evolve, so too does the construction industry. From advanced robotics to augmented reality, the possibilities for innovation are endless. At ScrewFast, we're at the forefront of this technological revolution, developing cutting-edge tools and solutions to drive the industry forward.", + "Our range of hardware tools combines precision engineering with user-centric design, ensuring maximum productivity on every job site. From power drills to advanced fastening solutions, ScrewFast's tools are built to withstand the rigors of construction while streamlining your workflow.", + "Another area of focus for us is in data analytics. By harnessing the power of data, we're able to provide valuable insights into project performance, resource utilization, and more. This allows our clients to make informed decisions that optimize efficiency and drive success.", + "Looking ahead, we see even greater opportunities for innovation in areas like sustainable construction and modular design. By embracing new technologies and pushing the boundaries of what's possible, ScrewFast is committed to shaping the future of the construction industry for the better." +] +--- \ No newline at end of file diff --git a/src/content/insights/insight-2.md b/src/content/insights/insight-2.md new file mode 100644 index 0000000..8d063c6 --- /dev/null +++ b/src/content/insights/insight-2.md @@ -0,0 +1,12 @@ +--- +title: "The Importance of Collaboration" +description: "Explore how collaboration is central to ScrewFast's construction approach, driving effective communication and teamwork to achieve outstanding outcomes." +cardImage: "../../images/insights/insight-2.avif" +cardImageAlt: "Top view mechanical tools arrangement" +contents: [ + "Construction projects are complex undertakings that require collaboration and coordination among various stakeholders. From architects and engineers to contractors and suppliers, effective collaboration is essential for success.", + "At ScrewFast, we understand the importance of collaboration, which is why we prioritize communication and teamwork in everything we do. Whether it's working closely with our clients to understand their needs or partnering with other industry professionals to deliver comprehensive solutions, collaboration is at the heart of our approach.", + "But collaboration isn't just about working together—it's also about sharing knowledge and expertise. That's why we're committed to providing valuable resources and support to our clients, empowering them to make informed decisions and achieve their goals.", + "By fostering a culture of collaboration, we're able to tackle even the most complex challenges and deliver exceptional results. Together, we can build a better future for the construction industry." +] +--- diff --git a/src/content/insights/insight-3.md b/src/content/insights/insight-3.md new file mode 100644 index 0000000..ae6599e --- /dev/null +++ b/src/content/insights/insight-3.md @@ -0,0 +1,13 @@ +--- +title: "The Impact of Sustainable Practices" +description: "Discover how ScrewFast is leading the charge in promoting sustainability within the construction industry" +cardImage: "../../images/insights/insight-3.avif" +cardImageAlt: "Top view mechanical tools arrangement" +contents: [ + "With growing concerns about climate change and environmental sustainability, the construction industry is facing increasing pressure to adopt more eco-friendly practices. At ScrewFast, we're committed to doing our part to minimize our environmental footprint and promote sustainability in everything we do.", + "One way we're addressing this is through our selection of materials and manufacturing processes. We prioritize sustainable materials and practices whenever possible, ensuring that our products are not only durable and reliable but also environmentally friendly.", + "Additionally, we're exploring innovative solutions for reducing waste and conserving resources on construction sites. From modular construction techniques to recycling and repurposing materials, we're constantly seeking ways to minimize our impact on the planet.", + "But perhaps most importantly, we're committed to raising awareness about the importance of sustainability in the construction industry. Through education and advocacy, we're working to inspire change and encourage others to join us in building a more sustainable future.", + "By embracing sustainable practices, we're not only protecting the planet for future generations but also creating healthier, more resilient communities for everyone." +] +--- diff --git a/src/images/insights/insight-1.avif b/src/images/insights/insight-1.avif new file mode 100644 index 0000000..dcdae97 Binary files /dev/null and b/src/images/insights/insight-1.avif differ diff --git a/src/images/insights/insight-2.avif b/src/images/insights/insight-2.avif new file mode 100644 index 0000000..7913e93 Binary files /dev/null and b/src/images/insights/insight-2.avif differ diff --git a/src/images/insights/insight-3.avif b/src/images/insights/insight-3.avif new file mode 100644 index 0000000..d46c38d Binary files /dev/null and b/src/images/insights/insight-3.avif differ diff --git a/src/pages/insights/[...slug].astro b/src/pages/insights/[...slug].astro new file mode 100644 index 0000000..35799f1 --- /dev/null +++ b/src/pages/insights/[...slug].astro @@ -0,0 +1,59 @@ +--- +// Import section components +import MainLayout from "../../layouts/MainLayout.astro"; +import AvatarBlogLarge from "../../components/ui/avatars/AvatarBlogLarge.astro"; +import { Image } from "astro:assets"; +import { capitalize, formatDate } from "../../utils"; +import { getCollection } from "astro:content"; + + +export async function getStaticPaths() { + const insightPosts = await getCollection("insights"); + return insightPosts.map((post) => ({ + params: { slug: post.slug }, + props: { post }, + })); +} + +const { post } = Astro.props; + +--- + + +
+
+
+
+
+ {post.data.cardImageAlt} +
+
+ +
+ +

{post.data.title}

+
+ { + post.data.contents.map((content) => + +

+ {content} +

+ ) + } +
+
+
+
+
+ +