Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkflame72 committed May 19, 2024
1 parent f8a02ef commit 882451a
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 113 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "",
"name": "website",
"type": "module",
"version": "0.0.1",
"version": "1.0.0",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand Down
24 changes: 2 additions & 22 deletions src/components/Contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ interface Props {
title: string;
contactImage: ImageMetadata;
email: string;
phone: string;
description: string[];
}
const { title, contactImage, email, phone, description } = Astro.props;
const { title, contactImage, email, description } = Astro.props;
---

<div class="max-w-7xl px-4 lg:px-6 py-12 lg:py-24 mx-auto" id="contact">
Expand All @@ -26,7 +25,7 @@ const { title, contactImage, email, phone, description } = Astro.props;
<Image
src={contactImage}
alt="Group of rangatahi"
class="group-hover:scale-105 transition-transform duration-500 ease-in-out object-cover rounded-2xl"
class="group-hover:scale-105 h-auto transition-transform duration-500 ease-in-out object-cover rounded-2xl"
/>
</div>

Expand Down Expand Up @@ -66,25 +65,6 @@ const { title, contactImage, email, phone, description } = Astro.props;
</p>
</div>
</div>

<div class="flex gap-4">
<Icon
name="mdi:phone"
class="flex-shrink-0 size-5 text-gray-500 dark:text-neutral-400"
title="Phone"
/>
<div class="grow">
<p class="text-sm text-gray-600 dark:text-neutral-400">Call us</p>
<p>
<a
class="relative text-gray-600 dark:text-neutral-400 inline-block font-medium before:absolute before:bottom-0.5 before:start-0 before:-z-[1] before:w-full before:h- focus:outline-none"
href={`tel:${phone}`}
>
{phone}
</a>
</p>
</div>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/IconCards.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const { cards, location } = Astro.props;

