πŸ’» Cobalt Web Technologies

Cobalt's website is lightning fast and built with Astro and deployed on Vercel for super fast performance.

Built with Astro

Find us at https://www.cobaltweb.tech/

This is the production code repo for our website.

Cobalt Web Technologies screenshot

πŸ’Ύ Is your website stuck in the 90's? πŸ“ 

Are you looking to supercharge your current website or build a brand new one from the ground up? From e-commerce to a simple blog to large-scale asset delivery web application, we can design and build whatever you need.

Let us build you an amazing web experience for you and your customers.

Check us out https://www.cobaltweb.tech/

πŸ†’ Features

  • Astro-Powered: Utilize a modern static-site generation framework.
  • Tailwind CSS: Enjoy rapid UI development with a utility-first CSS framework.
  • Preline UI: Implement prebuilt UI components for added elegance.
  • GSAP Integration: Impress with professional and polished animations.
  • Markdown Content Collections: Organize and manage the content seamlessly.
  • SEO and Responsiveness: Ensure our site is discoverable and accessible on any device.
  • Resend Email: We use Resend integration for custom transactional emails from webforms.

What's New

Added Features

  • Tailwind Upgraded:

    • Tailwind has been upgraded to version 4 with new enhancements and configurations. Version 4 brings easier to configure custom theming and utilities in the global.css file.
  • Astro Icon Integration:

    • Astro Icon is ready to use, with zero additional configuration. The included Icon component allows easy method to inline svgs directly into the Astro project.
    • Icons can be imported and referenced from third party libraries by setting the name attribute in the Icon component.
    • Custom local SVGs can also be used by placing the svg file in the /src/icons folder and referencing the name in the Icon component.
    • Can apply Tailwind styling classes as well as custom styling on the icon.
  • View Transitions:

    • Astro supports view transitions with just a few lines of code. View transitions update the page content without the browser’s normal, full-page navigation refresh and provide seamless animations between pages.
    • View Transitions can be customized with various animation effects and linking of assets to create a seamless transition effect while browsing the site.

Project Structure

Cobalt organizes modular components, content, and layouts to streamline development and content management.

src/
β”œβ”€β”€ components/ # Reusable components
β”‚ β”œβ”€β”€ Meta.astro # Meta component injected into MainLayout.astro for SEO, favicons, and fonts
β”‚ β”œβ”€β”€ sections/ # Components for various sections of the website
β”‚ └── ui/ # UI components categorized by functionality
β”œβ”€β”€ content/ # Markdown files for blog posts, insights, products, and site configuration
β”‚ β”œβ”€β”€ products/ # Markdown files for each product
β”‚ β”œβ”€β”€ services/ # Markdown files for each service
β”‚ └── config.ts # Contains content collections configuration options
β”œβ”€β”€ data_files/ # Strings stored as JSON files
β”œβ”€β”€ icons/ # SVG icons used by Astro Icon plugin
β”œβ”€β”€ images/ # Static image assets for use across the website
β”œβ”€β”€ layouts/ # Components defining layout templates
β”‚ └── MainLayout.astro # The base html structure layout for all pages
β”œβ”€β”€ pages/ # Astro files representing individual pages and website sections
β”‚ β”œβ”€β”€ 404.astro # Custom 404 page
β”‚ β”œβ”€β”€ about.astro # About us page
β”‚ β”œβ”€β”€ api/ # API routes are placed here
β”‚ β”œβ”€β”€ contact/ # General contact page with webform
β”‚ β”œβ”€β”€ index.astro # The landing/home page
β”‚ β”œβ”€β”€ products/ # Product page contains ..slug.astro for rendering each product page dynamically
β”‚ β”œβ”€β”€ services/ # Services page contains ..slug.astro for rendering each service page dynamically
β”‚ β”œβ”€β”€ support/ # Support contact page with webform
β”‚ β”œβ”€β”€ manifest.json.ts # Web manifest rendered in json after build
β”œβ”€β”€ styles/ # CSS style sheets contains Tailwind config in global.css
β”œβ”€β”€ types/ # Custom types declarations for TypeScript
└── utils/ # Shared utility functions and helpers

Integrations and Enhancements

Cobalt leverages the power of Astro β€” a modern, cutting-edge site building framework β€” and integrates it seamlessly with the utility-first CSS framework TailwindCSS, to deliver exceptional site performance and a seamless user experience. Here are some notable integrations and enhancements included in the project:

Lenis for Smooth Scrolling

Experience buttery smooth scrolling with Lenis. We've integrated Lenis to provide an enhanced scrolling experience that's both fluid and responsive.

Astro Icon

Astro Icon is integrated for easy to use SVG icons. The included Icon component allows easy method to inline svgs directly into the Astro project. Icons can be imported and referenced from third party libraries as well as local SVGs placed in the /src/icons folder. Tailwind classes can be used for styling the SVG icons.

GSAP Integration

For individual product pages, GSAP has been integrated to add engaging animations that execute as soon as the page loads.

Resend Integration

Send form data securely using Resend. The Resend API route can be customized to set up any template to email any or all of the form data captured. This is set up as a transactional email service for notification of form submission.

Hiding Scrollbar

To achieve a cleaner and more spacious design, the default scrollbar has been visually removed.

SEO Configuration

The SEO Configuration is designed to optimize the website's visibility on search engines and social media platforms.

  • Astro Sitemap: Automatically generates an XML sitemap during build for the website, which is vital for SEO and helping search engine bots crawl pages effectively.

  • Using constants.ts: The SEO configuration has been centralized using the constants.ts file. This file manages SEO-related data such as page titles, descriptions, structured data, and Open Graph tags, providing a more structured and manageable approach to SEO management.

  • Meta.astro Component: This astro component contains the metadata, XML sitemap location, favicons, Open Graph info, and other SEO configurations.

  • Robots.txt: A robots.txt file is placed in the /public folder to be copied over during build. We list the allowed search engines to crawl the site and location of the sitemap.

Performance Enhancements

Our website's efficiency is maximized with these built-in Astro integrations:

  • Asset Minification: By default Astro will perform basic minification of most assets. For optimal site performance, the generated HTML is minified after the build phase to further reduce file size and speed up load times.

  • Astro Compressor: Automatically compresses Astro generated assets using brotli for smaller file sizes ensuring faster load times.

Preline UI

Interactive components like navbars, modals, and accordions are built using Preline UI, a comprehensive open-source component library.

Tailwind CSS

Styling across our project leverages the utility-first classes offered by Tailwind CSS. This methodology allows us to create custom layouts and components with speed and efficiency.

  • Now with Tailwind version 4!

To ensure consistent code formatting, particularly for class sorting, we have integrated the prettier-plugin-tailwindcss plugin.

Deployment and Security

We deploy our project on Vercel, capitalizing on their robust platform for seamless CI/CD workflows.

License

This project is released under the MIT License. Please read the LICENSE file for more details.

Top categories

Loading Svelte Themes