pls
All checks were successful
Build and Deploy / build-and-push (push) Successful in 2m37s

This commit is contained in:
2025-12-22 12:37:07 -07:00
parent 11c4e61e79
commit 2630071315
4 changed files with 14 additions and 8 deletions

View File

@@ -11,5 +11,5 @@ FROM_EMAIL=noreply@atash.dev
TO_EMAIL=contact@atash.dev TO_EMAIL=contact@atash.dev
# Site Status # Site Status
PUBLIC_STATUS_TEXT="Accepting new clients" STATUS_TEXT="Accepting new clients"
PUBLIC_STATUS_COLOR="green" # green, yellow, red STATUS_COLOR="green" # green, yellow, red

View File

@@ -13,6 +13,6 @@ services:
SMTP_PASSWORD: ${SMTP_PASSWORD:-} SMTP_PASSWORD: ${SMTP_PASSWORD:-}
FROM_EMAIL: ${FROM_EMAIL:-noreply@atash.dev} FROM_EMAIL: ${FROM_EMAIL:-noreply@atash.dev}
TO_EMAIL: ${TO_EMAIL:-} TO_EMAIL: ${TO_EMAIL:-}
PUBLIC_STATUS_TEXT: ${PUBLIC_STATUS_TEXT:-"Accepting new clients"} STATUS_TEXT: ${STATUS_TEXT:-"Accepting new clients"}
PUBLIC_STATUS_COLOR: ${PUBLIC_STATUS_COLOR:-green} STATUS_COLOR: ${STATUS_COLOR:-green}
restart: unless-stopped restart: unless-stopped

View File

@@ -2,11 +2,19 @@
import { siteConfig } from "../../config/site"; import { siteConfig } from "../../config/site";
import { Icon } from "astro-icon/components"; import { Icon } from "astro-icon/components";
const statusText = process.env.STATUS_TEXT
? process.env.STATUS_TEXT
: import.meta.env.STATUS_TEXT || "Accepting new clients";
const statusColorConfig = (process.env.STATUS_COLOR
? process.env.STATUS_COLOR
: import.meta.env.STATUS_COLOR || "green") as "green" | "yellow" | "red";
const statusColor = { const statusColor = {
green: "bg-success", green: "bg-success",
yellow: "bg-warning", yellow: "bg-warning",
red: "bg-error", red: "bg-error",
}[siteConfig.hero.statusColor] || "bg-success"; }[statusColorConfig] || "bg-success";
--- ---
<section class="relative overflow-hidden bg-neutral"> <section class="relative overflow-hidden bg-neutral">
@@ -19,7 +27,7 @@ const statusColor = {
<span class={`animate-ping absolute inline-flex h-full w-full rounded-full ${statusColor} opacity-75`}></span> <span class={`animate-ping absolute inline-flex h-full w-full rounded-full ${statusColor} opacity-75`}></span>
<span class={`relative inline-flex rounded-full h-2 w-2 ${statusColor}`}></span> <span class={`relative inline-flex rounded-full h-2 w-2 ${statusColor}`}></span>
</span> </span>
{siteConfig.hero.status} {statusText}
</div> </div>
<h1 class="text-4xl sm:text-5xl lg:text-6xl xl:text-7xl font-extrabold text-white leading-tight tracking-tight mb-6" set:html={siteConfig.hero.mainTitle.replace("Digital Solutions", "Digital Solutions<br class='hidden sm:block' />")}> <h1 class="text-4xl sm:text-5xl lg:text-6xl xl:text-7xl font-extrabold text-white leading-tight tracking-tight mb-6" set:html={siteConfig.hero.mainTitle.replace("Digital Solutions", "Digital Solutions<br class='hidden sm:block' />")}>

View File

@@ -40,8 +40,6 @@ export const siteConfig = {
hero: { hero: {
title: "Atash Consulting", title: "Atash Consulting",
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", mainTitle: "Building Digital Solutions That Drive Growth",
description: "Software Consulting based in Edmonton, Alberta", description: "Software Consulting based in Edmonton, Alberta",
subDescription: "Reliable, scalable solutions tailored to your business needs.", subDescription: "Reliable, scalable solutions tailored to your business needs.",