<div>
<div>
<h3 class="block font-bold text-gray-800 dark:text-white">
<h3 class="block font-bold text-secondary dark:text-secondary">
{card.title}
</h3>
<p class="text-gray-600 dark:text-neutral-400">
Expand Down Expand Up @@ -83,7 +83,7 @@ const { cards, location } = Astro.props;
/>
<div>
<div>
<h3 class="block font-bold text-gray-800 dark:text-white">
<h3 class="block font-bold text-secondary dark:text-secondary">
Add a location
</h3>
<p class="text-gray-600 dark:text-neutral-400">
Expand Down
4 changes: 2 additions & 2 deletions src/components/Pricing.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const { tiers } = Astro.props;
{
tiers.map((tier) => (
<div class="flex flex-col border border-gray-200 text-center rounded-xl p-8 dark:border-neutral-800">
<h4 class="font-medium text-lg text-gray-800 dark:text-neutral-200">
<h4 class="font-medium text-lg text-secondary dark:text-secondary">
{tier.title}
</h4>
<span class="mt-7 font-bold text-5xl text-gray-800 dark:text-neutral-200">
Expand Down Expand Up @@ -71,7 +71,7 @@ const { tiers } = Astro.props;
<div
class="flex flex-col border border-dashed border-gray-200 text-center rounded-xl p-8 dark:border-neutral-800"
>
<h4 class="font-medium text-lg text-gray-800 dark:text-neutral-200">
<h4 class="font-medium text-lg text-secondary dark:text-secondary">
Foundation Sponsor
</h4>
<span class="mt-7 font-bold text-5xl text-gray-800 dark:text-neutral-200">
Expand Down
Binary file added src/images/large-landing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/pages/contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const title = "Contact Us";
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.",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Hero from "@components/Hero.astro";
import FAQs from "@components/FAQs.astro";
import { faqs } from "../data";
import FeaturesLarge from "@components/FeaturesLarge.astro";
import featureImage from "@images/hero.avif";
import largeLanding from "@images/large-landing.jpg";
import Cards from "@components/Cards.astro";
import Stats from "@components/Stats.astro";
---
Expand All @@ -29,7 +29,7 @@ import Stats from "@components/Stats.astro";
<FeaturesLarge
title="We work directly with rangatahi."
description="We work across central Wellington, Lower Hutt, Upper Hutt and Porirua. We focus on providing free/affordable sessions and support to rangatahi aged 18 and under."
image={featureImage}
image={largeLanding}
features={[
{
title: "Sessions",
Expand Down
42 changes: 3 additions & 39 deletions src/pages/mahi/kura-kaiako.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import Layout from "@layouts/Layout.astro";
import SmallHero from "@components/SmallHero.astro";
import Contact from "@components/Contact.astro";
import FAQs from "@components/FAQs.astro";
import featureImage from "@images/hero.avif";
Expand All @@ -13,49 +12,14 @@ const title = "Kura and Kaiako Support";
<SmallHero
title="Kura and Kaiako Support"
featureImage={featureImage}
description="In person after school sessions at schools, libraries and community centers. These are for years 5 (age 9) to years 13 (age 18) with trained mentors."
/>
<FAQs
title="What does this look like?"
faqs={[
{
question: "What ages do you work with?",
answer: "We work with rangatahi from years 5-13",
},
{
question: "Do you cover school curriculm?",
answer:
"We do not cover any areas of the school curriculm and instead cover topics outside of school curriculm.",
},
{
question: "What is the cost?",
answer: "Our sessions are free of charge to all rangatahi and whanau.",
},
{
question: "What do I need to bring?",
answer:
"We can provide everything needed including laptops however if you do have a laptop it would be great to bring it.",
},
{
question: "Do I need prior knwoledge?",
answer:
"No prior knowledge is needed with rangatahi with no knowledge to those who are experts in the sessions.",
},
{
question: "What do we cover?",
answer:
"We cover topic from introduction to programming, cybersecurity, Artificual Intellegence and Machine Learning, robotics and anything else you could be interested in.",
},
]}
description="Workshops, training and curriculm support and resources to help grow and inspire interest in technology."
/>
<Contact
title="Sponsor Us"
title="Contact Us"
contactImage={featureImage}
email="contact@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?",
"Interested in workshops, training or resources?",
]}
/>
</Layout>
40 changes: 2 additions & 38 deletions src/pages/mahi/workshops.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import Layout from "@layouts/Layout.astro";
import SmallHero from "@components/SmallHero.astro";
import Contact from "@components/Contact.astro";
import FAQs from "@components/FAQs.astro";
import featureImage from "@images/hero.avif";
Expand All @@ -16,47 +15,12 @@ const title = "Workshops";
featureImage={featureImage}
description="Workshops and coaching for specialist areas, competitions and other events to support our rangatahi."
/>
<FAQs
title="What does this look like?"
faqs={[
{
question: "What ages do you work with?",
answer: "We work with rangatahi from years 5-13",
},
{
question: "Do you cover school curriculm?",
answer:
"We do not cover any areas of the school curriculm and instead cover topics outside of school curriculm.",
},
{
question: "What is the cost?",
answer: "Our sessions are free of charge to all rangatahi and whanau.",
},
{
question: "What do I need to bring?",
answer:
"We can provide everything needed including laptops however if you do have a laptop it would be great to bring it.",
},
{
question: "Do I need prior knwoledge?",
answer:
"No prior knowledge is needed with rangatahi with no knowledge to those who are experts in the sessions.",
},
{
question: "What do we cover?",
answer:
"We cover topic from introduction to programming, cybersecurity, Artificual Intellegence and Machine Learning, robotics and anything else you could be interested in.",
},
]}
/>
<Contact
title="Sponsor Us"
title="Contact Us"
contactImage={featureImage}
email="contact@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?",
"Interested in helping run a workshop or have a workshop you would like run?",
]}
/>
</Layout>
1 change: 0 additions & 1 deletion src/pages/support.astro
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const tiers = [
title="Sponsor Us"
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?",
Expand Down
14 changes: 10 additions & 4 deletions src/pages/what-we-do.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ const title = "What We Do";
description="Hands on in-person sessions combining subject experts with rangatahi on areas that interest them. Everything done is practical with real world applications with actual outcomes."
/>
<div class="max-w-[85rem] px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto">
<!-- Content -->
<div class="space-y-5 md:space-y-8">
<div class="space-y-3">
<h2 class="text-2xl font-bold text-primary md:text-3xl dark:text-primary">Sessions</h2>
<h2
class="text-2xl font-bold text-primary md:text-3xl dark:text-primary"
>
Sessions
</h2>

<p class="text-lg text-gray-800 dark:text-neutral-200">
At the core of what we do is our After School Sessions where we work
Expand Down Expand Up @@ -89,9 +92,12 @@ const title = "What We Do";
Kura and Kaiako Support
</h3>

<p class="text-lg text-gray-800 dark:text-neutral-200">Lorem ipsum</p>
<p class="text-lg text-gray-800 dark:text-neutral-200">
We support schools and teachers with resources, workshops and support
to help them grow and keep up to date in the changing technology
landscape.
</p>
</div>
</div>
<!-- End Content -->
</div>
</Layout>

0 comments on commit 882451a

Please sign in to comment.