feat: convert site to astro via codex

This commit is contained in:
DeCentN2Madness committed 2026-06-08 11:17:39 -07:00
1 parent f3d3562cec
commit 33e78ff8a5
355 files changed
+19954 -6

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
---
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import Seo from '../components/Seo.astro';
import site from '../data/site.json';
import '../styles/global.css';
import '../styles/rtl.css';
const { title, description, canonical, image, lang = 'en', type = 'website' } = Astro.props;
const dir = lang === 'ar' ? 'rtl' : 'ltr';
const organizationSchema = {
'@context': 'https://schema.org',
'@type': 'MedicalOrganization',
name: site.name,
url: site.url,
telephone: site.phone,
email: site.email,
address: {
'@type': 'PostalAddress',
streetAddress: '8901 E Raintree Dr Ste 160',
addressLocality: 'Scottsdale',
addressRegion: 'AZ',
postalCode: '85260',
addressCountry: 'US'
},
sameAs: Object.values(site.social)
};
---
<!doctype html>
<html lang={lang} dir={dir}>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" href="/assets/images/aia-logo.svg" />
<Seo title={title} description={description} canonical={canonical} image={image} lang={lang} type={type} />
<script type="application/ld+json" set:html={JSON.stringify(organizationSchema)} />
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<Header lang={lang} />
<main id="main"><slot /></main>
<Footer lang={lang} />
</body>
</html>