Skip to content

Commit

Permalink
feat: start adding mahi pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkflame72 committed May 11, 2024
1 parent 658f2d7 commit a5fb64f
Show file tree
Hide file tree
Showing 9 changed files with 260 additions and 32 deletions.
4 changes: 1 addition & 3 deletions src/components/IconCards.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ interface Props {
const { cards, location } = Astro.props;
---

<!-- Icon Blocks -->
<div class="max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto">
<h2
class="block text-3xl font-bold text-gray-800 sm:text-4xl md:text-5xl lg:text-4xl dark:text-white"
id={location.toLowerCase().replace(" ", "-")}
>
<a href={location.toLowerCase().replace(" ", "-")}>{location}</a>
<a href=`#${location.toLowerCase().replace(" ", "-")}`>{location}</a>
</h2>
<br />
<div class="grid sm:grid-cols-2 lg:grid-cols-3 items-center gap-6">
<!-- Card -->
{
cards.map((card) => (
<a
Expand Down
43 changes: 43 additions & 0 deletions src/components/Pricing.astro
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,48 @@ const { tiers } = Astro.props;
</div>
))
}
<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">
Foundation Sponsor
</h4>
<span class="mt-7 font-bold text-5xl text-gray-800 dark:text-neutral-200">
$250,000+
</span>
<p class="mt-2 text-sm text-gray-500 dark:text-neutral-500">
Become a foundation sponsor and enable us to grow and exist long into
the future.
</p>

<ul class="mt-7 space-y-2.5 text-sm">
<li class="flex space-x-2">
<svg
class="flex-shrink-0 mt-0.5 size-4 text-blue-600 dark:text-blue-500"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
<span class="text-gray-800 dark:text-neutral-400"
>Reach out around sponsorship at this level</span
>
</li>
</ul>

<a
class="mt-5 py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-gray-200 text-gray-500 hover:border-blue-600 hover:text-blue-600 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-neutral-400 dark:hover:text-blue-500 dark:hover:border-blue-600"
href="#contact"
>
Sponsor Us
</a>
</div>
</div>
</div>
36 changes: 36 additions & 0 deletions src/components/SmallHero.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
import featureImage from "@images/hero.avif";
import { Image } from "astro:assets";
interface Props {
title: string;
description: string;
contactImage: ImageMetadata;
}
const { title, contactImage, description } = Astro.props;
---

<div class="max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid lg:grid-cols-7 lg:gap-x-8 xl:gap-x-12 lg:items-center">
<div class="lg:col-span-3">
<h1
class="block text-3xl font-bold text-gray-800 sm:text-4xl md:text-5xl lg:text-6xl dark:text-white"
>
{title}
</h1>
<p class="mt-3 text-lg text-gray-800 dark:text-neutral-400">
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.
</p>
</div>

<div class="lg:col-span-4 mt-10 lg:mt-0">
<Image
src={featureImage}
alt="Group of rangatahi"
class="w-full rounded-xl"
/>
</div>
</div>
</div>
3 changes: 1 addition & 2 deletions src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,8 @@ export const headerLinks: HeaderLink[] = [
links: [
{ label: "What We Do", href: "/what-we-do" },
{ label: "Sessions", href: "/mahi/sessions" },
{ label: "School Sessions", href: "/mahi/school-sessions" },
{ label: "Workshops", href: "/mahi/workshops" },
{ label: "Teacher Workshops", href: "/mahi/teacher-workshops" },
{ label: "Kura and Kaiako Support", href: "/mahi/kura-kaiako" },
],
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ import Stats from "@components/Stats.astro";
icon: "mdi:tools",
},
{
title: "Teacher Workshops",
title: "Support for kura and kaiako",
description:
"We run specialist teacher workshops focused on digital technology and extension",
"We work with kura and kaiako to support their mahi with resources and workshops.",
icon: "mdi:toolbox",
},
]}
Expand Down
File renamed without changes.
66 changes: 64 additions & 2 deletions src/pages/mahi/sessions.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,69 @@
---
import Layout from "@layouts/Layout.astro";
import heroImage from "@images/hero.avif";
import Contact from "@components/Contact.astro";
import SmallHero from "@components/SmallHero.astro";
import FAQs from "@components/FAQs.astro";
import { sessions } from "../../data";
import IconCards from "@components/IconCards.astro";
const title = "What We Do";
import featureImage from "@images/hero.avif";
const title = "Sessions";
---

<Layout meta={{ title }} />
<Layout meta={{ title }}>
<SmallHero
title="Sessions"
featureImage={featureImage}
description="Enrichment and Outreach sessions during school allowing exploration of technology outside of curriculum."
/>
<FAQs
title="What does this look like?"
faqs={[
{
question: "Age ranges",
answer: "We work with rangatahi from years 5-13",
},
{
question: "Do you cover curriculm",
answer:
"We do not cover any areas of 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."
}
]}
/>
<div class="max-w-2xl mx-auto text-center mb-10 lg:mb-14" id="sessions">
<h1
class="text-6xl font-bold md:text-6xl md:leading-tight text-gray-800 dark:text-neutral-200"
>
Sessions
</h1>
</div>
{
sessions.map((location) => (
<IconCards cards={location.sessions} location={location.location} />
))
}
<Contact
title="Contact Us"
contactImage={heroImage}
email="contact@tuhuratech.org.nz"
phone="0211990711"
description={[
"Are you in an area where we don't have any sessions or have a location we can run sessions at?",
]}
/></Layout
>
7 changes: 0 additions & 7 deletions src/pages/mahi/teacher-workshops.astro

