diff --git a/www/src/components/Button.astro b/www/src/components/Button.astro
index ce670e5..3eb715d 100644
--- a/www/src/components/Button.astro
+++ b/www/src/components/Button.astro
@@ -1,10 +1,14 @@
---
interface Props {
- href: string;
+ href?: string;
variant?: 'filled' | 'outlined' | 'light';
size?: 'default' | 'small';
+ center?: boolean;
target?: '_blank' | '_self';
rel?: string;
+ type?: 'submit' | 'button' | 'reset';
+ disabled?: boolean;
+ 'aria-describedby'?: string;
class?: string;
}
@@ -12,20 +16,28 @@ const {
href,
variant = 'filled',
size = 'default',
+ center = false,
target,
rel = target === '_blank' ? 'noopener noreferrer' : undefined,
+ type,
+ disabled,
+ 'aria-describedby': ariaDescribedby,
class: className
} = Astro.props;
+
+const classes = [
+ 'content-button',
+ `content-button--${variant}`,
+ { 'content-button--small': size === 'small', 'content-button--center': center },
+ className
+];
---
-
-
-
+{href ? (
+
+) : (
+
+)}
diff --git a/www/src/components/FormShell.astro b/www/src/components/FormShell.astro
index 5b5af5d..68f25c7 100644
--- a/www/src/components/FormShell.astro
+++ b/www/src/components/FormShell.astro
@@ -1,4 +1,5 @@
---
+import Button from './Button.astro';
const { title = 'Schedule Your Free Consultation', showBackground = false } = Astro.props;
---
@@ -12,7 +13,7 @@ const { title = 'Schedule Your Free Consultation', showBackground = false } = As
Phone
Service of interestABA Therapy Autism Evaluation Learner Social Club Other
How can we help?
- Submit
+ Submit
Online submission is not yet connected. Please call (480) 687-7099.
diff --git a/www/src/components/Header.astro b/www/src/components/Header.astro
index 54dd424..9eb1eb3 100644
--- a/www/src/components/Header.astro
+++ b/www/src/components/Header.astro
@@ -1,4 +1,5 @@
---
+import Button from './Button.astro';
import LanguageSwitcher from './LanguageSwitcher.astro';
import MainNav from './MainNav.astro';
import MobileNav from './MobileNav.astro';
@@ -21,7 +22,7 @@ const utility = lang === 'es'
- Tour AIA
+ Tour AIA
@@ -33,7 +34,7 @@ const utility = lang === 'es'
.header-inner { align-items: center; display: flex; gap: 1.4rem; min-height: 110px; }
.brand img { width: 150px; }
@media (max-width: 950px) {
- .header-inner > .button { display: none; }
+ .header-inner > :global(.content-button) { display: none; }
}
@media (max-width: 760px) {
.utility-inner { justify-content: center; }
diff --git a/www/src/components/home/HomeFinancialHelp.astro b/www/src/components/home/HomeFinancialHelp.astro
index 7c246db..2f6a87c 100644
--- a/www/src/components/home/HomeFinancialHelp.astro
+++ b/www/src/components/home/HomeFinancialHelp.astro
@@ -1,4 +1,5 @@
---
+import Button from '../Button.astro';
import type { FinancialHelpSection } from '../../types/home-sections';
interface Props { section: FinancialHelpSection }
const { section } = Astro.props;
@@ -7,6 +8,6 @@ const { section } = Astro.props;
diff --git a/www/src/components/home/HomeHero.astro b/www/src/components/home/HomeHero.astro
index 6ef6d5a..cba67d4 100644
--- a/www/src/components/home/HomeHero.astro
+++ b/www/src/components/home/HomeHero.astro
@@ -1,4 +1,5 @@
---
+import Button from '../Button.astro';
import type { HeroSection } from '../../types/home-sections';
interface Props { section: HeroSection }
const { section } = Astro.props;
@@ -9,7 +10,7 @@ const { section } = Astro.props;
{section.eyebrow}
{section.body}
- {section.cta.label}
+ {section.cta.label}
diff --git a/www/src/components/home/HomeServicesIntro.astro b/www/src/components/home/HomeServicesIntro.astro
index 512bea0..d0655e8 100644
--- a/www/src/components/home/HomeServicesIntro.astro
+++ b/www/src/components/home/HomeServicesIntro.astro
@@ -1,4 +1,5 @@
---
+import Button from '../Button.astro';
import type { ServicesIntroSection } from '../../types/home-sections';
interface Props { section: ServicesIntroSection }
const { section } = Astro.props;
@@ -31,7 +32,7 @@ const { section } = Astro.props;
diff --git a/www/src/components/pages/CareersPage.astro b/www/src/components/pages/CareersPage.astro
index 5a7abc4..99233af 100644
--- a/www/src/components/pages/CareersPage.astro
+++ b/www/src/components/pages/CareersPage.astro
@@ -1,4 +1,5 @@
---
+import Button from '../Button.astro';
const indeedUrl = 'https://www.indeed.com/cmp/Arizona-Institute-For-Autism/jobs';
const benefits = [
@@ -41,7 +42,7 @@ const careerCards = [
Join the AIA Team
Apply to join the Arizona Institute for Autism (AIA) team today. We are on a mission to improve special education and strengthen communities throughout Arizona.
Our talented and passionate employees are a critical piece to the high-quality Autism services we provide along with our commitment to behavioral health, school solutions, and community outreach.
- View Open Positions
+ View Open Positions
@@ -129,7 +130,7 @@ const careerCards = [
- View Open Positions
+ View Open Positions
@@ -175,7 +176,7 @@ const careerCards = [
))}
- View Open Positions
+ View Open Positions
diff --git a/www/src/components/pages/FaqPage.astro b/www/src/components/pages/FaqPage.astro
index ee31eee..02daa47 100644
--- a/www/src/components/pages/FaqPage.astro
+++ b/www/src/components/pages/FaqPage.astro
@@ -1,4 +1,5 @@
---
+import Button from '../Button.astro';
---
@@ -48,7 +49,7 @@
Need Support in Getting an Autism Diagnosis?
To meet diagnostic criteria for ASD, a child must have persistent deficits in each of three areas of social communication and interaction plus at least two of four types of restricted repetitive behaviors. Consult with a Client Advocate today to receive individual and family support!
-
Request an Appointment
+
Request an Appointment
@@ -583,7 +584,7 @@
margin-bottom: .75rem;
}
- .faq-cta-secondary .button {
+ .faq-cta-secondary :global(.content-button) {
margin-top: 1.5rem;
}
diff --git a/www/src/components/pages/TeamPage.astro b/www/src/components/pages/TeamPage.astro
index c1ef4b7..8041728 100644
--- a/www/src/components/pages/TeamPage.astro
+++ b/www/src/components/pages/TeamPage.astro
@@ -1,4 +1,5 @@
---
+import Button from '../Button.astro';
const groups = [
{
title: 'Board Certified Behavioral Analysts & Psychologists',
@@ -68,7 +69,7 @@ const groups = [
Employment Opportunities
Apply online to join the AIA team! At the Arizona Institute for Autism (AIA) we are on a mission to improve special education and strengthen communities throughout Arizona.
Our talented and passionate employees are a critical piece to the high-quality ABA therapy we provide along with our commitment to behavioral health, school solutions, and community outreach. For questions regarding open positions, please contact us at hr@azinstitute4autism.com .
-
View Open Positions
+
View Open Positions
@@ -87,7 +88,7 @@ const groups = [
.team-member h3 { font-family: var(--font-body); font-size: .8rem; margin-bottom: 0; }
.team-member p { font-size: .85rem; margin: 0; }
.team-careers { padding-block: 5rem; }
- .team-careers .button { margin-left: 50%; margin-top: 4rem; translate: -50%; }
+ .team-careers :global(.content-button) { margin-left: 50%; margin-top: 4rem; translate: -50%; }
@media (max-width: 950px) {
.team-member { flex-basis: min(100%, 227px); }
}
diff --git a/www/src/styles/components.css b/www/src/styles/components.css
index 33eaeca..8e0e8e6 100644
--- a/www/src/styles/components.css
+++ b/www/src/styles/components.css
@@ -1,7 +1,3 @@
-.button { background: var(--color-accent); border: 2px solid var(--color-accent); border-radius: 4px; color: var(--color-primary); display: inline-block; padding: .65rem 1.2rem; text-decoration: none; transition: .3s linear all; }
-.button:hover { background: transparent; border-color: var(--color-accent-strong); color: var(--color-primary); }
-.button-small { font-size: .9rem; }
-.button-light { background: white; color: var(--color-primary-dark); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: var(--space-lg); }
diff --git a/www/src/styles/layout.css b/www/src/styles/layout.css
index 49a2430..385de69 100644
--- a/www/src/styles/layout.css
+++ b/www/src/styles/layout.css
@@ -9,7 +9,6 @@ img { display: block; height: auto; max-width: 100%; }
.section-tint, .page-header { background: var(--color-tint); }
.section-heading { margin-bottom: var(--space-lg); max-width: 700px; }
.split { align-items: center; display: flex; gap: var(--space-lg); justify-content: space-between; }
-.button-center { margin-block: 2.5rem; margin-inline-start: 50%; translate: -50%; }
.card-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skip-link { background: white; left: 1rem; padding: .75rem; position: fixed; top: -10rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
diff --git a/www/src/styles/typography.css b/www/src/styles/typography.css
index 7c3e432..52e12af 100644
--- a/www/src/styles/typography.css
+++ b/www/src/styles/typography.css
@@ -11,7 +11,7 @@ h3 { font-size: clamp(1.8rem, 3.4vw, 2rem); }
h4 { font-size: clamp(1.5rem, 3vw, 1.8rem); }
a, a:visited { color: var(--color-accent-strong); text-decoration: none; }
a:hover, a:active { color: var(--color-accent); }
-a.button { color: var(--color-primary) }
+
.eyebrow {
margin: 0;