From 11c4e61e79c0c3144e69353c9f62cce8645d2ebe Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Mon, 22 Dec 2025 12:23:25 -0700 Subject: [PATCH] Changed some config --- .env.example | 10 ++++++---- docker-compose.yml | 2 ++ src/components/sections/AboutSection.astro | 1 - src/components/sections/ContactSection.tsx | 3 +-- src/components/sections/HeroSection.astro | 12 +++++++++--- src/components/sections/ServicesSection.astro | 3 +-- src/config/site.ts | 6 ++---- 7 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.env.example b/.env.example index b9ed3d7..9093979 100644 --- a/.env.example +++ b/.env.example @@ -1,13 +1,15 @@ -# Container Image +# Docker Configuration IMAGE=atashdotdev:latest - -# Application Port APP_PORT=4321 -# SMTP Configuration (required for contact form) +# Application Configuration SMTP_HOST=smtp.example.com SMTP_PORT=587 SMTP_USER=your-email@example.com SMTP_PASSWORD=your-password FROM_EMAIL=noreply@atash.dev TO_EMAIL=contact@atash.dev + +# Site Status +PUBLIC_STATUS_TEXT="Accepting new clients" +PUBLIC_STATUS_COLOR="green" # green, yellow, red diff --git a/docker-compose.yml b/docker-compose.yml index 955bf0c..3719bdf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,4 +13,6 @@ services: SMTP_PASSWORD: ${SMTP_PASSWORD:-} FROM_EMAIL: ${FROM_EMAIL:-noreply@atash.dev} TO_EMAIL: ${TO_EMAIL:-} + PUBLIC_STATUS_TEXT: ${PUBLIC_STATUS_TEXT:-"Accepting new clients"} + PUBLIC_STATUS_COLOR: ${PUBLIC_STATUS_COLOR:-green} restart: unless-stopped diff --git a/src/components/sections/AboutSection.astro b/src/components/sections/AboutSection.astro index 6a731f9..d1232ca 100644 --- a/src/components/sections/AboutSection.astro +++ b/src/components/sections/AboutSection.astro @@ -21,7 +21,6 @@ const features = [
- {siteConfig.whyUs.badge}

{siteConfig.whyUs.title}

diff --git a/src/components/sections/ContactSection.tsx b/src/components/sections/ContactSection.tsx index c4047bd..821d9e7 100644 --- a/src/components/sections/ContactSection.tsx +++ b/src/components/sections/ContactSection.tsx @@ -69,10 +69,9 @@ ${message()}`, }; return ( -
+
- {siteConfig.contact.badge}

{siteConfig.contact.mainTitle}

diff --git a/src/components/sections/HeroSection.astro b/src/components/sections/HeroSection.astro index 71d2c1b..9cd50aa 100644 --- a/src/components/sections/HeroSection.astro +++ b/src/components/sections/HeroSection.astro @@ -1,6 +1,12 @@ --- import { siteConfig } from "../../config/site"; import { Icon } from "astro-icon/components"; + +const statusColor = { + green: "bg-success", + yellow: "bg-warning", + red: "bg-error", +}[siteConfig.hero.statusColor] || "bg-success"; ---
@@ -10,10 +16,10 @@ import { Icon } from "astro-icon/components";
- - + + - {siteConfig.hero.badge} + {siteConfig.hero.status}

")}> diff --git a/src/components/sections/ServicesSection.astro b/src/components/sections/ServicesSection.astro index a6fec55..a124f26 100644 --- a/src/components/sections/ServicesSection.astro +++ b/src/components/sections/ServicesSection.astro @@ -3,10 +3,9 @@ import { siteConfig } from "../../config/site"; import { Icon } from "astro-icon/components"; --- -
+
- {siteConfig.services.badge}

{siteConfig.services.title}

diff --git a/src/config/site.ts b/src/config/site.ts index 2d8f116..64b5190 100644 --- a/src/config/site.ts +++ b/src/config/site.ts @@ -40,7 +40,8 @@ export const siteConfig = { hero: { title: "Atash Consulting", - badge: "Accepting new clients", + status: import.meta.env.PUBLIC_STATUS_TEXT || "Accepting new clients", + statusColor: (import.meta.env.PUBLIC_STATUS_COLOR || "green") as "green" | "yellow" | "red", mainTitle: "Building Digital Solutions That Drive Growth", description: "Software Consulting based in Edmonton, Alberta", subDescription: "Reliable, scalable solutions tailored to your business needs.", @@ -55,7 +56,6 @@ export const siteConfig = { }, services: { - badge: "Expertise", title: "Our Services", cards: [ { @@ -87,7 +87,6 @@ export const siteConfig = { }, whyUs: { - badge: "Why Atash", title: "Why Partner With Us?", cards: [ { @@ -115,7 +114,6 @@ export const siteConfig = { href: "#contact", ariaLabel: "Contact us for consultation", }, - badge: "Contact", mainTitle: "Let's Work Together", form: { firstName: "First Name *",