Cobalt's website is lightning fast and built with Astro and deployed on Vercel for super fast performance.
Find us at https://www.cobaltweb.tech/
This is the production code repo for our website.
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/
Tailwind Upgraded:
Astro Icon Integration:
View Transitions:
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
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:
Experience buttery smooth scrolling with Lenis. We've integrated Lenis to provide an enhanced scrolling experience that's both fluid and responsive.
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.
For individual product pages, GSAP has been integrated to add engaging animations that execute as soon as the page loads.
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.
To achieve a cleaner and more spacious design, the default scrollbar has been visually removed.
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.
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.
Interactive components like navbars, modals, and accordions are built using Preline UI, a comprehensive open-source component library.
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.
To ensure consistent code formatting, particularly for class sorting, we have integrated the prettier-plugin-tailwindcss
plugin.
We deploy our project on Vercel, capitalizing on their robust platform for seamless CI/CD workflows.
This project is released under the MIT License. Please read the LICENSE file for more details.