Skip to content

Commit

Permalink
feat: customise contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkflame72 committed May 6, 2024
1 parent 5c975a7 commit 2ff593d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/Contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ interface Props {
contactImage: ImageMetadata;
email: string;
phone: string;
description: string[];
}
const { title, contactImage, email, phone } = Astro.props;
const { title, contactImage, email, phone, description } = Astro.props;
---

<div class="max-w-7xl px-4 lg:px-6 py-12 lg:py-24 mx-auto" id="contact">
Expand All @@ -32,12 +33,15 @@ const { title, contactImage, email, phone } = Astro.props;
<div class="space-y-8 lg:space-y-16">
<div>
<h3 class="mb-5 font-semibold text-secondary">Our contacts</h3>
<p class="mb-5 dark:text-white">
Interested in a new location, sponsorship or any other questions?
</p>
<p class="mb-10 dark:text-white">
Give us an email or call and we will get back to you as soon as we
can.
{
description.map((desc) => (
<>
<span>{desc}</span>
<br />
</>
))
}
</p>

<div class="grid sm:grid-cols-2 gap-4 sm:gap-6 md:gap-8 lg:gap-12">
Expand Down
4 changes: 4 additions & 0 deletions src/pages/contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ const title = "Contact Us";
contactImage={heroImage}
email="contact@tuhuratech.org.nz"
phone="0211990711"
description={[
"Interested in a new location, sponsorship or any other questions?",
"Give us an email or call and we will get back to you as soon as we can.",
]}
/>
</Layout>
4 changes: 4 additions & 0 deletions src/pages/support.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@ const tiers = [
contactImage={heroImage}
email="sponsorship@tuhuratech.org.nz"
phone="0211990711"
description={[
"Interested in sponsoring us to enable us to grow and expand our mahi?",
"Want to donate some equipment or have some staff who can volunteer?",
]}
/>
</Layout>

0 comments on commit 2ff593d

Please sign in to comment.