This file was deleted.

129 changes: 113 additions & 16 deletions src/pages/what-we-do.astro
Original file line number Diff line number Diff line change
@@ -1,35 +1,132 @@
---
import Layout from "@layouts/Layout.astro";
import IconCards from "@components/IconCards.astro";
import SmallHero from "@components/SmallHero.astro";
import featureImage from "@images/hero.avif";
import { Image } from "astro:assets";
import { sessions } from "../data";
const title = "What We Do";
---

<Layout meta={{ title }}>
<div class="max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid lg:grid-cols-7 lg:gap-x-8 xl:gap-x-12 lg:items-center">
<div class="lg:col-span-3">
<h1
class="block text-3xl font-bold text-gray-800 sm:text-4xl md:text-5xl lg:text-6xl dark:text-white"
>
What We Do
</h1>
<p class="mt-3 text-lg text-gray-800 dark:text-neutral-400">
We Do a Lot
<SmallHero
title="What We Do"
featureImage={featureImage}
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 md:text-3xl dark:text-white">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
with Rangatahi to inspire them to explore different areas of
technology.Sessions cover a variety of topics with junior sessions
(year 5-8) being slightly structured and senior sessions (year 9-13)
functioning as a place to explore interests with support from our
staff. This means that rangatahi are always engaged and learning.
</p><p class="text-lg text-gray-800 dark:text-neutral-200">
Junior Sessions (Year 5-8) follow a rough structure where they will
focus on a topic such as Introduction to Programming with Scratch for
a Term before moving to another topic. These sessions while focused
ona topic are guided by their individual interests with a custom path
through created specifically for them.
</p><p class="text-lg text-gray-800 dark:text-neutral-200">
Our Senior sessions (Year 9-13) are more relaxed and casual with
everyone working on different projects and interests and a small
section doing a set subject. This is a space to explore and experiment
with the support of our staff or come along and focus on a topic that
changes every term.
</p>
</div>

<div class="lg:col-span-4 mt-10 lg:mt-0">
<figure>
<Image
src={featureImage}
alt="Group of rangatahi"
class="w-full rounded-xl"
class="w-full object-cover rounded-xl"
/>
<figcaption
class="mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"
>
Group of rangatahi at a session
</figcaption>
</figure>

<p class="text-lg text-gray-800 dark:text-neutral-200">
As we've grown, we've seen how Preline has helped companies such as
Spotify, Microsoft, Airbnb, Facebook, and Intercom bring their designers
closer together to create amazing things. We've also learned that when
the culture of sharing is brought in earlier, the better teams adapt and
communicate with one another.
</p>

<p class="text-lg text-gray-800 dark:text-neutral-200">
That's why we are excited to share that we now have a <a
class="text-blue-600 decoration-2 hover:underline font-medium dark:text-blue-500"
href="#">free version of Preline</a
>, which will allow individual designers, startups and other small teams
a chance to create a culture of openness early on.
</p>

<blockquote class="text-center p-4 sm:px-7">
<p
class="text-xl font-medium text-gray-800 md:text-2xl md:leading-normal xl:text-2xl xl:leading-normal dark:text-neutral-200"
>
Our focus is on growing their interest and curiosity and fostering
that to allow them to explore all areas of technology.
</p>
<p class="mt-5 text-gray-800 dark:text-neutral-200">
Leon Bowie - Head of Operations
</p>
</blockquote>

<div class="space-y-3">
<h3 class="text-2xl font-semibold dark:text-white">Workshops</h3>

<p class="text-lg text-gray-800 dark:text-neutral-200">Lorem ipsum</p>
</div>

<div class="space-y-3">
<h3 class="text-2xl font-semibold dark:text-white">
Teacher Workshops
</h3>

<p class="text-lg text-gray-800 dark:text-neutral-200">Lorem ipsum</p>
</div>

<ul
class="list-disc list-outside space-y-5 ps-5 text-lg text-gray-800 dark:text-neutral-200"
>
<li class="ps-2">
Preline allows us to collaborate in real time and is a really great
way for leadership on the team to stay up-to-date with what everybody
is working on," <a
class="text-blue-600 decoration-2 hover:underline font-medium dark:text-blue-500"
href="#">said</a
> Stewart Scott-Curran, Intercom's Director of Brand Design.
</li>
<li class="ps-2">
Preline opened a new way of sharing. It's a persistent way for
everyone to see and absorb each other's work," said David Scott,
Creative Director at <a
class="text-blue-600 decoration-2 hover:underline font-medium dark:text-blue-500"
href="#">Eventbrite</a
>.
</li>
</ul>

<p class="text-lg text-gray-800 dark:text-neutral-200">
Small teams and individual designers need a space where they can watch
the design process unfold, both for themselves and for the people they
work with – no matter if it's a fellow designer, product manager,
developer or client. Preline allows you to invite more people into the
process, creating a central place for conversation around design. As
those teams grow, transparency and collaboration becomes integrated in
how they communicate and work together.
</p>
</div>
<!-- End Content -->
</div>

{sessions.map((location) => <IconCards cards={location.sessions} location={location.location}/>)}
</Layout>

0 comments on commit a5fb64f

Please sign in to comment.